IdentityPublicKeyHashMethodsV0

Trait IdentityPublicKeyHashMethodsV0 

Source
pub trait IdentityPublicKeyHashMethodsV0 {
    // Required methods
    fn public_key_hash(&self) -> Result<[u8; 20], ProtocolError>;
    fn validate_private_key_bytes(
        &self,
        private_key_bytes: &[u8; 32],
        network: Network,
    ) -> Result<bool, ProtocolError>;
}

Required Methods§

Source

fn public_key_hash(&self) -> Result<[u8; 20], ProtocolError>

Get the original public key hash

Source

fn validate_private_key_bytes( &self, private_key_bytes: &[u8; 32], network: Network, ) -> Result<bool, ProtocolError>

Verifies that the private key bytes match this identity public key

Implementors§