Trait PublicKey

Source
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>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§