Registry / crypto / pairing

pairing

JSON →
library0.23.0rscratesunverified

Pairing-friendly elliptic curve library for cryptographic pairings.

# Cargo.toml [dependencies] pairing = "0.23.0"
INSTALL
IMPORT
SIG · PAIRING
P
pairing
cryptorustv0.23.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Bls12
use pairing::bls12_381::Bls12;

Computes a pairing between G1 and G2 generators on BLS12-381.

use pairing::bls12_381::{Bls12, G1Projective, G2Projective}; use pairing::Engine; let g1 = G1Projective::generator(); let g2 = G2Projective::generator(); let pairing = Bls12::pairing(g1, g2); println!("Pairing computed");
Debug
Known issues
gotchaRequires the `bls12_381` feature to be enabled for BLS12-381 support.
fix
Add `pairing = { version = "0.23", features = ["bls12_381"] }` to Cargo.toml.
affects: >=0.1.0
Upgrade
Version history
0.23.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
pairing — cargo add pairing · libregistry