Skip to main content

Class: EncryptedGroupKey

Constructors

constructor

new EncryptedGroupKey(groupKeyId, encryptedGroupKeyHex, serialized?)

A pair (groupKeyId, encryptedGroupKey) where the encryptedGroupKey is an encrypted, hex-encoded version of the group key.

Parameters

NameTypeDescription
groupKeyIdstring
encryptedGroupKeyHexstring
serialized?null | stringOptional. If given, this exact string is returned from serialize().

Properties

encryptedGroupKeyHex

encryptedGroupKeyHex: string


groupKeyId

groupKeyId: string


serialized

serialized: null | string

Methods

serialize

serialize(): string

Returns

string


toArray

toArray(): EncryptedGroupKeySerialized

Returns

EncryptedGroupKeySerialized


deserialize

Static deserialize(json): EncryptedGroupKey

Parameters

NameType
jsonstring

Returns

EncryptedGroupKey


fromArray

Static fromArray(arr): EncryptedGroupKey

Parameters

NameType
arrEncryptedGroupKeySerialized

Returns

EncryptedGroupKey