Struct dusk_pki::StealthAddress[][src]

pub struct StealthAddress { /* fields omitted */ }

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

impl StealthAddress[src]

pub fn R(&self) -> &JubJubExtended[src]

Gets the random point R

pub fn pk_r(&self) -> &PublicKey[src]

Gets the pk_r

pub fn address(&self) -> &JubJubExtended[src]

Gets the underline JubJubExtended point of pk_r

Trait Implementations

impl Clone for StealthAddress[src]

impl ConstantTimeEq for StealthAddress[src]

impl Copy for StealthAddress[src]

impl Debug for StealthAddress[src]

impl LowerHex for StealthAddress[src]

impl Ownable for StealthAddress[src]

impl PartialEq<StealthAddress> for StealthAddress[src]

impl Serializable<64_usize> for StealthAddress[src]

type Error = Error

The type returned in the event of a conversion error.

fn to_bytes(&self) -> [u8; 64][src]

Encode the StealthAddress to an array of 64 bytes

fn from_bytes(bytes: &[u8; 64]) -> Result<Self, Error>[src]

Decode the StealthAddress from an array of 64 bytes

impl UpperHex for StealthAddress[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, const N: usize> DeserializableSlice<N> for T where
    T: Serializable<N>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, const N: usize> ParseHexStr<N> for T where
    T: Serializable<N>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.