current position:Home>How can Ethereum contract accounts prevent disclosure of their own information?

How can Ethereum contract accounts prevent disclosure of their own information?

2022-02-03 20:53:26 Q & A of Denglian community

For example, there is a contract mapping State variables ,key It's the address ,value It's your message , Function access to get information mapping Variable , Send it to its own address , Can take out their own information .

The problem now is that the storage of contract accounts exists on each node , How to prevent malicious nodes from not calling functions , Get all... Directly from the storage of this contract account value Well ?




Take the answer 1:

If you want to save confidential data , Can store encrypted data ( The encrypted data is used as value).

In addition, pay attention to : Data in the contract , Whether visibility is common (public) It's still private (private). From the perspective of data chain , It's all public . Private data in the contract , Even if there is no way to get... Directly through the access contract , But it can be obtained from the parsing block .




copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032053242094.html

Random recommended