Would like to be able to split a private key into two encoded byte arrays that can be xor'd to recreate the key.
derknorton opened this issue · 0 comments
derknorton commented
I want to be able to store my private key in a way that cannot be stolen and used. The proposed solution is to do the following:
- Export the private key as bytes.
- Generate a random byte array of the same length.
- Find the xor of the key bytes and the random bytes.
- Store the random bytes in one safe place and the xor bytes in another safe place.
It requires both the random bytes and the xor bytes to reconstruct the private key (using xor).