referrerpolicy=no-referrer-when-downgrade

Module host_calls

Module host_calls 

Source
Expand description

Interfaces for working with Arkworks Ed-on-BLS12-381-Bandersnatch elliptic curve related types from within the runtime.

All types are (de-)serialized through the wrapper types from ark-scale.

ArkScale’s Usage generic parameter is expected to be set to “not-validated” and “not-compressed”.

When the projective result of a host call lands at z = 0 (only reachable via non-subgroup inputs), the host returns utils::Error::DegeneratePoint instead of panicking, and the runtime-side HostHooks impl substitutes the all-zero projective point (0, 0, 0, 0). See the module-level doc for the full contract.

Structs§

HostFunctions
Provides implementations for the extern host functions.

Functions§

ed_on_bls12_381_bandersnatch_msm
Twisted Edwards multi scalar multiplication for Ed-on-BLS12-381-Bandersnatch.
ed_on_bls12_381_bandersnatch_mul
Twisted Edwards affine multiplication for Ed-on-BLS12-381-Bandersnatch.