-
Notifications
You must be signed in to change notification settings - Fork 71
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
refactor: remove BatchVerifyMembership
and BatchVerifyNonMembership
#390
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The plan is to update VerifyMembership
and VerifyNonMembership
to not use Decompress
and getExistProofForKey
in a followup. I'd need to change the API to accept a *ExistenceProof
and *NonExistenceProof
and I'd like to change bool
to error
in the process
"smt batch nonexist": {Spec: SmtSpec, Proof: batchSMTnonexist, Ref: refsSMTnonexist[3]}, | ||
} | ||
} | ||
|
||
func DecompressBatchVectorsTestData(t *testing.T) map[string]*CommitmentProof { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why does this function still exist?
} | ||
|
||
func loadBatch(t *testing.T, dir string, filename string) (*CommitmentProof, []*RefData) { | ||
func loadBatch(t *testing.T, dir string, filename string) *CommitmentProof { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need this fn?
}) | ||
} | ||
} | ||
|
||
func TestDecompressBatchVectors(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why does this fn still exist?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see more deletions happen in #392
ref: #389