zkcrypto / pairing

Pairing-friendly elliptic curve library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serde support

afck opened this issue · comments

It would be convenient to have serde's Serialize and Deserialize traits implemented for the groups and fields, so they could be seamlessly used e.g. for storing keys on disk, or sending signatures over the network.

To keep the dependencies minimal, this could be behind a feature flag.

Agreed!

Great, I'm happy to give it a try, and start by moving our implementation (using the compressed representation) for G1 and G2 into this crate, and add one for Fr.

Should I make serde a full dependency, or put it behind a serialization-serde feature flag?