Closed svenvinicius closed 2 years ago
Hi. Thanks for noticing. Some time ago I've added an additional sha256 into the generateMnemonic
function, so the recovery phrase in the code from docs is different now. I updated the docs to reflect the current implementation. Please let me know if you find more places like that.
Sidenote:
generateMnemonic
can accept a string or byte array of any length, then it hashes the data, takes a part of the resulting hash and converts it to mnemonic. As it hashes the incoming data this function is not reversable.
mnemonicToEntropy
and mnemonicFromEntropy
are actually reversible and act according to bip39 - therefore you need to have exactly 16 or 32-byte entropy to get a 12 or 24 word recovery phrase.
Hi,
I'm trying out the tutorial from the docs and I'm little bit confused.
Recovery phrase:
I don't get the same phrase as specified in the docs. What could be the problem?
Greetings