Documentation
    Preparing search index...
    • Creates a decoder that decrypts messages using symmetric encryption, using the given key as defined in 26/WAKU2-PAYLOAD.

      A decoder is used to decode messages from the 14/WAKU2-MESSAGE format when received from the Waku network. The resulting decoder can then be pass to @waku/interfaces!IReceiver.subscribe to automatically decrypt and decode incoming messages.

      Parameters

      • contentTopic: string

        The resulting decoder will only decode messages with this content topic.

      • routingInfo: IRoutingInfo

        Routing information, depends on the network config (static vs auto sharding)

      • symKey: Uint8Array

        The symmetric key used to decrypt the message.

      Returns Decoder