This commit is contained in:
Kevaundray Wedderburn 2025-07-10 23:14:07 +01:00
parent adf6119e88
commit 66425aa070

View file

@ -440,6 +440,7 @@ func berlinMultComplexity(x uint64) *uint256.Int {
z := new(uint256.Int).SetUint64(ceilDiv8)
return new(uint256.Int).Mul(z, z) // square without overflow
}
// Slow Bigint way (benchmark this)
// func berlinMultComplexity(xInt uint64) *big.Int {
// x := new(big.Int).SetUint64(xInt)