Trait HintTaker

Source
pub trait HintTaker {
    // Provided methods
    fn take_the_hint(
        &self,
        envelope_id_hint: &EnvelopeIdHint,
        salts: &Salts,
    ) -> Result<HintedEnvelopeId, CryptError>
       where Self: ParticipantSecretKeys { ... }
    fn take_all_the_hints(
        &self,
        envelope_id_hints: &EnvelopeIdHints,
        salts: &Salts,
    ) -> Result<Vec<HintedEnvelopeId>, DecodeError>
       where Self: ParticipantSecretKeys { ... }
}
Expand description

Secret keys that “take” (decrypt) hints using ECDH-OMR.

Provided Methods§

Source

fn take_the_hint( &self, envelope_id_hint: &EnvelopeIdHint, salts: &Salts, ) -> Result<HintedEnvelopeId, CryptError>

Decrypt a single envelope ID hint.

Source

fn take_all_the_hints( &self, envelope_id_hints: &EnvelopeIdHints, salts: &Salts, ) -> Result<Vec<HintedEnvelopeId>, DecodeError>

Decrypt a set of envelope ID hints.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§