This PR adds support for BLS12-381 in Soroban, by adding host functions for the field and curve operations, new metering cost types, and their calibration.
Why
Please refer to the CAP for motivation and design rationale.
Known limitations
The unit tests currently covers the low-level operations: G1/G2 operations, hashing to curve, pairing.
More test coverage will be added before the PR merged, at the integration level such as BLS signature and the Ethereum test vectors.
What
This PR adds support for BLS12-381 in Soroban, by adding host functions for the field and curve operations, new metering cost types, and their calibration.
Why
Please refer to the CAP for motivation and design rationale.
Known limitations
The unit tests currently covers the low-level operations: G1/G2 operations, hashing to curve, pairing. More test coverage will be added before the PR merged, at the integration level such as BLS signature and the Ethereum test vectors.