pub fn new_mnemonic_from_entropy(
    entropy: &[u8]
) -> Result<Mnemonic, CryptoError>
Expand description

Derivate mnemonic from provided arbitrary length bytes.

Errors

In case of internal error, a CryptoError::MnemonicGeneratioError is returned.

Examples

use wildland_crypto::utils;
let mnemonic = utils::new_mnemonic_from_entropy(&[0; 32]).unwrap();