status-im / nim-blscurve

Nim implementation of BLS signature scheme (Boneh-Lynn-Shacham) over Barreto-Lynn-Scott (BLS) curve BLS12-381
Apache License 2.0
26 stars 11 forks source link

BLS signature v4 #91

Closed mratsim closed 3 years ago

mratsim commented 3 years ago

This upgrades the repo to support the full BLS v04 signatures:

Specs

Public API changes

Notable changes

A zero secret-key or public key is checked at deserialization (see https://github.com/supranational/blst/issues/11) for discussion. This slightly differ from KeyValidate in the spec which includes zero-key and subgroup check. (related #42) The spec does mention that KeyValidate MAY be cached (see #90)