4 ms·
The other common approach here (for non-generative images) is to store the Sha3 hash of an image and then simply require that someone, somewhere has the actual
by ghayes 6y ago
The other common approach here (for non-generative images) is to store the Sha3 hash of an image and then simply require that someone, somewhere has the actual data. You could also pass the image as a LOG message which is significantly cheaper (3 gas per byte, versus 20,000 gas per 32-bytes to store data) which means if you can read older chain blocks, you can ensure you have the underlying data.
- choxi 6y agoWould this be equivalent to storing the encryption key on the blockchain such that only people with an NFT have the key, and can decrypt the image (wherever the encrypted image is stored)?
- verdverm 6y agoNo, storing the SHA3 means that if you have the image, you can verify that it has not changed
- nmaleki 6y agoFew questions, By "actual data" I'm assuming you mean the image itself? What does a request for the actual data look like, because it is my understanding the actual data wouldn't be stored on the blockchain? The LOG message is built into the Ethereum blockchain?