Function substrate_bip39::mini_secret_from_entropy[][src]

pub fn mini_secret_from_entropy(
    entropy: &[u8],
    password: &str
) -> Result<MiniSecretKey, Error>

entropy should be a byte array from a correctly recovered and checksumed BIP39.

This function accepts slices of different length for different word lengths:

Any other length will return an error.

password is analog to BIP39 seed generation itself, with an empty string being defalt.