Registry / crypto / blst
library0.3.16rscratesunverified

Bindings for the blst BLS12-381 library.

# Cargo.toml [dependencies] blst = "0.3.16"
INSTALL
IMPORT
SIG · BLST
B
blst
cryptorustv0.3.16
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.

SecretKey
use blst::min_pk::SecretKey;

Generate a BLS12-381 secret key and derive its public key.

use blst::min_pk::SecretKey; fn main() { let sk = SecretKey::key_gen(&[0u8; 32], &[]).unwrap(); let pk = sk.sk_to_pk(); println!("Public key: {:?}", pk.compress()); }
Debug
Known issues
gotchaUses native code; requires a C compiler and possibly assembly optimizations.
fix
Ensure you have a C compiler installed and set `CC` environment variable if needed.
affects: *
Upgrade
Version history
0.3.16latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
Amazon
1
Resources
blst — cargo add blst · libregistry