0

I want to make a smart contract that acts as an escrow for a decryption key : there is a file stored outside blockchain which is crypted. I'd like the smart contract to somehow keep the decryption key hidden from the beneficiary and then reveal to him when a condition is met...But I can't think of a good scheme to do that.

Someone suggested me to use a commit-reveal scheme : key is encrypted using symetric encryption, and encrypted again using asymetric encryption, then put on the blockchain. The password to decrypt is sent to the beneficiary when the condition is met. And then he can access to the asymetric encrypted data with his private key. But with this scheme I have to store the password outside blockchain and fetched it "myself" when the condition is met. Do you have a way to do it more trustlessly ?

(sorry for my english !!)

2
  • It's a great idea, that's good for the asset inheritance after special days, but I think you shouldn't store anything, make people put their asset to the contract with a pubkey and a due date, and pass the private key to their children, they can use the private key to get the asset in the due date that the owner write in the contract.
    – Jimmy Guo
    Nov 20, 2019 at 14:06
  • if the asset doesn't support smart contract escrow, it will be very difficult. you can't store a btc private key and make the block chain to reveal it in the future, the smart contract is just a good way to lock your asset.
    – Jimmy Guo
    Nov 20, 2019 at 14:10

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.