MessageV2
Class: MessageV2
Hierarchy
MessageBase
↳
MessageV2
Implements
MessageV2
Constructors
constructor
new MessageV2(id
, bytes
, obj
, header
)
Parameters
Name | Type |
---|---|
id | string |
bytes | Uint8Array |
obj | Message |
header | MessageHeaderV2 |
Overrides
MessageBase.constructor
Defined in
Properties
ciphertext
ciphertext: Ciphertext
Implementation of
proto.MessageV2.ciphertext
Inherited from
MessageBase.ciphertext
Defined in
contentType
Optional
contentType: ContentTypeId
Inherited from
MessageBase.contentType
Defined in
error
Optional
error: Error
Inherited from
MessageBase.error
Defined in
header
Private
header: MessageHeaderV2
Defined in
headerBytes
headerBytes: Uint8Array
Implementation of
proto.MessageV2.headerBytes
Inherited from
MessageBase.headerBytes
Defined in
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
senderAddress
senderAddress: undefined
| string
Defined in
Accessors
sent
get
sent(): Date
Returns
Date
Defined in
Methods
toBytes
toBytes(): Uint8Array
Returns
Uint8Array
Inherited from
MessageBase.toBytes
Defined in
create
Static
create(obj
, header
, bytes
): Promise
<MessageV2
>
Parameters
Name | Type |
---|---|
obj | Message |
header | MessageHeaderV2 |
bytes | Uint8Array |
Returns
Promise
<MessageV2
>