Skip to content

Commit

Permalink
fix verify if uniqueness
Browse files Browse the repository at this point in the history
  • Loading branch information
chabanyknikita committed Sep 3, 2024
1 parent 3a8cd08 commit 84bca85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/service/handlers/verification_callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ func VerificationCallback(w http.ResponseWriter, r *http.Request) {
if verifiedUser.Nationality != "" {
verifyOpts = append(verifyOpts, zk.WithCitizenships(verifiedUser.Nationality))
}
if verifiedUser.Uniqueness {
verifyOpts = append(verifyOpts, zk.WithIdentitiesCreationTimestampLimit(Verifiers(r).ServiceStartTimestamp), zk.WithIdentitiesCounter(1))
}

err = Verifiers(r).Passport.VerifyProof(proof, verifyOpts...)
if err != nil {
Expand Down

0 comments on commit 84bca85

Please sign in to comment.