Skip to content

Envelope

Text that was locked for some devices, with everything that is needed to unlock it on those devices. It is plain data that a plugin can save, synchronize or send. It is created by ctx.crypto.sealTo and read by ctx.crypto.open, and a plugin never needs to read its fields.

readonly ct: string;

The locked text.


readonly epk: string;

The temporary public key that was used to lock the keys of the recipients.


readonly from: Sender;

The device that locked the text, with its public keys.


readonly nonce: string;

A value that is used once, which the encryption of the text needs.


readonly plugin: string;

The id of the plugin that locked the text. Only that plugin can open it.


readonly purpose: string;

The purpose that was given when the text was locked. The same purpose is needed to open it.


readonly sig: string;

The signature of the device that locked the text.


readonly t: "envelope";

The kind of object. It is always envelope.


readonly to: readonly object[];

For each recipient device, the key of the text, locked for that device.


readonly v: 1;

The version of the format.