Class Channel<Payload, PeerAddress>Abstract

Type Parameters

  • Payload extends Payload

  • PeerAddress extends PeerInternetAddress

Hierarchy (view full)

Constructors

Properties

cryptoOptions: Partial<NodeCryptoOptions> = {}
deliveryAuthPath: CertificationPath
keyStores: KeyStoreSet
node: Node<Payload, PeerAddress>
peer: Peer<PeerAddress>

Methods

  • Generate and serialise a message with the given payload.

    Parameters

    • payload: ArrayBuffer | Payload

      The payload to encrypt and encapsulate

    • messageConstructor: RAMFMessageConstructor<Payload>

      The message class constructor

    • options: Partial<Omit<MessageOptions, "senderCaCertificateChain">> = {}

    Returns Promise<ArrayBuffer>

Generated using TypeDoc