pqbip39 0.2.0

A no_std compatible implementation of the BIP39 mnemonic code standard.
Documentation
1
2
3
4
5
6
use crate::mnemonic::{MAX_NB_WORDS, MIN_NB_WORDS};

#[inline]
pub fn is_invalid_word_count(word_count: usize) -> bool {
    word_count < MIN_NB_WORDS || word_count % 3 != 0 || word_count > MAX_NB_WORDS
}