简体   繁体   English

以太坊如何在私钥泄漏的情况下重新加密敏感数据

[英]Ethereum how to re-encrypt the sensitive data if the private key leaks

Assuming some sensitive data is encrypted by the public key and stored on the ethereum network. 假设一些敏感数据已通过公钥加密并存储在以太坊网络中。

My question is: If the private key leaks, can we re-encrypt the data so that the data cannot be decrypted by the leaked private key? 我的问题是:如果私钥泄漏,我们可以重新加密数据,以便数据不能被泄漏的私钥解密吗?

Since the immutability of the blockchain, I thinks it's impossbile, right? 由于区块链的不可变性,我认为这是不可能的,对吧?

Are there any other good solutions for storing the sensitive data? 还有其他好的解决方案来存储敏感数据吗?

If the private key leaks, can we re-encrypt the data so that the data cannot be decrypted by the leaked private key? 如果私钥泄漏,我们是否可以重新加密数据,以使数据不能被泄漏的私钥解密?

You could reencrypt the data with a new private key, and write that new encrypted data to the blockchain. 您可以使用新的私钥重新加密数据,然后将新的加密数据写入区块链。 However, since ethereum maintains a complete historical state, your previous version of the data will still be visible in the past blocks, allowing anyone to decrypt it. 但是,由于以太坊保持完整的历史状态,因此您以前的数据版本在过去的块中仍然可见,从而允许任何人对其进行解密。

Are there any other good solutions for storing the sensitive data? 还有其他好的解决方案来存储敏感数据吗?

Encrypt and store the data off chain, and just publish a hash of the data to the chain for integrity/security checks/proof of time. 离线加密和存储数据,只需将数据的哈希值发布到链中以进行完整性/安全性检查/时间证明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM