I'm trying to accomplish a task but I'm not sure how to approach the problem. I want to hash some variables inside a byte32 array. For example:
["Hashley", 32, "Random string"] -> equivalent hash
In my backend I'm listening for the events of my contract. I want the contract to emit the hash built starting from the array. My backend takes that hashing string and go back to the original message.
equivalent hash -> ["Hashley", 32, "Random string"]
How to approach such a problem? Where do I start? I know I can't use keccak algorithm because it is a one way encryption algorithm. So how can I do this?