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

side-effect tracking #27

Closed mratsim closed 4 years ago

mratsim commented 5 years ago

For crypto, it's valuable to know that most routines are side-effect free and pure math.

However at the moment, even init/fromBytes cannot be tagged as func/noSideEffect.

mratsim commented 4 years ago

Not a problem anymore: https://github.com/status-im/nim-blscurve/blob/cfeb6ec4fdd8b69ad6e414ead8ef2d05de886b58/blscurve/bls_sig_io.nim#L30-L40