pub trait G2Api {
    fn add_points(bytes: &[u8]) -> Result<Vec<u8>, ApiError>;
fn mul_point(bytes: &[u8]) -> Result<Vec<u8>, ApiError>;
fn multiexp(bytes: &[u8]) -> Result<Vec<u8>, ApiError>; }
Expand description

Every call has common parameters (may be redundant):

  • Lengths of modulus (in bytes)
  • Field modulus
  • Extension degree (2/3)
  • Non-residue
  • Curve A in Fpk
  • Curve B in Fpk
  • Length of a scalar field (curve order) (in bytes)
  • Curve order

Required methods

Implementors