Skip to main content

seal

Function seal 

Source
pub fn seal(
    inner: &Envelope,
    sender_secret: &StaticSecret,
    recipient_public: &PublicKey,
) -> Result<Envelope, AclError>
Expand description

Seal inner so only the holder of recipient_secret’s counterpart public key can open it. The outer envelope keeps routing metadata (from/to/performative=inform) but the payload is opaque in transit.