ksmithbaylor / sskr-tool

A tool for splitting and recovering BIP-39 mnemonics according to the SSKR standard
0 stars 1 forks source link

Could not parse input as SSKR shares when recovering with seedtool-cli #1

Open extremeandy opened 4 months ago

extremeandy commented 4 months ago

Hi,

I wanted to check interoperability with https://github.com/BlockchainCommons/seedtool-cli-rust, but I can't get it to work.

E.g.

~ sskr-tool split 2of3 1 "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about"

Entropy:  0x00000000000000000000000000000000
Mnemonic: abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about

SSKR shares - need to recover at least 1 group(s) to recover mnemonic

Group 1 - need 2 of 3 shares to recover group
  1: tuna acid epic gyro game deli able acid able wall atom diet claw owls trip oval taco free math sets tomb cats hill arch zoom heat kiln trip gift
  2: tuna acid epic gyro game deli able acid acid king girl keys aqua undo crux safe open iris solo kept lion cyan gear iron zone ramp task iron yawn
  3: tuna acid epic gyro game deli able acid also tomb mint luau data gray echo iris cats cost cusp rich keno jolt jugs unit zinc jade apex lava vows

If I then try to recover with with seedtool I see an an error message:

~ seedtool -i sskr -o bip39 "tuna acid epic gyro game deli able acid able wall atom diet claw owls trip oval taco free math sets tomb cats hill arch zoom heat kiln trip gift 
tuna acid epic gyro game deli able acid acid king girl keys aqua undo crux safe open iris solo kept lion cyan gear iron zone ramp task iron yawn" 
Error: Could not parse input as SSKR shares

I tried generating shares using seedtool:

~ seedtool -g 2-of-3 -i bip39 -o sskr -s btw "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about"
tuna next keep gyro very gush able acid able girl real mint junk judo quad film tiny arch zaps zero omit cook judo visa zero zoom jump calm bias
tuna next keep gyro very gush able acid acid owls cash list horn fuel idea vast roof iron miss love paid join fuel rust love help gyro logo when
tuna next keep gyro very gush able acid also list wasp quiz gyro cook away nail aqua unit crux chef race yoga cook peck chef sets whiz kiwi guru

I am able to recover the phrase using seedtool -i sskr -o bip39 with the generated phrases from seedtool.

Am I doing something wrong?

ksmithbaylor commented 1 week ago

Hey @extremeandy! Just now seeing this, sorry for the delay. I did test both directions with seedtool when I was developing this, but it looks like you may be only importing one of the shares in the command you posted. Did you figure this out eventually?

extremeandy commented 2 days ago

I ended up using seedtool-cli to generate and then I validated using the Ledger Seed Tool app. Thanks!