Private constructorOptional _signaturePublicKey: Uint8ArrayOptional _signature: Uint8ArrayThe public key used to sign the message.
MAY be present if the message is version 1.
Static decodeDecode a byte array into Waku Message.
bytes The message encoded using protobuf as defined in 14/WAKU2-MESSAGE.
decryptionKeys If the payload is encrypted (version = 1), then the keys are used to attempt decryption of the message. The passed key can either be asymmetric private keys or symmetric keys, both method are tried for each key until the message is decrypted or combinations are run out.
Optional decryptionParams: DecryptionParams[]Static decodeDecode and decrypt Waku Message Protobuf Object into Waku Message.
protoBuf The message to decode and decrypt.
decryptionParams If the payload is encrypted (version = 1), then the keys are used to attempt decryption of the message. The passed key can either be asymmetric private keys or symmetric keys, both method are tried for each key until the message is decrypted or combinations are run out.
Optional decryptionParams: DecryptionParams[]Static fromCreate a Waku Message with the given payload.
By default, the payload is kept clear (version 0).
If opts.encPublicKey is passed, the payload is encrypted using
asymmetric encryption (version 1).
If opts.sigPrivKey is passed and version 1 is used, the payload is signed
before encryption.
if both opts.encPublicKey and opt.symKey are passed
Optional opts: waku_message.OptionsStatic fromCreate Message with an utf-8 string as payload.
Optional opts: waku_message.OptionsGenerated using TypeDoc
The signature of the message.
MAY be present if the message is version 1.