crate-crypto / go-eth-kzg

Apache License 2.0
29 stars 22 forks source link

Use trusted setup from specs #43

Closed jtraglia closed 1 year ago

jtraglia commented 1 year ago

This replaces the embedded trusted setup file with the one from the specs:

This did not work out of the box, because of the "0x" prefixes. I copied a helper function to do this where necessary.

karalabe commented 1 year ago

Note, the roots_of_unity fields are decimals, which will not be able to be represented in ,js. Go will be happy + thids lib ignores the, but the reason everything is hex everywhere is because some languanges are bad at big ints in json.