|
|
|
@ -156,10 +156,6 @@ func GetTreeKey(address []byte, treeIndex *uint256.Int, subIndex byte) []byte { |
|
|
|
|
func GetTreeKeyWithEvaluatedAddress(evaluated *verkle.Point, treeIndex *uint256.Int, subIndex byte) []byte { |
|
|
|
|
var poly [5]fr.Element |
|
|
|
|
|
|
|
|
|
poly[0].SetZero() |
|
|
|
|
poly[1].SetZero() |
|
|
|
|
poly[2].SetZero() |
|
|
|
|
|
|
|
|
|
// little-endian, 32-byte aligned treeIndex
|
|
|
|
|
var index [32]byte |
|
|
|
|
for i := 0; i < len(treeIndex); i++ { |
|
|
|
@ -285,8 +281,6 @@ func evaluateAddressPoint(address []byte) *verkle.Point { |
|
|
|
|
} |
|
|
|
|
var poly [3]fr.Element |
|
|
|
|
|
|
|
|
|
poly[0].SetZero() |
|
|
|
|
|
|
|
|
|
// 32-byte address, interpreted as two little endian
|
|
|
|
|
// 16-byte numbers.
|
|
|
|
|
verkle.FromLEBytes(&poly[1], address[:16]) |
|
|
|
|