referrerpolicy=no-referrer-when-downgrade
sp_crypto_ec_utils::bw6_761::host_calls

Function bw6_761_msm_g2

Source
pub fn bw6_761_msm_g2(
    bases: <PassFatPointerAndRead<Vec<u8>> as RIType>::Inner,
    scalars: <PassFatPointerAndRead<Vec<u8>> as RIType>::Inner,
) -> <AllocateAndReturnByCodec<Result<Vec<u8>, ()>> as RIType>::Inner
Expand description

Multi scalar multiplication on G2 for BW6-761.

  • Receives encoded:
    • bases: ArkScale<Vec<G2Affine>>.
    • scalars: ArkScale<Vec<G2Config::ScalarField>>.
  • Returns encoded: ArkScaleProjective<G2Projective>.