Declaration

Encapsulates cryptographic signatures.

Class Methods

Instance Methods

Class Properties

There are no class properties.

Instance Properties

nametypedescription

message

Message

The data signed by the signatories.

signatories

Array of Uint8Array

List of public keys. Each matches the corresponding signature in signatures. These keys identify the signatories who used their private key to sign data and can be used to validate the corresponding signature.

signatures

Array of Uint8Array

List of ed25519 signatures. Each is generated by signing data with a given signatory’s private key.

Description

Declaration contains the products of a cryptographic signature: the original data, the public keys of the signatories, and the ed25519 signatures. Produced by sign and consumed by verify.

Warning: While a Declaration can be verified to be self-consistent, it is your responsiblity to verify the public keys in the signatories list belong to whomever claims them.