Skip to content

[General] Privacy of data stored by the smart contact #908

Answered by sarahschwartz
ranile asked this question in General
Discussion options

You must be logged in to vote

Private variables are stored in the same way all contract variables are stored - the main difference there is that they are not visible in derived contracts: https://docs.soliditylang.org/en/v0.8.24/contracts.html#state-variable-visibility.
This data could be decoded from the transaction data on the explorer, although it's not easily readable.

If you want to prove something about the private data (for example, that a certain private number input X resulted in a final calculation Y), you could use something like SP1: https://docs.succinct.xyz/docs/introduction, or another ZK proof-based solution. This way X would stay private but Y would be public.

If you want to be able to access the exac…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ranile
Comment options

@sarahschwartz
Comment options

Answer selected by sarahschwartz
@ranile
Comment options

@sarahschwartz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
General
Labels
general General question
2 participants