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§
Sourcefn public_key_hash(&self) -> Result<[u8; 20], ProtocolError>
fn public_key_hash(&self) -> Result<[u8; 20], ProtocolError>
Get the original public key hash
Sourcefn validate_private_key_bytes(
&self,
private_key_bytes: &[u8; 32],
network: Network,
) -> Result<bool, ProtocolError>
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