Skip to content

Commit

Permalink
Dummy: to be reverted
Browse files Browse the repository at this point in the history
  • Loading branch information
rach-id committed Jun 1, 2024
1 parent 47d2113 commit d538043
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions hasher.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,6 @@ func (n *NmtHasher) MustHashLeaf(ndata []byte) []byte {
// ValidateNodeFormat checks whether the supplied node conforms to the
// namespaced hash format and returns ErrInvalidNodeLen if not.
func (n *NmtHasher) ValidateNodeFormat(node []byte) (err error) {
expectedNodeLen := n.Size()
nodeLen := len(node)
if nodeLen != expectedNodeLen {
return fmt.Errorf("%w: got: %v, want %v", ErrInvalidNodeLen, nodeLen, expectedNodeLen)
}
// check the namespace order
minNID := namespace.ID(MinNamespace(node, n.NamespaceSize()))
maxNID := namespace.ID(MaxNamespace(node, n.NamespaceSize()))
Expand Down

0 comments on commit d538043

Please sign in to comment.