pub trait OperatorObservationAuthorityProvider:
Debug
+ Send
+ Sync {
// Required methods
fn sign(
&self,
authority_id: &str,
observation_digest: &str,
) -> Option<String>;
fn verify(
&self,
authority_id: &str,
observation_digest: &str,
proof: &str,
) -> bool;
}Required Methods§
fn sign(&self, authority_id: &str, observation_digest: &str) -> Option<String>
fn verify( &self, authority_id: &str, observation_digest: &str, proof: &str, ) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".