Constructs a new KeyExchangeMessage.
Optional
properties: IKeyExchangeMessageProperties to set
KeyExchangeMessage baseKey.
KeyExchangeMessage baseKeySignature.
KeyExchangeMessage id.
KeyExchangeMessage identityKey.
KeyExchangeMessage ratchetKey.
Static
createCreates a new KeyExchangeMessage instance using the specified properties.
Optional
properties: IKeyExchangeMessageProperties to set
KeyExchangeMessage instance
Static
decodeDecodes a KeyExchangeMessage message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length: numberMessage length if known beforehand
KeyExchangeMessage
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes a KeyExchangeMessage message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
KeyExchangeMessage
If the payload is not a reader or valid buffer
If required fields are missing
Static
encodeEncodes the specified KeyExchangeMessage message. Does not implicitly verify messages.
KeyExchangeMessage message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
encodeEncodes the specified KeyExchangeMessage message, length delimited. Does not implicitly verify messages.
KeyExchangeMessage message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
fromCreates a KeyExchangeMessage message from a plain object. Also converts values to their respective internal types.
Plain object
KeyExchangeMessage
Static
toCreates a plain object from a KeyExchangeMessage message. Also converts values to other types if specified.
KeyExchangeMessage
Optional
options: IConversionOptionsConversion options
Plain object
Static
verifyGenerated using TypeDoc
Represents a KeyExchangeMessage.