Struct dusk_pki::PublicSpendKey[][src]

pub struct PublicSpendKey { /* fields omitted */ }

Public pair of a·G and b·G defining a PublicSpendKey

Implementations

impl PublicSpendKey[src]

pub fn new(A: JubJubExtended, B: JubJubExtended) -> Self[src]

This method is used to construct a new PublicSpendKey from the given public pair of a·G and b·G

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

Gets A (a·G)

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

Gets B (b·G)

pub fn gen_stealth_address(&self, r: &JubJubScalar) -> StealthAddress[src]

Generates new PKr = H(A · r) · G + B from a given r

Trait Implementations

impl Clone for PublicSpendKey[src]

impl ConstantTimeEq for PublicSpendKey[src]

impl Copy for PublicSpendKey[src]

impl Debug for PublicSpendKey[src]

impl Eq for PublicSpendKey[src]

impl From<&'_ SecretSpendKey> for PublicSpendKey[src]

impl From<SecretSpendKey> for PublicSpendKey[src]

impl LowerHex for PublicSpendKey[src]

impl PartialEq<PublicSpendKey> for PublicSpendKey[src]

impl Serializable<64_usize> for PublicSpendKey[src]

type Error = Error

The type returned in the event of a conversion error.

impl UpperHex for PublicSpendKey[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.