Class MessageV2

Hierarchy

  • MessageBase
    • MessageV2

Implements

  • MessageV2

Constructors

  • Parameters

    • id: string
    • bytes: Uint8Array
    • obj: Message
    • header: MessageHeaderV2
    • Optional senderHmac: Uint8Array
    • Optional shouldPush: boolean

    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
senderHmac?: Uint8Array
shouldPush?: boolean

Accessors

Methods

  • Parameters

    • obj: Message
    • header: MessageHeaderV2
    • bytes: Uint8Array
    • Optional senderHmac: Uint8Array
    • Optional shouldPush: boolean

    Returns Promise<MessageV2>