[−][src]Struct wagyu_monero::mnemonic::MoneroMnemonic
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]
fn clone(&self) -> MoneroMnemonic<N, W>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl<N: Hash + MoneroNetwork, W: Hash + MoneroWordlist> Hash for MoneroMnemonic<N, W>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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_phrase(&self) -> Result<String, MnemonicError>
[src]
fn to_private_key(
&self,
_: Option<&str>
) -> Result<Self::PrivateKey, MnemonicError>
[src]
&self,
_: Option<&str>
) -> Result<Self::PrivateKey, MnemonicError>
Returns the private key of the corresponding mnemonic.
fn to_public_key(
&self,
_: Option<&str>
) -> Result<Self::PublicKey, MnemonicError>
[src]
&self,
_: Option<&str>
) -> Result<Self::PublicKey, MnemonicError>
Returns the public key of the corresponding mnemonic.
fn to_address(
&self,
_: Option<&str>,
_: &Self::Format
) -> Result<Self::Address, MnemonicError>
[src]
&self,
_: Option<&str>,
_: &Self::Format
) -> Result<Self::Address, MnemonicError>
Returns the address of the corresponding mnemonic.
impl<N: Ord + MoneroNetwork, W: Ord + MoneroWordlist> Ord for MoneroMnemonic<N, W>
[src]
fn cmp(&self, other: &MoneroMnemonic<N, W>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<N: PartialEq + MoneroNetwork, W: PartialEq + MoneroWordlist> PartialEq<MoneroMnemonic<N, W>> for MoneroMnemonic<N, W>
[src]
fn eq(&self, other: &MoneroMnemonic<N, W>) -> bool
[src]
fn ne(&self, other: &MoneroMnemonic<N, W>) -> bool
[src]
impl<N: PartialOrd + MoneroNetwork, W: PartialOrd + MoneroWordlist> PartialOrd<MoneroMnemonic<N, W>> for MoneroMnemonic<N, W>
[src]
fn partial_cmp(&self, other: &MoneroMnemonic<N, W>) -> Option<Ordering>
[src]
fn lt(&self, other: &MoneroMnemonic<N, W>) -> bool
[src]
fn le(&self, other: &MoneroMnemonic<N, W>) -> bool
[src]
fn gt(&self, other: &MoneroMnemonic<N, W>) -> bool
[src]
fn ge(&self, other: &MoneroMnemonic<N, W>) -> bool
[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,
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,
N: Unpin,
W: Unpin,
impl<N, W> UnwindSafe for MoneroMnemonic<N, W> where
N: UnwindSafe,
W: UnwindSafe,
N: UnwindSafe,
W: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,