2 added 310 characters in body
source | link

Most of us will probably want our bitcoins to go on to our family members when we die.

If you're the only one with access to your private key, however, that is unfortunately impossible.

The best solution to this is to "shard" your private key into shares and distribute those shares to various members of your family. With Shamir's Secret Sharing Scheme, you can require that M shares of the N total shares created be required to reconstruct the private key.

Here is a very straightforward, easy to read python implementation of Shamir's Secret Sharing: https://github.com/halfmoonlabs/secretsharinghttps://github.com/rxl/secret-sharing.

All you need to do to shard your private key is the following:

>>> secretfrom =secretsharing Secret.from_hex(private_key)import BitcoinToB32SecretSharer
>>> shares = secretBitcoinToB32SecretSharer.splitsplit_secret("5KJvsngHeMpm884wtkJNzQGaCErckhHJBGFsvd3VyK5qMZXj3hS", 3, 5)
['B-RJ6Y56OSUWDY5VAAGC6XLSTM64CAJ2LPBNB7NKATJCWC7VSHIP5DQIVMR6OGJ4GB', 'C-CT5R24XAR5B732JWYQKSYOYBSF5VHI73HLY24QCFRJR5XUW64C4JWYN6SRGWVCUG', 'D-T54KX27OPEAGZ7TNK5WOFK4WFPZKEXUHNKPWLWDXZQNYPT3WPV3P5IGQTD7HAJDG']

In this case, 3 out of 5 of your family members would have to come forth upon your death and combine their shares in order for your private key (and your bitcoins) to be recovered.

The process for recovering private keys would be as follows:

>>> recovered_secret = SecretBitcoinToB32SecretSharer.from_sharesrecover_secret([share1, share2, share3]shares[0:3])
>>> print recovered_secret.as_hex()'5KJvsngHeMpm884wtkJNzQGaCErckhHJBGFsvd3VyK5qMZXj3hS'

Most of us will probably want our bitcoins to go on to our family members when we die.

If you're the only one with access to your private key, however, that is unfortunately impossible.

The best solution to this is to "shard" your private key into shares and distribute those shares to various members of your family. With Shamir's Secret Sharing Scheme, you can require that M shares of the N total shares created be required to reconstruct the private key.

Here is a very straightforward, easy to read python implementation of Shamir's Secret Sharing: https://github.com/halfmoonlabs/secretsharing.

All you need to do to shard your private key is the following:

>>> secret = Secret.from_hex(private_key)
>>> shares = secret.split(3, 5)

In this case, 3 out of 5 of your family members would have to come forth upon your death and combine their shares in order for your private key (and your bitcoins) to be recovered.

The process for recovering private keys would be as follows:

>>> recovered_secret = Secret.from_shares([share1, share2, share3])
>>> print recovered_secret.as_hex()

Most of us will probably want our bitcoins to go on to our family members when we die.

If you're the only one with access to your private key, however, that is unfortunately impossible.

The best solution to this is to "shard" your private key into shares and distribute those shares to various members of your family. With Shamir's Secret Sharing Scheme, you can require that M shares of the N total shares created be required to reconstruct the private key.

Here is a very straightforward, easy to read python implementation of Shamir's Secret Sharing: https://github.com/rxl/secret-sharing.

All you need to do to shard your private key is the following:

>>> from secretsharing import BitcoinToB32SecretSharer
>>> shares = BitcoinToB32SecretSharer.split_secret("5KJvsngHeMpm884wtkJNzQGaCErckhHJBGFsvd3VyK5qMZXj3hS", 3, 5)
['B-RJ6Y56OSUWDY5VAAGC6XLSTM64CAJ2LPBNB7NKATJCWC7VSHIP5DQIVMR6OGJ4GB', 'C-CT5R24XAR5B732JWYQKSYOYBSF5VHI73HLY24QCFRJR5XUW64C4JWYN6SRGWVCUG', 'D-T54KX27OPEAGZ7TNK5WOFK4WFPZKEXUHNKPWLWDXZQNYPT3WPV3P5IGQTD7HAJDG']

In this case, 3 out of 5 of your family members would have to come forth upon your death and combine their shares in order for your private key (and your bitcoins) to be recovered.

The process for recovering private keys would be as follows:

>>> BitcoinToB32SecretSharer.recover_secret(shares[0:3])
'5KJvsngHeMpm884wtkJNzQGaCErckhHJBGFsvd3VyK5qMZXj3hS'
1
source | link

Most of us will probably want our bitcoins to go on to our family members when we die.

If you're the only one with access to your private key, however, that is unfortunately impossible.

The best solution to this is to "shard" your private key into shares and distribute those shares to various members of your family. With Shamir's Secret Sharing Scheme, you can require that M shares of the N total shares created be required to reconstruct the private key.

Here is a very straightforward, easy to read python implementation of Shamir's Secret Sharing: https://github.com/halfmoonlabs/secretsharing.

All you need to do to shard your private key is the following:

>>> secret = Secret.from_hex(private_key)
>>> shares = secret.split(3, 5)

In this case, 3 out of 5 of your family members would have to come forth upon your death and combine their shares in order for your private key (and your bitcoins) to be recovered.

The process for recovering private keys would be as follows:

>>> recovered_secret = Secret.from_shares([share1, share2, share3])
>>> print recovered_secret.as_hex()