Module sp_crypto_ec_utils::bls12_381::host_calls
source · Expand description
Interfaces for working with Arkworks BLS12-381 elliptic curve related types from within the runtime.
All types are (de-)serialized through the wrapper types from the ark-scale
trait,
with ark_scale::{ArkScale, ArkScaleProjective}
.
ArkScale
’s Usage
generic parameter is expected to be set to “not-validated”
and “not-compressed”.
Structs§
- Provides implementations for the extern host functions.
Functions§
- Pairing final exponentiation for BLS12-381.
- Multi scalar multiplication on G1 for BLS12-381
- Multi scalar multiplication on G2 for BLS12-381
- Projective multiplication on G1 for BLS12-381.
- Projective multiplication on G2 for BLS12-381
- Pairing multi Miller loop for BLS12-381.