Struct dusk_pki::StealthAddress
source · [−]pub struct StealthAddress { /* private fields */ }
Expand description
To obfuscate the identity of the participants, we utilizes a Stealth Address
system.
A StealthAddress
is composed by a one-time public key (pk_r
, the actual
Implementations
sourceimpl StealthAddress
impl StealthAddress
sourcepub const fn from_raw_unchecked(R: JubJubExtended, pk_r: PublicKey) -> Self
pub const fn from_raw_unchecked(R: JubJubExtended, pk_r: PublicKey) -> Self
Create a stealth address from its internal parts
A stealth address is intended to be generated as the public counterpart of a one time secrete spend key. If the user opts to generate the stealth address from points, there is no guarantee a secret one time spend key counterpart will be known, and this stealth address will not provide the required arguments to generate it.
For additional information, check PublicKey::from_raw_unchecked.
sourcepub const fn R(&self) -> &JubJubExtended
pub const fn R(&self) -> &JubJubExtended
Gets the random point R
sourcepub fn address(&self) -> &JubJubExtended
pub fn address(&self) -> &JubJubExtended
Gets the underline JubJubExtended
point of pk_r
Trait Implementations
sourceimpl Clone for StealthAddress
impl Clone for StealthAddress
sourcefn clone(&self) -> StealthAddress
fn clone(&self) -> StealthAddress
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl ConstantTimeEq for StealthAddress
impl ConstantTimeEq for StealthAddress
sourceimpl Debug for StealthAddress
impl Debug for StealthAddress
sourceimpl LowerHex for StealthAddress
impl LowerHex for StealthAddress
sourceimpl Ownable for StealthAddress
impl Ownable for StealthAddress
sourcefn stealth_address(&self) -> &StealthAddress
fn stealth_address(&self) -> &StealthAddress
Returns the associated StealthAddress
sourceimpl PartialEq<StealthAddress> for StealthAddress
impl PartialEq<StealthAddress> for StealthAddress
sourceimpl Serializable<64> for StealthAddress
impl Serializable<64> for StealthAddress
sourceimpl UpperHex for StealthAddress
impl UpperHex for StealthAddress
impl Copy for StealthAddress
Auto Trait Implementations
impl RefUnwindSafe for StealthAddress
impl Send for StealthAddress
impl Sync for StealthAddress
impl Unpin for StealthAddress
impl UnwindSafe for StealthAddress
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, const N: usize> DeserializableSlice<N> for T where
T: Serializable<N>,
impl<T, const N: usize> DeserializableSlice<N> for T where
T: Serializable<N>,
sourceimpl<T, const N: usize> ParseHexStr<N> for T where
T: Serializable<N>,
impl<T, const N: usize> ParseHexStr<N> for T where
T: Serializable<N>,
sourcefn from_hex_str(s: &str) -> Result<Self, Self::Error> where
Self::Error: BadLength,
Self::Error: InvalidChar,
fn from_hex_str(s: &str) -> Result<Self, Self::Error> where
Self::Error: BadLength,
Self::Error: InvalidChar,
Parse a string slice as bytes hex representation and returns `