oed / seedsplit

Use shamirs secret sharing scheme to split a seed mnemonic for crypto wallets to multiple mnemonics.
MIT License
123 stars 30 forks source link

24 word seed produces error #3

Closed brianmaas closed 7 years ago

brianmaas commented 7 years ago

I have tried a bunch of different length seeds. The ones between 12 and 21 words work fine. I used this site to generate them: https://iancoleman.github.io/bip39/

When I use a 24 word seed it throws an error.

ubuntu@ubuntu:~$ seedsplit split -t 2 -s 3
Enter seed mnemonic:  
readline.js:1015
            throw err;
            ^

TypeError: Invalid entropy
    at Object.entropyToMnemonic (/usr/lib/node_modules/seedsplit/node_modules/bip39/index.js:95:37)
    at shards.map.shard (/usr/lib/node_modules/seedsplit/lib/seedsplit.js:16:18)
    at Array.map (native)
    at Object.split (/usr/lib/node_modules/seedsplit/lib/seedsplit.js:14:31)
    at result (/usr/lib/node_modules/seedsplit/bin/cli.js:29:36)
    at prompt.get (/usr/lib/node_modules/seedsplit/bin/cli.js:60:7)
    at /usr/lib/node_modules/seedsplit/node_modules/prompt/lib/prompt.js:336:32
    at /usr/lib/node_modules/seedsplit/node_modules/async/lib/async.js:154:25
    at assembler (/usr/lib/node_modules/seedsplit/node_modules/prompt/lib/prompt.js:333:9)
    at /usr/lib/node_modules/seedsplit/node_modules/prompt/lib/prompt.js:342:32

I've tried this on two different installs.

lobsterpub commented 7 years ago

I didn't have any issues with 24 words on both Windows and Linex machines. Maybe try to use the binaries in the 'Builds' folder?

I'll just add, that I get an error if I don't enter the words properly, or leave a space at the very end of the phrase. Did you copy/paste from the bip39 generator? Make sure there is no space at the end of the phrase when you copy/paste.

oed commented 7 years ago

Hey, I'm using this upstream lib to deal with bip39 seeds: https://github.com/bitcoinjs/bip39 Could the issue possibly come from there? Could you try the same seed with that lib?

brianmaas commented 7 years ago

I tried the windows and linux binaries and they both did work with the seed. I must have something misconfigured with node.