zkcrypto / bls12_381

Implementation of the BLS12-381 pairing-friendly elliptic curve group
Other
304 stars 178 forks source link

Basic serde support for Scalar, G1 and G2 #57

Closed jstuczyn closed 2 years ago

jstuczyn commented 3 years ago

Inspired by https://github.com/zkcrypto/bls12_381/issues/35 and subsequently https://github.com/zkcrypto/bls12_381/pull/38, this pull request introduces feature-gated serde support for the following:

Where applicable, the compressed form is used over the uncompressed variant.