rust-hdwallet 0.1.0-beta

Hierarchical deterministic wallet library for deriving cryptocurrency keys, addresses, and mnemonics.
Documentation
use super::IEntropy;

pub struct MoneroEntropyStrengths;

impl MoneroEntropyStrengths {
    pub const ONE_HUNDRED_TWENTY_EIGHT: usize = 128;
    pub const TWO_HUNDRED_FIFTY_SIX: usize = 256;
}

#[derive(Clone, Copy, Default)]
pub struct MoneroEntropy;

impl IEntropy for MoneroEntropy {
    fn name(&self) -> &'static str {
        "Monero"
    }

    fn strengths(&self) -> &'static [usize] {
        &[
            MoneroEntropyStrengths::ONE_HUNDRED_TWENTY_EIGHT,
            MoneroEntropyStrengths::TWO_HUNDRED_FIFTY_SIX,
        ]
    }
}