bitcoinjs / bip39

JavaScript implementation of Bitcoin BIP39: Mnemonic code for generating deterministic keys
ISC License
1.11k stars 447 forks source link

Invalid argument(s): Invalid mnemonic #168

Closed sayhellotogithub closed 3 years ago

sayhellotogithub commented 3 years ago

bip39: ^1.0.6

test code

test("mnemonic to entropy", () { //word nasty space front wealth text hazard nerve dump deer tunnel mirror var result= mnemonicToEntropy("word nasty space front wealth text hazard nerve dump deer tunnel mirror"); print(result); });

error

package:bip39/src/bip39_base.dart 111:7 mnemonicToEntropy. dart:_internal ListIterable.join package:bip39/src/bip39_base.dart 114:6 mnemonicToEntropy test/mnemonic_test.dart 46:17 main.

Invalid argument(s): Invalid mnemonic

junderw commented 3 years ago

That is not a valid bip39 phrase.

sayhellotogithub commented 3 years ago

i know 'dump'

sayhellotogithub commented 3 years ago

@junderw thank you