supranational / blst

Multilingual BLS12-381 signature library
Apache License 2.0
458 stars 175 forks source link

Add `blst_fp12` deserialization `blst_fp12_from_bendian` #167

Open emlowe opened 1 year ago

emlowe commented 1 year ago

blst_fp12 has a serialization function blst_bendian_from_fp12 - but was missing the corresponding deserialization function.

This PR adds blst_fp12_from_bendian for this purpose.

dot-asm commented 1 year ago

Come on! It's not like we don't know it's missing :-) :-) :-) But on a serious note, there is a reason for why deserialization is not implemented. Because there is no specification and we don't want to give an impression that there is. Well, maybe there is now, maybe even a draft, in which case it would be more appropriate to simply provide a reference. Serialization was added to aid the cross-checking with other libraries, but not for communications, which would require a specification.