Skip to main content

open_multi

Function open_multi 

Source
pub fn open_multi(
    keypair: &KeyPair,
    envelope: &MultiRecipientEnvelope,
) -> Result<Vec<u8>>
Expand description

Decrypt a multi-recipient envelope with keypair, if it is a recipient.

Every wrap is trial-decrypted; there is no per-recipient identifier on the wire. Returns Error::DecryptionFailed uniformly if keypair is not a recipient or the envelope was tampered with.