zero-bls12-381

Crates.iozero-bls12-381
lib.rszero-bls12-381
version0.1.11
sourcesrc
created_at2022-11-10 01:47:29.865719
updated_at2023-04-28 07:06:48.495072
descriptionbls curve implementation
homepagehttps://github.com/KogarashiNetwork/Kogarashi
repositoryhttps://github.com/KogarashiNetwork/bls12_381
max_upload_size
id709149
size68,989
Karbushev Kirill (KiriosK)

documentation

README

Bls12 381 Curve crates.io badge

Pairing friendly bls12-381 curve.

This crate partly uses https://github.com/dusk-network/bls12_381 and https://github.com/dusk-network/bls12_381 implementation designed by Dusk-Network team and, @str4d and @ebfull. We replace field and curve implementation with zero-crypto to make this compatible with Substrate.

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}$

Commit count: 9

cargo fmt