Registry / crypto / threshold-crypto

threshold-crypto

JSON →
library0.4.0rscratesunverified

Pairing-based threshold cryptography for distributed key generation and signing.

# Cargo.toml [dependencies] threshold_crypto = "0.4.0"
INSTALL
IMPORT
SIG · THRESHOLD-CRYPTO
T
threshold-crypto
cryptorustv0.4.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.

SecretKeySet
use threshold_crypto::SecretKeySet;

Generates a random secret key set with threshold 1 and prints the public keys.

use threshold_crypto::SecretKeySet; fn main() { let mut rng = rand::thread_rng(); let sk_set = SecretKeySet::random(1, &mut rng); // threshold 1, 2 participants let pk_set = sk_set.public_keys(); println!("Public key set: {:?}", pk_set); }
Debug
Known issues
gotchaUses pairing-based cryptography which is computationally expensive.
fix
Consider performance implications for large-scale deployments.
affects: >=0.4.0
Upgrade
Version history
0.4.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
20
Resources
threshold-crypto — cargo add threshold-crypto · libregistry