Anderson-Juhasc/bip84

big mnemonic confusion

random9brat opened this issue · 2 comments

Hello Anderson,

I got a question regarding this code:

const mnemonic = 'blablablablabla'
var root = new BIP84.fromMnemonic(mnemonic)
var child0 = root.deriveAccount(0)
var account0 = new BIP84.fromZPrv(child0)
var addr = account0.getAddress(0);
console.log(addr);

Whatever I wrote in mnemonic const I will get the same return of public address. I know my question will be very dumb but I thought it will not work without mnemonic words (those 12 words etc)!? How can I write basically a sentence and get every time the same return of bc1...? I thought thats working only with words

@random9brat well, I think we need improve the code to validity mnemonics or it could work with sentences too, what do you think?

@random9brat using mnemonic is better because of combination of the words(and follow the right BIP39) and you can pass a password too.