14 releases

0.0.23 Nov 5, 2023
0.0.22 Oct 11, 2023
0.0.20 Sep 28, 2023
0.0.12 Aug 22, 2023
0.0.11 Jul 31, 2023

#2915 in Magic Beans

Download history 39/week @ 2023-12-18 16/week @ 2023-12-25 4/week @ 2024-01-01 37/week @ 2024-01-08 22/week @ 2024-01-15 19/week @ 2024-01-22 10/week @ 2024-01-29 23/week @ 2024-02-05 27/week @ 2024-02-12 67/week @ 2024-02-19 50/week @ 2024-02-26 52/week @ 2024-03-04 60/week @ 2024-03-11 47/week @ 2024-03-18 50/week @ 2024-03-25 247/week @ 2024-04-01

417 downloads per month
Used in 7 crates (6 directly)

Apache-2.0

245KB
6.5K SLoC

Bls12 381 Curve

CI crates.io badge Documentation GitHub license codecov dependency status

Pairing friendly bls12-381 curve supports fully no_std and parity-scale-codec.

Overview

This crate includes field and extension fields, curve implementation. There are two curve $G1$ and $G2$ described as following.

$G1: y^2 = x^3 + 4$

$G2: y^2 = x^3 + 4(u + 1)$

These two group supports bilinearity by pairing. Let $G$ and $H$ be generator of $G1$, and $G2$, and $e$ be pairing function. The relationship is described as following.

$e(aG, bH) = e(G, H)^{ab}$

Test

$ cargo test

Dependencies

~2.6–3.5MB
~70K SLoC