This Content is from Stack Overflow. Question asked by asmbaty
Consider the following scenario:
- User writes a message to the blockchain which is ciphered (encoded, hashed).
- User provides a
codeand using that code it’s possible to decipher what is written in the blockchain
codedoesn’t work for the second time, but the user can provide
another codethat helps someone to see the message again
- It’s possible to provide as many
one-timecodes as possible.
Did I just describe a classic cryptography problem? How is it possible to achieve this using Solidity? Some parts of the algorithm can work off-chain but the original message must be on-chain.
This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.
This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.