Module algonaut_crypto::mnemonic
source · [−]Expand description
Support for turning 32 byte keys into human-readable mnemonics and back
Functions
Converts a 32-byte key into a 25 word mnemonic. The generated
mnemonic includes a checksum. Each word in the mnemonic represents 11 bits
of data, and the last 11 bits are reserved for the checksum.
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.