Skip to content

Reconsider the public transfer mechanism. #1

@Amxx

Description

@Amxx

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions