to_key

Function to_key 

Source
pub fn to_key(string: &str) -> Result<[u8; 32]>
Expand description

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.