dpp/identity/identity_public_key/methods/hash/v0/
mod.rs

1use crate::ProtocolError;
2use dashcore::Network;
3
4pub trait IdentityPublicKeyHashMethodsV0 {
5    /// Get the original public key hash
6    fn public_key_hash(&self) -> Result<[u8; 20], ProtocolError>;
7
8    /// Verifies that the private key bytes match this identity public key
9    fn validate_private_key_bytes(
10        &self,
11        private_key_bytes: &[u8; 32],
12        network: Network,
13    ) -> Result<bool, ProtocolError>;
14}