GetScatter / ScatterWebExtension

Extension that allows you to sign transactions with your private keys securely from within the browser without ever exposing them.
MIT License
367 stars 127 forks source link

when the password length is 12, why is the mnemonic eaqual to the password? #175

Closed jason-zuo closed 5 years ago

jason-zuo commented 5 years ago

if(password.split(' ').length >= 12) { console.log(11) seed = await Mnemonic.mnemonicToSeed(password); mnemonic = password; }

nsjames commented 5 years ago

It's not password length 12, it's words length twelve. password.split(' ') means it splits the password into an array of words using space as the delimiter and then counts the words. Because of the way Scatter works your mnemonic is a backup for your password, and entering it anywhere that accepts a password also works.