Registry / crypto / ark-bn254

ark-bn254

JSON →
library0.5.0rscratesunverified

The BN254 pairing-friendly elliptic curve

# Cargo.toml [dependencies] ark-bn254 = "0.5.0"
INSTALL
IMPORT
SIG · ARK-BN254
A
ark-bn254
cryptorustv0.5.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.

Bn254
use ark_bn254::Bn254;

Initialize the BN254 elliptic curve generator

use ark_bn254::Bn254; use ark_ec::pairing::Pairing; let g1 = Bn254::generator(); println!("G1: {:?}", g1);
Debug
Known issues
gotchaRequires the `ark-std` and `ark-ec` crates for full functionality.
fix
Add `ark-std` and `ark-ec` to Cargo.toml dependencies.
affects: >=0.5.0
Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
40 hits · last 30 days
node
38
Resources
ark-bn254 — cargo add ark-bn254 · libregistry