[][src]Struct wagyu_monero::private_key::MoneroPrivateKey

pub struct MoneroPrivateKey<N: MoneroNetwork> { /* fields omitted */ }

Represents a Monero private key

Methods

impl<N: MoneroNetwork> MoneroPrivateKey<N>[src]

pub fn from_seed(
    seed: &str,
    format: &MoneroFormat
) -> Result<Self, PrivateKeyError>
[src]

Returns a private key given seed bytes.

pub fn from_private_spend_key(
    private_spend_key: &str,
    format: &MoneroFormat
) -> Result<Self, PrivateKeyError>
[src]

Returns a private key given a private spend key.

pub fn to_subaddress_private_view_key(&self, major: u32, minor: u32) -> [u8; 32][src]

Update the private key format and returns a subaddress private view key.

pub fn to_private_spend_key(&self) -> [u8; 32][src]

Returns the private spend key of the Monero private key.

pub fn to_private_view_key(&self) -> [u8; 32][src]

Returns the private spend key of the Monero private key.

pub fn format(&self) -> MoneroFormat[src]

Returns the format of the Monero address.

Trait Implementations

impl<N: Clone + MoneroNetwork> Clone for MoneroPrivateKey<N>[src]

impl<N: Debug + MoneroNetwork> Debug for MoneroPrivateKey<N>[src]

impl<N: MoneroNetwork> Display for MoneroPrivateKey<N>[src]

impl<N: Eq + MoneroNetwork> Eq for MoneroPrivateKey<N>[src]

impl<N: MoneroNetwork> FromStr for MoneroPrivateKey<N>[src]

type Err = PrivateKeyError

The associated error which can be returned from parsing.

impl<N: Ord + MoneroNetwork> Ord for MoneroPrivateKey<N>[src]

impl<N: PartialEq + MoneroNetwork> PartialEq<MoneroPrivateKey<N>> for MoneroPrivateKey<N>[src]

impl<N: PartialOrd + MoneroNetwork> PartialOrd<MoneroPrivateKey<N>> for MoneroPrivateKey<N>[src]

impl<N: MoneroNetwork> PrivateKey for MoneroPrivateKey<N>[src]

type Address = MoneroAddress<N>

type Format = MoneroFormat

type PublicKey = MoneroPublicKey<N>

fn new<R: Rng>(rng: &mut R) -> Result<Self, PrivateKeyError>[src]

Returns a randomly-generated Monero private key.

fn to_public_key(&self) -> Self::PublicKey[src]

Returns the public key of the corresponding Monero private key.

fn to_address(
    &self,
    format: &Self::Format
) -> Result<Self::Address, AddressError>
[src]

Returns the address of the corresponding Monero private key.

impl<N: MoneroNetwork> StructuralEq for MoneroPrivateKey<N>[src]

impl<N: MoneroNetwork> StructuralPartialEq for MoneroPrivateKey<N>[src]

Auto Trait Implementations

impl<N> RefUnwindSafe for MoneroPrivateKey<N> where
    N: RefUnwindSafe

impl<N> Send for MoneroPrivateKey<N>

impl<N> Sync for MoneroPrivateKey<N>

impl<N> Unpin for MoneroPrivateKey<N> where
    N: Unpin

impl<N> UnwindSafe for MoneroPrivateKey<N> where
    N: UnwindSafe

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> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,