Struct dusk_pki::SecretSpendKey [−][src]
pub struct SecretSpendKey { /* fields omitted */ }
Secret pair of a
and b
defining a SecretSpendKey
Implementations
impl SecretSpendKey
[src]
impl SecretSpendKey
[src]pub fn new(a: JubJubScalar, b: JubJubScalar) -> Self
[src]
This method is used to construct a new SecretSpendKey
from the given
secret pair of a
and b
.
pub fn a(&self) -> &JubJubScalar
[src]
Gets a
pub fn b(&self) -> &JubJubScalar
[src]
Gets b
pub fn random<R: RngCore + CryptoRng>(rng: &mut R) -> Self
[src]
Deterministically create a new SecretSpendKey
from a random number
generator
pub fn sk_r(&self, sa: &StealthAddress) -> SecretKey
[src]
Generates a SecretKey
using the StealthAddress
given.
With the formula: sk_r = H(a · R) + b
pub fn public_spend_key(&self) -> PublicSpendKey
[src]
Derive the secret to deterministically construct a PublicSpendKey
pub fn view_key(&self) -> ViewKey
[src]
Derive the secret to deterministically construct a ViewKey
Trait Implementations
impl Clone for SecretSpendKey
[src]
impl Clone for SecretSpendKey
[src]fn clone(&self) -> SecretSpendKey
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl ConstantTimeEq for SecretSpendKey
[src]
impl ConstantTimeEq for SecretSpendKey
[src]impl Copy for SecretSpendKey
[src]
impl Copy for SecretSpendKey
[src]impl Eq for SecretSpendKey
[src]
impl Eq for SecretSpendKey
[src]impl From<&'_ SecretSpendKey> for PublicSpendKey
[src]
impl From<&'_ SecretSpendKey> for PublicSpendKey
[src]fn from(secret: &SecretSpendKey) -> Self
[src]
impl From<&'_ SecretSpendKey> for ViewKey
[src]
impl From<&'_ SecretSpendKey> for ViewKey
[src]fn from(secret: &SecretSpendKey) -> Self
[src]
impl From<SecretSpendKey> for PublicSpendKey
[src]
impl From<SecretSpendKey> for PublicSpendKey
[src]fn from(secret: SecretSpendKey) -> Self
[src]
impl From<SecretSpendKey> for ViewKey
[src]
impl From<SecretSpendKey> for ViewKey
[src]fn from(secret: SecretSpendKey) -> Self
[src]
impl PartialEq<SecretSpendKey> for SecretSpendKey
[src]
impl PartialEq<SecretSpendKey> for SecretSpendKey
[src]impl Serializable<64_usize> for SecretSpendKey
[src]
impl Serializable<64_usize> for SecretSpendKey
[src]impl StructuralEq for SecretSpendKey
[src]
impl StructuralEq for SecretSpendKey
[src]Auto Trait Implementations
impl RefUnwindSafe for SecretSpendKey
impl RefUnwindSafe for SecretSpendKey
impl Send for SecretSpendKey
impl Send for SecretSpendKey
impl Sync for SecretSpendKey
impl Sync for SecretSpendKey
impl Unpin for SecretSpendKey
impl Unpin for SecretSpendKey
impl UnwindSafe for SecretSpendKey
impl UnwindSafe for SecretSpendKey
Blanket Implementations
impl<T, const N: usize> DeserializableSlice<N> for T where
T: Serializable<N>,
[src]
impl<T, const N: usize> DeserializableSlice<N> for T where
T: Serializable<N>,
[src]impl<T, const N: usize> ParseHexStr<N> for T where
T: Serializable<N>,
[src]
impl<T, const N: usize> ParseHexStr<N> for T where
T: Serializable<N>,
[src]pub fn from_hex_str(s: &str) -> Result<Self, Self::Error> where
Self::Error: BadLength,
Self::Error: InvalidChar,
[src]
Self::Error: BadLength,
Self::Error: InvalidChar,