Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MessageV1

Hierarchy

  • MessageBase
    • MessageV1

Implements

  • MessageV1

Index

Constructors

  • new MessageV1(id: string, bytes: Uint8Array, obj: Message, header: MessageHeaderV1, senderAddress: undefined | string): MessageV1
  • Parameters

    • id: string
    • bytes: Uint8Array
    • obj: Message
    • header: MessageHeaderV1
    • senderAddress: undefined | string

    Returns MessageV1

Properties

ciphertext: Ciphertext
contentType?: ContentTypeId
conversation: undefined = undefined
error?: Error
header: MessageHeaderV1
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 recipientAddress(): undefined | string
  • get sent(): Date

Methods

  • toBytes(): Uint8Array
  • Returns Uint8Array

  • create(obj: Message, header: MessageHeaderV1, bytes: Uint8Array): Promise<MessageV1>
  • Parameters

    • obj: Message
    • header: MessageHeaderV1
    • bytes: Uint8Array

    Returns Promise<MessageV1>

  • fromBytes(bytes: Uint8Array): Promise<MessageV1>

Generated using TypeDoc