3 ms·
Destroy the contract. https://solidity-by-example.org/hacks/self-destruct https://solidity-by-example.org/hacks/self-destruct If you had mailed CDs of picture
by landemva 5y ago
Destroy the contract. https://solidity-by-example.org/hacks/self-destruct https://solidity-by-example.org/hacks/self-destruct
If you had mailed CDs of pictures and all your data to everyone in town, you mostly gave up your privacy already. And then you want a magic delete-all-CDs button?
- endisneigh 5y agoYour link doesn’t explain how deletion is possible
- landemva 5y agoCall the contract self destruct function. The contract and stored info (state) are removed. You may want to explain how mailing CDs to everyone in town allows an expectation they will destroy the CDs when you press the magic delete-all-CDs button. If you want to publish your info on a public ledger, and you want privacy, you would be studying zk proofs rather than learning about selfdestruct().
- endisneigh 5y agoYour mailing cd example isn’t relevant nor did I mention it so I’m not sure why you are. Again, your link doesn’t explain how something is deleted for everyone. Your link doesn’t say that it’s deleted, simply sent to another address.