Skip to main content

MessageV2

Class: MessageV2

Hierarchy

  • MessageBase

    MessageV2

Implements

  • MessageV2

Constructors

constructor

new MessageV2(id, bytes, obj, header)

Parameters

NameType
idstring
bytesUint8Array
objMessage
headerMessageHeaderV2

Overrides

MessageBase.constructor

Defined in

Message.ts:204

Properties

ciphertext

ciphertext: Ciphertext

Implementation of

proto.MessageV2.ciphertext

Inherited from

MessageBase.ciphertext

Defined in

Message.ts:43


contentType

Optional contentType: ContentTypeId

Inherited from

MessageBase.contentType

Defined in

Message.ts:46


error

Optional error: Error

Inherited from

MessageBase.error

Defined in

Message.ts:47


Private header: MessageHeaderV2

Defined in

Message.ts:202


headerBytes

headerBytes: Uint8Array

Implementation of

proto.MessageV2.headerBytes

Inherited from

MessageBase.headerBytes

Defined in

Message.ts:42


id

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.

Inherited from

MessageBase.id

Defined in

Message.ts:53


senderAddress

senderAddress: undefined | string

Defined in

Message.ts:201

Accessors

sent

get sent(): Date

Returns

Date

Defined in

Message.ts:224

Methods

toBytes

toBytes(): Uint8Array

Returns

Uint8Array

Inherited from

MessageBase.toBytes

Defined in

Message.ts:62


create

Static create(obj, header, bytes): Promise<MessageV2>

Parameters

NameType
objMessage
headerMessageHeaderV2
bytesUint8Array

Returns

Promise<MessageV2>

Defined in

Message.ts:214

Was the information on this page helpful?