- Download the sss python code from here:
https://github.com/cetuscetus/btctool/blob/bip/bip-xxxx.mediawiki - Download the bitcoin address utility (windows exe or source) from here:
https://casascius.wordpress.com/2013/01/26/bitcoin-address-utility/ - NOW IT'S A GOOD TIME TO GO OFFLINE, BECAUSE THE NEXT STEPS COULD OTHERWISE COMPROMISE YOUR PRIVATE KEY!!!
- Edit the test() function in bip-sss.py like this:Quotedef test():Put the three shares ("SSS-...") from your entropy printout into the script!
gf = GF(0x11d)
share1, dec_m1, dec_id1, dec_type1 = decode("SSS-")
share2, dec_m2, dec_id2, dec_type2 = decode("SSS-")
share3, dec_m3, dec_id3, dec_type3 = decode("SSS-")
shares = [ share1, share2, share3 ]
combined = combine(gf, shares)
secret = make_secret(CTB_BASE58, length = 32, data = combined[1:33], is_private_key = True, compressed = True)
#sss_test(gf, 1, 1)
#sss_test(gf, 2, 1)
#sss_test(gf, 1, 2)
#sss_test(gf, random.randint(1, 64), random.randint(1, 255))
#sss_test(gf, random.randint(1, 64), random.randint(1, 255))
#sss_test(gf, random.randint(1, 64), random.randint(1, 255))
#enc_dec_test(gf, 20) - Go to the end of bip-sss.py, uncomment test() and comment gen_vectors():Quotetest()
#gen_vectors() - Run the script, it will output your private key in WIF format (or an error if something's wrong with your shares).
I'm using ubuntu in a VirtualBox on windows for that.
If you're not familiar with python scripts (like myself ) it's better to run it once without any modifications (it prints out some tests), to see if everything is in place and working OK. - Run the bitcoin address utility, navigate to menu tools/utility and enter your private key (from the python script) into the field labeled "Private Key (WIF)".
Click on the second button under the input field (with two triangles pointing down).
Your BTC address is shown in the last field, compare it with the printout.
Should be exactly the same if everything went OK!
I hope that this description is somehow useful. Don't hesitate to ask me if something's unclear.
For total security I recommend to do this procedure on a disconnected PC which never touches the internet.
If you do this on a PC which is infected with malware (trojans, keyloggers, etc.), your private key could get stolen and your BTC will be lost!