Skip to content

Commit

Permalink
Merge branch 'master' of github.com:cosmos/ics23 into colin/remove-ba…
Browse files Browse the repository at this point in the history
…tch-compress-logic-apis
  • Loading branch information
colin-axner committed Oct 23, 2024
2 parents 8c1ea29 + 90b4eef commit a0c4ac7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions go/ics23.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ and determine neighbors
*/
package ics23

import (
"bytes"
)

// CommitmentRoot is a byte slice that represents the merkle root of a tree that can be used to validate proofs
type CommitmentRoot []byte

Expand Down Expand Up @@ -63,11 +59,3 @@ func VerifyNonMembership(spec *ProofSpec, root CommitmentRoot, proof *Commitment

return np.Verify(spec, root, key) == nil
}

func isLeft(spec *ProofSpec, left *ExistenceProof, key []byte) bool {
return left == nil || bytes.Compare(keyForComparison(spec, left.Key), keyForComparison(spec, key)) < 0
}

func isRight(spec *ProofSpec, right *ExistenceProof, key []byte) bool {
return right == nil || bytes.Compare(keyForComparison(spec, right.Key), keyForComparison(spec, key)) > 0
}

0 comments on commit a0c4ac7

Please sign in to comment.