[][src]Function algo_rust_sdk::mnemonic::to_key

pub fn to_key(string: &str) -> Result<[u8; 32], Error>

Converts a mnemonic generated using the library into the source key used to create it. It returns an error if the passed mnemonic has an incorrect checksum, if the number of words is unexpected, or if one of the passed words is not found in the words list.