aboutsummaryrefslogtreecommitdiff
path: root/internal/merkle/tree.go
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-26 16:26:38 -0800
committerFuwn <[email protected]>2026-02-26 16:26:38 -0800
commit8b7f7b938aead6ec285c5c9290f9a4305b96521f (patch)
tree3a52bd80d3a0468b3fc96c5b240d02d7b16e8f49 /internal/merkle/tree.go
parentfeat: Apply Iku formatting (diff)
downloadplutia-test-8b7f7b938aead6ec285c5c9290f9a4305b96521f.tar.xz
plutia-test-8b7f7b938aead6ec285c5c9290f9a4305b96521f.zip
style: align codebase with official Go idioms
Diffstat (limited to 'internal/merkle/tree.go')
-rw-r--r--internal/merkle/tree.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/merkle/tree.go b/internal/merkle/tree.go
index 023b4ec..96f84f8 100644
--- a/internal/merkle/tree.go
+++ b/internal/merkle/tree.go
@@ -1,6 +1,7 @@
package merkle
import (
+ "bytes"
"crypto/sha256"
"encoding/hex"
)
@@ -110,7 +111,7 @@ func VerifyProof(leafHash []byte, proof []Sibling, root []byte) bool {
cur = h[:]
}
- return hex.EncodeToString(cur) == hex.EncodeToString(root)
+ return bytes.Equal(cur, root)
}
func cloneLevel(in [][]byte) [][]byte {