iancoleman / bip39

A web tool for converting BIP39 mnemonic codes
https://iancoleman.io/bip39/
MIT License
3.41k stars 1.42k forks source link

fix .toSeed() error #566

Open Bleizgwenn opened 2 years ago

Bleizgwenn commented 2 years ago

It's me ! I need to use the code only for certains parts but i always meet errors when i just ctrl+c/ctrl+v the code. can anyone hellp me ? in a first time i made an algorithm to create a seed, a string like : phrase = 'orphan relief soda rabbit energy another use vendor avoid cruise hope where'; I have this, and now i have to use calcBip32RootKeyFromSeed(phrase, passphrase), with phrase and passphrase = ' ';

but when i try to use this function, the console told me that "seed = mnemonic.toSeed(phrase);" had an error, she can't read toSeed. how can i fix this error please ? thank you so much