rust-hdwallet 0.1.0-beta

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

pub struct ElectrumV1EntropyStrengths;

impl ElectrumV1EntropyStrengths {
    pub const ONE_HUNDRED_TWENTY_EIGHT: usize = 128;
}

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

impl IEntropy for ElectrumV1Entropy {
    fn name(&self) -> &'static str {
        "Electrum-V1"
    }

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