pub trait Encapsulator {
// Required method
fn encapsulate(
&self,
recipient: &QuorumPublicKey,
) -> Result<(Vec<u8>, Vec<u8>), EscrowError>;
}Expand description
Encapsulator hook — caller provides concrete threshold KEM implementation.
Required Methods§
Sourcefn encapsulate(
&self,
recipient: &QuorumPublicKey,
) -> Result<(Vec<u8>, Vec<u8>), EscrowError>
fn encapsulate( &self, recipient: &QuorumPublicKey, ) -> Result<(Vec<u8>, Vec<u8>), EscrowError>
Encapsulate to the quorum public key. Returns (encapsulated_key, shared_secret).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".