trait PublicKeyExt {
// Required methods
fn as_bytes(&self) -> &[u8] ⓘ;
fn verify(&self, msg: &[u8], signature: &[u8]) -> Result<()>;
}
Expand description
An extension trait, adding essential methods to all PublicKey
types.
trait PublicKeyExt {
// Required methods
fn as_bytes(&self) -> &[u8] ⓘ;
fn verify(&self, msg: &[u8], signature: &[u8]) -> Result<()>;
}
An extension trait, adding essential methods to all PublicKey
types.