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

[BLST] Remove heap allocation on aggregateVerify #70

Closed mratsim closed 4 years ago

mratsim commented 4 years ago

Currently this is needed:

https://github.com/status-im/nim-blscurve/blob/847f31d53007ed6e7d29c386150ff7a81860590a/blscurve/blst/bls_sig_min_pubkey_size_pop.nim#L549-L574

The context is ref or we have corrupted results

mratsim commented 4 years ago

This actually might not be possible, The C++ and Rust wrapper allocates on the heap: