bip39 0.3.0-alpha.1

A Rust implementation of BIP-0039
Documentation
1
2
3
4
5
6
7
8

pub(crate) fn bit_from_u16_as_u11(input: u16, position: u16) -> bool {
    if position < 11 {
        input & (1 << (10 - position)) != 0
    } else {
        false
    }
}