lurk-lab / bls12_381

Implementation of the BLS12-381 pairing-friendly elliptic curve group
Other
0 stars 0 forks source link

chore: avoid some copies in `g2.rs` #14

Closed arthurpaulino closed 1 month ago

arthurpaulino commented 1 month ago

Note: we're eventually going to have precompiles for those. But in the meantime we can already have reduced proving costs. And when we have those precompiles available, we will be able to see the gain diff wrt the current optimizations.

In my experiments, these changes cause a drop of ~937k cycles for the ratcheting program.