Skip to content

Signature

The proof that a device signed a text. It is plain data that a plugin can save, synchronize or send. It is created by ctx.crypto.sign and checked by ctx.crypto.verify, and a plugin never needs to read its fields.

readonly from: Sender;

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


readonly plugin: string;

The id of the plugin for which the text was signed.


readonly purpose: string;

The purpose that was given when the text was signed. The same purpose is needed to verify it.


readonly sig: string;

The signature.


readonly t: "signature";

The kind of object. It is always signature.


readonly v: 1;

The version of the format.