Skip to content

Commit 7d920df

Browse files
authored
mod: update go-ipa (#429)
Signed-off-by: Ignacio Hagopian <[email protected]>
1 parent ffdbaba commit 7d920df

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/ethereum/go-verkle
33
go 1.19
44

55
require (
6-
github.com/crate-crypto/go-ipa v0.0.0-20231025140028-3c0104f4b233
6+
github.com/crate-crypto/go-ipa v0.0.0-20240223125850-b1e8a79f509c
77
github.com/davecgh/go-spew v1.1.1
88
golang.org/x/sync v0.1.0
99
)

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ github.com/consensys/bavard v0.1.13 h1:oLhMLOFGTLdlda/kma4VOJazblc7IM5y5QPd2A/Yj
44
github.com/consensys/bavard v0.1.13/go.mod h1:9ItSMtA/dXMAiL7BG6bqW2m3NdSEObYWoH223nGHukI=
55
github.com/consensys/gnark-crypto v0.12.1 h1:lHH39WuuFgVHONRl3J0LRBtuYdQTumFSDtJF7HpyG8M=
66
github.com/consensys/gnark-crypto v0.12.1/go.mod h1:v2Gy7L/4ZRosZ7Ivs+9SfUDr0f5UlG+EM5t7MPHiLuY=
7-
github.com/crate-crypto/go-ipa v0.0.0-20231025140028-3c0104f4b233 h1:d28BXYi+wUpz1KBmiF9bWrjEMacUEREV6MBi2ODnrfQ=
8-
github.com/crate-crypto/go-ipa v0.0.0-20231025140028-3c0104f4b233/go.mod h1:geZJZH3SzKCqnz5VT0q/DyIG/tvu/dZk+VIfXicupJs=
7+
github.com/crate-crypto/go-ipa v0.0.0-20240223125850-b1e8a79f509c h1:uQYC5Z1mdLRPrZhHjHxufI8+2UG/i25QG92j0Er9p6I=
8+
github.com/crate-crypto/go-ipa v0.0.0-20240223125850-b1e8a79f509c/go.mod h1:geZJZH3SzKCqnz5VT0q/DyIG/tvu/dZk+VIfXicupJs=
99
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
1010
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
1111
github.com/google/subcommands v1.2.0/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk=

tree.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ func (n *InternalNode) Serialize() ([]byte, error) {
991991
ret[nodeTypeOffset] = internalRLPType
992992

993993
// Write the <commitment>
994-
comm := n.commitment.BytesUncompressed()
994+
comm := n.commitment.BytesUncompressedTrusted()
995995
copy(ret[internalCommitmentOffset:], comm[:])
996996

997997
return ret, nil

tree_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ func TestNodeSerde(t *testing.T) {
705705
if err := tree.Insert(fourtyKeyTest, testValue, nil); err != nil {
706706
t.Fatalf("inserting into key2 failed: %v", err)
707707
}
708-
origComm := tree.Commit().BytesUncompressed()
708+
origComm := tree.Commit().BytesUncompressedTrusted()
709709
root := tree.(*InternalNode)
710710

711711
// Serialize all the nodes
@@ -749,10 +749,10 @@ func TestNodeSerde(t *testing.T) {
749749
resRoot.children[64] = resLeaf64
750750

751751
if !isInternalEqual(root, resRoot) {
752-
t.Fatalf("parsed node not equal, %x != %x", root.commitment.BytesUncompressed(), resRoot.commitment.BytesUncompressed())
752+
t.Fatalf("parsed node not equal, %x != %x", root.commitment.BytesUncompressedTrusted(), resRoot.commitment.BytesUncompressedTrusted())
753753
}
754754

755-
if resRoot.Commitment().BytesUncompressed() != origComm {
755+
if resRoot.Commitment().BytesUncompressedTrusted() != origComm {
756756
t.Fatal("invalid deserialized commitment")
757757
}
758758
}

0 commit comments

Comments
 (0)