Skip to content

Commit 99f3c92

Browse files
authored
fix: don't create settings each time a key is calculated (#53)
1 parent c87a6d9 commit 99f3c92

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

trie/utils/verkle.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package utils
1818

1919
import (
2020
"github.com/crate-crypto/go-ipa/bandersnatch/fr"
21-
"github.com/crate-crypto/go-ipa/ipa"
2221
"github.com/gballet/go-verkle"
2322

2423
"github.com/holiman/uint256"
@@ -55,7 +54,7 @@ func GetTreeKey(address []byte, treeIndex *uint256.Int, subIndex byte) []byte {
5554
verkle.CopyFr(&poly[i], &verkle.FrZero)
5655
}
5756

58-
ret := ipa.NewIPASettings().Commit(poly[:])
57+
ret := verkle.GetConfig().CommitToPoly(poly[:], 0)
5958
retb := ret.Bytes()
6059
return retb[:]
6160

0 commit comments

Comments
 (0)