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

refactor: remove BatchVerifyMembership and BatchVerifyNonMembership #390

Merged
merged 5 commits into from
Oct 23, 2024

Conversation

colin-axner
Copy link
Contributor

ref: #389

@colin-axner colin-axner marked this pull request as ready for review October 21, 2024 09:10
Copy link
Contributor Author

@colin-axner colin-axner left a 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 {
Copy link
Member

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 {
Copy link
Member

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) {
Copy link
Member

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?

Copy link
Member

@AdityaSripal AdityaSripal left a 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

@colin-axner colin-axner merged commit fa483bc into master Oct 23, 2024
6 checks passed
@colin-axner colin-axner deleted the colin/remove-batch-proof-api branch October 23, 2024 09:33
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.

3 participants