protolambda / go-kzg

FFT, data-recovery and KZG commitments, a.k.a. Kate commitments, in Go - *super experimental*
MIT License
90 stars 26 forks source link

add precompile return value per updated spec #31

Closed roberto-bayardo closed 1 year ago

roberto-bayardo commented 1 year ago

@protolambda I believe bigint.FillBytes() with a 32-byte slice is equivalent to to_bytes_32(), but I am not 100% sure. Hoping you can confirm?

protolambda commented 1 year ago

@roberto-bayardo added a commit to simplify the initialization a bit, and to copy the value as array before returning it, to avoid mutation of the reused global value. What do you think?

roberto-bayardo commented 1 year ago

@roberto-bayardo added a commit to simplify the initialization a bit, and to copy the value as array before returning it, to avoid mutation of the reused global value. What do you think?

looks great!