Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MessageV2

Hierarchy

  • MessageBase
    • MessageV2

Implements

  • MessageV2

Index

Constructors

  • new MessageV2(id: string, bytes: Uint8Array, obj: Message, header: MessageHeaderV2): MessageV2
  • Parameters

    • id: string
    • bytes: Uint8Array
    • obj: Message
    • header: MessageHeaderV2

    Returns MessageV2

Properties

ciphertext: Ciphertext
contentType?: ContentTypeId
error?: Error
headerBytes: Uint8Array
id: string

Identifier that is deterministically derived from the bytes of the message header and ciphertext, where all those bytes are authenticated. This can be used in determining uniqueness of messages.

senderAddress: undefined | string

Accessors

  • get sent(): Date

Methods

  • toBytes(): Uint8Array
  • Returns Uint8Array

  • create(obj: Message, header: MessageHeaderV2, bytes: Uint8Array): Promise<MessageV2>

Generated using TypeDoc