Trait diem_sdk::crypto::PublicKey [−][src]
pub trait PublicKey: Clone + Eq + Hash + for<'a> From<&'a Self::PrivateKeyMaterial> { type PrivateKeyMaterial: PrivateKey; }
Expand description
A type for key material that can be publicly shared, and in asymmetric
fashion, can be obtained from a PrivateKey
reference.
This convertibility requirement ensures the existence of a
deterministic, canonical public key construction from a private key.
Associated Types
type PrivateKeyMaterial: PrivateKey
[src]
Expand description
We require public / private types to be coupled, i.e. their associated type is each other.
Implementors
impl PublicKey for Ed25519PublicKey
[src]
impl PublicKey for Ed25519PublicKey
[src]impl PublicKey for MultiEd25519PublicKey
[src]
impl PublicKey for MultiEd25519PublicKey
[src]We deduce PublicKey from this.
impl PublicKey for PublicKey
[src]
impl PublicKey for PublicKey
[src]