Crates.io | bls-12-381 |
lib.rs | bls-12-381 |
version | 0.0.23 |
source | src |
created_at | 2023-07-27 06:35:14.063101 |
updated_at | 2023-11-05 03:06:02.918708 |
description | Bls12 381 pairing-friendly curve implementation |
homepage | https://github.com/KogarashiNetwork/Kogarashi/ |
repository | https://github.com/KogarashiNetwork/Kogarashi/ |
max_upload_size | |
id | 927153 |
size | 64,846 |
Pairing friendly bls12-381 curve supports fully no_std
and parity-scale-codec
.
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}$
$ cargo test