blsttc 8.0.2

Pairing threshold cryptography
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use blsttc::SecretKey;

/// Extremely simple example to effectively provide a little util program for quickly generating a
/// BLS keypair and printing out the hex representation.
///
/// Could be extended to demonstrate the use of shares.
fn main() {
    let sk = SecretKey::random();
    let pk = sk.public_key();
    println!("public key: {}", pk.to_hex());
    println!("secret key: {}", sk.to_hex());
}