trait KeyPairExt { // Required methods fn sign(&self, msg: &[u8]) -> Vec<u8>; fn public(&self) -> PublicKey; fn secret(&self) -> SecretKey; }
An extension trait, adding essential methods to all KeyPair types.
KeyPair
Sign a message using the private key.
Get the public key of this keypair.
Get the secret key of this keypair.