Serde support
afck opened this issue · comments
Andreas Fackler commented
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.
ebfull commented
Agreed!
Andreas Fackler commented
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?