#[non_exhaustive]pub enum WordCount {
Twelve,
Fifteen,
Eighteen,
TwentyOne,
TwentyFour,
}Available on crate feature
nip06 only.Expand description
Number of words a fresh mnemonic should contain.
Each variant corresponds to a different entropy size; 12 words is the minimum allowed by BIP-39 and 24 the maximum. Most consumer wallets default to 12; security-conscious deployments prefer 24.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Twelve
12 words / 128 bits of entropy.
Fifteen
15 words / 160 bits of entropy.
Eighteen
18 words / 192 bits of entropy.
TwentyOne
21 words / 224 bits of entropy.
TwentyFour
24 words / 256 bits of entropy.
Implementations§
Trait Implementations§
impl Copy for WordCount
impl Eq for WordCount
impl StructuralPartialEq for WordCount
Auto Trait Implementations§
impl Freeze for WordCount
impl RefUnwindSafe for WordCount
impl Send for WordCount
impl Sync for WordCount
impl Unpin for WordCount
impl UnsafeUnpin for WordCount
impl UnwindSafe for WordCount
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.