Trait diem_sdk::crypto::traits::PrivateKey [−][src]
pub trait PrivateKey {
type PublicKeyMaterial: PublicKey;
fn public_key(&self) -> Self::PublicKeyMaterial { ... }
}
Expand description
A type family for key material that should remain secret and has an
associated type of the PublicKey
family.
Associated Types
We require public / private types to be coupled, i.e. their associated type is each other.
Provided methods
fn public_key(&self) -> Self::PublicKeyMaterial
fn public_key(&self) -> Self::PublicKeyMaterial
Returns the associated public key