pub trait SigningRelay: Send + Sync {
// Required method
fn sign(
&self,
version: ProtocolVersion,
scheme: SignatureScheme,
peer_chain: &[CertificateDer<'static>],
input: &[u8],
) -> Result<Vec<u8>, Error>;
}Expand description
A connection-specific, authenticated relay bound by the supervisor to the live grant, worker, certificate, exact origin and operation deadline.
Required Methods§
fn sign( &self, version: ProtocolVersion, scheme: SignatureScheme, peer_chain: &[CertificateDer<'static>], input: &[u8], ) -> Result<Vec<u8>, Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".