BIP39.mnemonicToEntropy

The reverse function of entropyToMnemonic This function converts a mnemonic sentence to an entropy buffer The function also check if the words in the sentence are in the word table and it check if the checksum is correct if this is not the case the it throws an BIP39Exception Because this function also appends the checksum to the entropy buffer to reverse the mnemonic-sentence the entropyToMnemonic should called with entropy_buf[0..$-1] (without the checksum)

struct BIP39
const pure
const(ubyte[])
mnemonicToEntropy

Parameters

mnemonic_sentence string

mnemonic sentence as a text string

Return Value

Type: const(ubyte[])

entropy buffer in including the checksum