-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of --extendable/--no-extendable
#53
Comments
That is incorrect. No passphrase does not get any special treatment. It just means that an empty string is used for the passphrase. So One should always use |
I did this test: $ # WITH -X
$ shamir create -S be278d88c624adb9dd59a25ba063fec8 -X 1of1
Using master secret: be278d88c624adb9dd59a25ba063fec8
Group 1 of 1 - 1 of 1 shares required:
bike senior academic academic axis thorn hazard process slap benefit thorn shaft jump sympathy crystal arcade dismiss eyebrow regular always
$ # generate two backups for the same master secret
$ shamir create -S be278d88c624adb9dd59a25ba063fec8 -X 1of1
Using master secret: be278d88c624adb9dd59a25ba063fec8
Group 1 of 1 - 1 of 1 shares required:
critical husband academic academic anxiety river smirk alpha duke inmate eclipse military dough express detailed device focus deadline hearing hamster
$ # recover from first backup with passphrase
$ shamir recover -p
Enter a recovery share: bike senior academic academic axis thorn hazard process slap benefit thorn shaft jump sympathy crystal arcade dismiss eyebrow regular always
✓ 1 of 1 shares needed from group bike senior academic
Enter passphrase:
Repeat for confirmation:
SUCCESS!
Your master secret is: f59f4f309e88c5ce07f0880e004a7e4c
$ # recover from second backup with same passphrase
$ shamir recover -p
Enter a recovery share: critical husband academic academic anxiety river smirk alpha duke inmate eclipse military dough express detailed device focus deadline hearing hamster
✓ 1 of 1 shares needed from group critical husband academic
Enter passphrase:
Repeat for confirmation:
SUCCESS!
Your master secret is: 9b278255ca94e404aa43bbbc99f7754f
$ # recover without passphrase
$ shamir recover
Enter a recovery share: bike senior academic academic axis thorn hazard process slap benefit thorn shaft jump sympathy crystal arcade dismiss eyebrow regular always
✓ 1 of 1 shares needed from group bike senior academic
SUCCESS!
Your master secret is: be278d88c624adb9dd59a25ba063fec8
$
$ shamir recover
Enter a recovery share: critical husband academic academic anxiety river smirk alpha duke inmate eclipse military dough express detailed device focus deadline hearing hamster
✓ 1 of 1 shares needed from group critical husband academic
SUCCESS!
Your master secret is: be278d88c624adb9dd59a25ba063fec8 $ # with -x
$ shamir create -S be278d88c624adb9dd59a25ba063fec8 -x 1of1
Using master secret: be278d88c624adb9dd59a25ba063fec8
Group 1 of 1 - 1 of 1 shares required:
always describe academic academic cubic gravity segment priority nuclear liquid chemical merit numb easy class wits warmth species genre dominant
$ shamir create -S be278d88c624adb9dd59a25ba063fec8 -x 1of1
Using master secret: be278d88c624adb9dd59a25ba063fec8
Group 1 of 1 - 1 of 1 shares required:
coding heat academic academic cubic gravity segment priority nuclear liquid chemical merit numb easy class wits warmth involve judicial worthy
$ shamir recover -p
Enter a recovery share: always describe academic academic cubic gravity segment priority nuclear liquid chemical merit numb easy class wits warmth species genre dominant
✓ 1 of 1 shares needed from group always describe academic
Enter passphrase:
Repeat for confirmation:
SUCCESS!
Your master secret is: 8183231e2bc294c20487be75cc1895ea
$ shamir recover -p
Enter a recovery share: coding heat academic academic cubic gravity segment priority nuclear liquid chemical merit numb easy class wits warmth involve judicial worthy
✓ 1 of 1 shares needed from group coding heat academic
Enter passphrase:
Repeat for confirmation:
SUCCESS!
Your master secret is: 8183231e2bc294c20487be75cc1895ea |
Wasn't this possible even before the introduction of the |
For the same master secret, yes, if the master secret is fixed. The usage as a BIP32 wallet backup is different: here, the fixed value is the Encrypted Master Secret, and we consider any decryption with any passphrase to be valid. |
Right, exactly. Two invocations of |
I see! So, simply put, you want the EMS to be fixed so that recovering from different backups (different ids) with the same passphrase will return the same wallet, e.g. decoy wallet and real wallet. |
Just looking for a confirmation...
From my understanding, if no passphrase is used, creating new backups with
--no-extendable
is equivalent to--extendable
.One has to use
--extendable
only when he is going to create a new backup for a master secret encrypted with a passphrase.The text was updated successfully, but these errors were encountered: