Crate ec_pairing

Source
Expand description

§Tate Pairing

CI crates.io badge Documentation GitHub license codecov dependency status

This crate provides pairing arithmetic and also supports fully no_std and parity-scale-codec.

§Specification

$$ e(aG, bH) = e(G, H)^{ab}\ where\ a,b \in F_r,~G \in G_1,~H \in G_2 $$

§Test

$ cargo test

Structs§

TatePairing
Tate pairing struct holds necessary components for pairing. pairing function takes G1 and G2 group elements and output GT target group element.