Constructs a new KeyExchangeMessage.
Optional
properties:
IKeyExchangeMessage
Properties to set
KeyExchangeMessage baseKey.
KeyExchangeMessage baseKeySignature.
KeyExchangeMessage id.
KeyExchangeMessage identityKey.
KeyExchangeMessage ratchetKey.
Static
create
Creates a new KeyExchangeMessage instance using the specified properties.
Optional
properties:
IKeyExchangeMessage
Properties to set
KeyExchangeMessage instance
Static
decode
Decodes a KeyExchangeMessage message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length:
number
Message 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
encode
Encodes the specified KeyExchangeMessage message. Does not implicitly verify messages.
KeyExchangeMessage message or plain object to encode
Optional
writer:
Writer
Writer 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:
Writer
Writer 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:
IConversionOptions
Conversion options
Plain object
Static
verify
Generated using TypeDoc
Represents a KeyExchangeMessage.