Struct diem_sdk::types::AccountKey
source · pub struct AccountKey { /* private fields */ }
Implementations§
source§impl AccountKey
impl AccountKey
pub fn generate<R>(rng: &mut R) -> Selfwhere R: RngCore + CryptoRng,
pub fn from_private_key(private_key: Ed25519PrivateKey) -> Self
pub fn private_key(&self) -> &Ed25519PrivateKey
pub fn public_key(&self) -> &Ed25519PublicKey
pub fn authentication_key(&self) -> AuthenticationKey
Trait Implementations§
source§impl Debug for AccountKey
impl Debug for AccountKey
source§impl From<Ed25519PrivateKey> for AccountKey
impl From<Ed25519PrivateKey> for AccountKey
source§fn from(private_key: Ed25519PrivateKey) -> Self
fn from(private_key: Ed25519PrivateKey) -> Self
Converts to this type from the input type.