UTF8 passwords test

This commit is contained in:
Ian Coleman 2014-09-28 02:08:00 +10:00
parent adccfe8cbd
commit dca4f3f5d1
1 changed files with 9 additions and 0 deletions

View File

@ -120,4 +120,13 @@ describe('BIP39', function() {
assert(!BIP39.validateMnemonic('sleep kitten sleep kitten sleep kitten sleep kitten sleep kitten sleep kitten'))
})
})
describe('utf8 passwords', function() {
it ('creates the correct seed', function() {
var mnemonic = "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about"
var utf8_password = "㍍ガバヴァぱばぐゞちぢ十人十色"
var seed = "ba553eedefe76e67e2602dc20184c564010859faada929a090dd2c57aacb204ceefd15404ab50ef3e8dbeae5195aeae64b0def4d2eead1cdc728a33ced520ffd"
assert.equal(BIP39.mnemonicToSeedHex(mnemonic, utf8_password), seed)
})
})
})