[][src]Struct wagyu_monero::mnemonic::MoneroMnemonic

pub struct MoneroMnemonic<N: MoneroNetwork, W: MoneroWordlist> { /* fields omitted */ }

Represents a Monero mnemonic

Methods

impl<N: MoneroNetwork, W: MoneroWordlist> MoneroMnemonic<N, W>[src]

pub fn from_private_spend_key(private_spend_key: &[u8; 32]) -> Self[src]

Returns the mnemonic of the given private spend key

pub fn verify_phrase(phrase: &str) -> bool[src]

Compares the given phrase against the phrase extracted from its entropy.

Trait Implementations

impl<N: Clone + MoneroNetwork, W: Clone + MoneroWordlist> Clone for MoneroMnemonic<N, W>[src]

impl<N: Debug + MoneroNetwork, W: Debug + MoneroWordlist> Debug for MoneroMnemonic<N, W>[src]

impl<N: MoneroNetwork, W: MoneroWordlist> Display for MoneroMnemonic<N, W>[src]

impl<N: Eq + MoneroNetwork, W: Eq + MoneroWordlist> Eq for MoneroMnemonic<N, W>[src]

impl<N: MoneroNetwork, W: MoneroWordlist> FromStr for MoneroMnemonic<N, W>[src]

type Err = MnemonicError

The associated error which can be returned from parsing.

impl<N: Hash + MoneroNetwork, W: Hash + MoneroWordlist> Hash for MoneroMnemonic<N, W>[src]

impl<N: MoneroNetwork, W: MoneroWordlist> Mnemonic for MoneroMnemonic<N, W>[src]

type Address = MoneroAddress<N>

type Format = MoneroFormat

type PrivateKey = MoneroPrivateKey<N>

type PublicKey = MoneroPublicKey<N>

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

Returns a new mnemonic.

fn from_phrase(phrase: &str) -> Result<Self, MnemonicError>[src]

Returns the mnemonic for the given phrase.

fn to_private_key(
    &self,
    _: Option<&str>
) -> Result<Self::PrivateKey, MnemonicError>
[src]

Returns the private key of the corresponding mnemonic.

fn to_public_key(
    &self,
    _: Option<&str>
) -> Result<Self::PublicKey, MnemonicError>
[src]

Returns the public key of the corresponding mnemonic.

fn to_address(
    &self,
    _: Option<&str>,
    _: &Self::Format
) -> Result<Self::Address, MnemonicError>
[src]

Returns the address of the corresponding mnemonic.

impl<N: Ord + MoneroNetwork, W: Ord + MoneroWordlist> Ord for MoneroMnemonic<N, W>[src]

impl<N: PartialEq + MoneroNetwork, W: PartialEq + MoneroWordlist> PartialEq<MoneroMnemonic<N, W>> for MoneroMnemonic<N, W>[src]

impl<N: PartialOrd + MoneroNetwork, W: PartialOrd + MoneroWordlist> PartialOrd<MoneroMnemonic<N, W>> for MoneroMnemonic<N, W>[src]

impl<N: MoneroNetwork, W: MoneroWordlist> StructuralEq for MoneroMnemonic<N, W>[src]

impl<N: MoneroNetwork, W: MoneroWordlist> StructuralPartialEq for MoneroMnemonic<N, W>[src]

Auto Trait Implementations

impl<N, W> RefUnwindSafe for MoneroMnemonic<N, W> where
    N: RefUnwindSafe,
    W: RefUnwindSafe

impl<N, W> Send for MoneroMnemonic<N, W>

impl<N, W> Sync for MoneroMnemonic<N, W>

impl<N, W> Unpin for MoneroMnemonic<N, W> where
    N: Unpin,
    W: Unpin

impl<N, W> UnwindSafe for MoneroMnemonic<N, W> where
    N: UnwindSafe,
    W: 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>,