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: VerifyMembership and VerifyNonMembership api #391

Merged
merged 12 commits into from
Oct 23, 2024

Conversation

colin-axner
Copy link
Contributor

ref: #389

@colin-axner
Copy link
Contributor Author

running into a bit of import issues as this fn is depended on by cosmos/iavl, cosmos/cosmos-sdk, and cosmos/ibc-go. Might be good to see what the update flow is before merging

@colin-axner colin-axner marked this pull request as ready for review October 21, 2024 15:11
go/ics23.go Outdated
return ep
}
}
if !isLeft(spec, np.Left, key) || !isRight(spec, np.Right, key) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

maybe this check should be within NonExistenceProof.Verify?

…thub.com:cosmos/ics23 into colin/update-verify-membership-and-nonmembership
switch p := proof.Proof.(type) {
case *CommitmentProof_Exist:
ep := p.Exist
if bytes.Equal(ep.Key, key) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

checked in ep.Verify

switch p := proof.Proof.(type) {
case *CommitmentProof_Nonexist:
np := p.Nonexist
if isLeft(spec, np.Left, key) && isRight(spec, np.Right, key) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

checked in np.Verify

Base automatically changed from colin/remove-batch-proof-api to master October 23, 2024 09:33
@colin-axner colin-axner merged commit 90b4eef into master Oct 23, 2024
6 checks passed
@colin-axner colin-axner deleted the colin/update-verify-membership-and-nonmembership branch October 23, 2024 09:38
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