Use first 3 mnemonic words instead of the last 3.

pull/605/head
Mikunj 5 years ago
parent e88aca57f2
commit f61de2cf8e

@ -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