pub trait PublicKey: Clone + Debug + Serialize + DeserializeOwned {
    // Required methods
    fn to_bytes(&self) -> Vec<u8>;
    fn verify(
        &self,
        data_hash: &[u8],
        sig: &MessageSignature
    ) -> Result<bool, &'static str>;
}

Required Methods§

source

fn to_bytes(&self) -> Vec<u8>

source

fn verify( &self, data_hash: &[u8], sig: &MessageSignature ) -> Result<bool, &'static str>

Implementors§