Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For the zeto_anon_enc_nullifier type, should the encrypted value and encrypted salt be included in the UTXOMint event, similar to how they are included in UTXOTransferWithEncryptedValues? #54

Open
yushihang opened this issue Sep 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@yushihang
Copy link

emit UTXOMint(utxos, msg.sender);

https://github.com/hyperledger-labs/zeto/blob/8547ca56f8e8d0a9a8bd1230825e39aa840b4e19/solidity/contracts/zeto_anon_enc_nullifier.sol#L124C1-L130C11

I have a question that I am curious about: If the UTXOMint event does not include the encrypted value and encrypted salt, how might users be able to recover the UTXOs they previously minted from the contract's events?

@Chengxuan
Copy link
Contributor

@yushihang that's a great point. I think from a recovery point of view, they should be added to mint events. Worth getting @jimthematrix 's thoughts on this.

The events were initially added to eliminate the value and salt transportation when a party creates new UTXOs for other parties in a Zeto transaction. For Mint, there is no such requirement. But considering the recovery of UTXOs from on-chain data, adding those values to mint events sounds reasonable.

@Chengxuan Chengxuan added the enhancement New feature or request label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants