-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
I'm starting to think that having a public variant of the confidential transfer functions is possibly to much. Instead I would consider the following:
- There already is a transfer event that includes the encrypted amount
- The sender or receiver of the transfer have the ability to decrypt.
- Anyone able to decrypt the value can theoretically:
- provide the decryped value, with a proof
- provide an event inclusion proof (merkle proof)
We could imagine that the contract could have a discloseEvent function that:
- takes both proofs listed above
- verifies them
- emit a public event for the transfer that was disclosed.
If there ever is a mecanism to make a euint64 public, the sender of the public transfer could make that public onchain so that anyone is then able to produce the proofs mentionned above.
Metadata
Metadata
Assignees
Labels
No labels