go-kzg
go-kzg copied to clipboard
Fix underflow in IsPowerOfTwo
For v = 0
the v-1
value will underflow to 18446744073709551615
Then 0000...0000 & 1111...1111 == 0
For v = 0
the v-1
value will underflow to 18446744073709551615
Then 0000...0000 & 1111...1111 == 0