diff options
| author | Fuwn <[email protected]> | 2026-02-26 16:26:38 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-26 16:26:38 -0800 |
| commit | 8b7f7b938aead6ec285c5c9290f9a4305b96521f (patch) | |
| tree | 3a52bd80d3a0468b3fc96c5b240d02d7b16e8f49 /internal/merkle/tree.go | |
| parent | feat: Apply Iku formatting (diff) | |
| download | plutia-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.go | 3 |
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 { |