interface EncoderOptions {
    contentTopic: string;
    ephemeral?: boolean;
    metaSetter?: IMetaSetter;
    publicKey: Uint8Array;
    pubsubTopic?: string;
    pubsubTopicShardInfo?: SingleShardInfo;
    sigPrivKey?: Uint8Array;
}

Hierarchy (view full)

Properties

contentTopic: string

The content topic to set on outgoing messages.

ephemeral?: boolean

An optional flag to mark message as ephemeral, i.e., not to be stored by Waku Store nodes.

Default Value

false

metaSetter?: IMetaSetter

A function called when encoding messages to set the meta field.

Param: IProtoMessage

The message encoded for wire, without the meta field. If encryption is used, metaSetter only accesses encrypted payload.

publicKey: Uint8Array

The public key to encrypt the payload for.

pubsubTopic?: string

Deprecated

pubsubTopicShardInfo?: SingleShardInfo
sigPrivKey?: Uint8Array

An optional private key to be used to sign the payload before encryption.

Generated using TypeDoc