From 9ae20f464ea8fc5c731bc1e771268af8898ed1ff Mon Sep 17 00:00:00 2001 From: alan <652732310@qq.com> Date: Fri, 20 Sep 2024 10:53:28 +0800 Subject: [PATCH] remove useless SetZero --- trie/utils/verkle.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/trie/utils/verkle.go b/trie/utils/verkle.go index 12e02de9a4..08a281cdfa 100644 --- a/trie/utils/verkle.go +++ b/trie/utils/verkle.go @@ -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])