You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 11, 2024. It is now read-only.
// VerifyCommitment verifies that the commitment in `in` is correct for userID.
func (Verifier) VerifyCommitment(userID, appID string, in *tpb.GetEntryResponse) error {
if in.Committed != nil {
entry := new(tpb.Entry)
if err := proto.Unmarshal(in.GetLeafProof().GetLeaf().GetLeafValue(), entry); err != nil {
return err
}
if err := commitments.Verify(userID, appID, entry.Commitment, in.Committed); err != nil {
return err
}
}
return nil
}
If in.committed == nil the verification silently passes (no error is thrown). Is this intended? If so, why?
I would expect an error to be raised when Committed == nil