Level 8 - Vault ⏺⏺
Last updated
Last updated
Private variable aren't secret, they are just not accessible by other smart contracts directly during smart contract execution. They can be read directly from the storage slots.
Use foundrys vm.load
cheatcode to get the data in the slot.
Submit instance... 🥳
To ensure that data is private, it needs to be encrypted before being put onto the blockchain. In this scenario, the decryption key should never be sent on-chain, as it will then be visible to anyone who looks for it. provide a way to determine whether someone possesses a secret parameter, without ever having to reveal the parameter.