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

Tag PerHumanIDv1 events with unique ids #19

Open
KimlikDAO-bot opened this issue May 21, 2024 · 0 comments
Open

Tag PerHumanIDv1 events with unique ids #19

KimlikDAO-bot opened this issue May 21, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@KimlikDAO-bot
Copy link
Member

PerHumanIDv1 contract emits 2 types of events

"KimlikDAO-init"-> height: Field
"KimlikDAO-add-HumanIDv1"-> humanIDv1Id: Field

Change the events so that they output 2 values: a globally unique ID and the value from above.

"KimlikDAO-init"-> Poseidon("KimlikDAO-init"): Field, height: Field
"KimlikDAO-add-HumanIDv1"-> Poseidon("KimlikDAO-add-HumanIDv1"): Field, height: Field

To achieve that you may need provable/struct.ts and emit a struct containing both the globally unique hash and the parameter value.

@KimlikDAO-bot KimlikDAO-bot added the enhancement New feature or request label May 21, 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