Merge pull request #605 from Mikunj/mnemonic-word-fix

Use first 3 mnemonic words instead of the last 3 when displaying secret words.
pull/609/head
Beaudan Campbell-Brown 6 years ago committed by GitHub
commit e83d0f6635
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -195,6 +195,6 @@ for (var i in mn_words) {
function pubkey_to_secret_words(pubKey) {
return mn_encode(pubKey.slice(2), 'english')
.split(' ')
.slice(-3)
.slice(0, 3)
.join(' ');
}

Loading…
Cancel
Save