Skip to main content

entropy_to_mnemonic

Function entropy_to_mnemonic 

Source
pub fn entropy_to_mnemonic<O, const W: u8, const N: usize>(
    entropy: &SensitiveBytes<N, O>,
) -> Result<GameMnemonic<O, W>, MnemonicError>
Expand description

Pre-built entropy bytes sets to a BIP39 GameMnemonic<O,W>. Validates that W is enabled and that N matches its BIP39 byte count, then wraps the produced [bip39::Mnemonic].