zama-ai / fhevm-contracts

A standard contract library for the fhEVM ecosystem
Other
4 stars 0 forks source link

Feature/add error handling #9

Closed jatZama closed 5 months ago

jatZama commented 5 months ago

It would be great to have the error and a block/timestamp associated. We can imagine to have an plaintext array with these informations. If the error is 2bit, you would have an uint[16]. It would allow a user to associate an error with a block/timestamp. (No need to encrypt this information)

Block number and block timestamp are directly accessible when you recover the Transfer event from the blockchain logs. Aslo I am not sure to understand what do you mean by "If the error is 2bit, you would have an uint[16]"?