grandinetech / rust-kzg

Parallelized multi-backend KZG library for Ethereum Data Sharding (aka Proto-Danksharding, EIP-4844)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add methods on G1/G2 to convert to/from bytes

nazar-pc opened this issue · comments

As discussed in #207 (comment), there was an API for this in the past, but it became private, probably makes sense to add to_bytes and from_bytes methods instead.

I'll probably tackle this myself soon, created this for tracking purposes and in case someone decides to take care of it before me 🙂