Registry / crypto / ark-bls12-381

ark-bls12-381

JSON →
library0.6.0rscratesunverified

The BLS12-381 pairing-friendly elliptic curve implementation from the arkworks ecosystem.

# Cargo.toml [dependencies] ark-bls12-381 = "0.6.0"
INSTALL
IMPORT
SIG · ARK-BLS12-381
A
ark-bls12-381
cryptorustv0.6.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_381
use ark_bls12_381::Bls12_381;

Compute a pairing on BLS12-381.

use ark_bls12_381::Bls12_381; use ark_ec::PairingEngine; fn main() { let _engine = Bls12_381::pairing(ark_bls12_381::G1Projective::rand(), ark_bls12_381::G2Projective::rand()); println!("Pairing computed"); }
Debug
Known issues
gotchaRequires the `ark-std` and `ark-ec` dependencies; feature flags may be needed for parallelization.
fix
Add `ark-std` and `ark-ec` to Cargo.toml; enable `parallel` feature for multi-threading.
affects: >=0.6.0
Upgrade
Version history
0.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
33 hits · last 30 days
node
30
Resources
ark-bls12-381 — cargo add ark-bls12-381 · libregistry