w3f / bls

Aggregatable BLS sigantures
65 stars 15 forks source link

Improve serialization of Publickey and Signature #42

Open drskalman opened 2 years ago

drskalman commented 2 years ago

arkworks now have serialization for projective curve, so we should use it.

drskalman commented 2 years ago

ffbcbff derive serialization and impl ToBytes FromBytes from arkworks. Tests should be adapted to use ToBytes FromBytes. The compromise is that to bytes and from bytes do not return constant length arrays. But that was broken and hardcoded for 384 bytes.

burdges commented 2 years ago

Avoid To/FromBytes: https://github.com/arkworks-rs/algebra/issues/390