go-ethereum icon indicating copy to clipboard operation
go-ethereum copied to clipboard

trie/utils: remove useless `SetZero` for verkle

Open zhiqiangxu opened this issue 1 year ago • 0 comments

The default value of fr.Element is already zero, you can see the evidence in go-verkle here:

  1. https://github.com/ethereum/go-verkle/blob/dffa7562dbe971a9776f43795d49177a18ecb5c8/tree.go#L273

  2. https://github.com/ethereum/go-verkle/blob/dffa7562dbe971a9776f43795d49177a18ecb5c8/tree.go#L294

It doesn't call SetZero for those already zeroed fr.Elements.

zhiqiangxu avatar Sep 20 '24 02:09 zhiqiangxu