Interface Options

Hierarchy

  • Options

Properties

encPublicKey?: string | Uint8Array

Public Key to use to encrypt the messages using ECIES (Asymmetric Encryption).

Throws

if both encPublicKey and symKey are passed

sigPrivKey?: Uint8Array

Private key to use to sign the message, either encPublicKey or symKey must be provided as only encrypted messages are signed.

symKey?: string | Uint8Array

Key to use to encrypt the messages using AES (Symmetric Encryption).

Throws

if both encPublicKey and symKey are passed

timestamp?: Date

Timestamp to set on the message, defaults to now if not passed.

Generated using TypeDoc