Registry / crypto / bls-signatures

bls-signatures

JSON →
library0.15.0rscratesunverified

Aggregate BLS Signatures for efficient multi-signature verification.

# Cargo.toml [dependencies] bls-signatures = "0.15.0"
INSTALL
IMPORT
SIG · BLS-SIGNATURES
B
bls-signatures
cryptorustv0.15.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.

Signature
use bls_signatures::Signature;

Generates a BLS signature for a message.

use bls_signatures::{PrivateKey, Signature}; fn main() -> Result<(), Box<dyn std::error::Error>> { let private_key = PrivateKey::new(&mut rand::thread_rng()); let message = b"Hello, world!"; let signature = private_key.sign(message); println!("Signature: {:?}", signature); Ok(()) }
Debug
Known issues
gotchaRequires the 'pairing' feature for certain curves.
fix
Add `features = ["pairing"]` to your Cargo.toml dependency.
affects: >=0.15.0
Upgrade
Version history
0.15.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
Resources