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

add: insert nullifier to db in proof-verification and return nullifier in light-mode #16

Merged
merged 5 commits into from
Oct 24, 2024

Conversation

chabanyknikita
Copy link
Contributor

No description provided.


if byNullifier != nil && byNullifier.UserIDHash != verifiedUser.UserIDHash {
Log(r).WithError(err).Errorf("User with this nullifier [%s] but a different userIDHash already exists", nullifierHex)
verifiedUser.Status = "failed_verification"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
string failed_verification has 7 occurrences, make it a constant (goconst)

@chabanyknikita chabanyknikita merged commit 0c99cd8 into main Oct 24, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants