Trait sn_dbc::KeyManager [−][src]
pub trait KeyManager { type Error: Error; fn sign(&self, msg_hash: &Hash) -> Result<NodeSignature, Self::Error>; fn public_key_set(&self) -> Result<PublicKeySet, Self::Error>; fn verify(
&self,
msg_hash: &Hash,
key: &PublicKey,
signature: &Signature
) -> Result<(), Self::Error>; fn verify_known_key(&self, key: &PublicKey) -> Result<(), Self::Error>; }