BLS Keys
What they are
What this means for the rest of us
Example of basic key usage
use autonomi::{SecretKey, PublicKey, Signature};
// create a random secret key
let secret_key = SecretKey::random();
// derive the public key from the secret key
let public_key: PublicKey = secret_key.public_key();
// sign a message
let message = "Hello, world!";
let signature: Signature = secret_key.sign(message.as_bytes());
// verify the signature
let verified = public_key.verify(message.as_bytes(), signature);
assert!(verified);Key Derivation
Example of key derivation
Last updated