mirror of
https://github.com/waku-org/js-waku.git
synced 2025-02-17 14:57:19 +00:00
Add comments on Waku Message Options
This commit is contained in:
parent
57f65267c2
commit
56c30059b2
@ -14,9 +14,23 @@ const DefaultVersion = 0;
|
|||||||
const dbg = debug('waku:message');
|
const dbg = debug('waku:message');
|
||||||
|
|
||||||
export interface Options {
|
export interface Options {
|
||||||
|
/**
|
||||||
|
* Content topic to set on the message, defaults to {@link DefaultContentTopic}
|
||||||
|
* if not passed.
|
||||||
|
*/
|
||||||
contentTopic?: string;
|
contentTopic?: string;
|
||||||
|
/**
|
||||||
|
* Timestamp to set on the message, defaults to now if not passed.
|
||||||
|
*/
|
||||||
timestamp?: Date;
|
timestamp?: Date;
|
||||||
|
/**
|
||||||
|
* Public Key to use to encrypt the messages using ECIES (Asymmetric Encryption).
|
||||||
|
*/
|
||||||
encPublicKey?: Uint8Array | string;
|
encPublicKey?: Uint8Array | string;
|
||||||
|
/**
|
||||||
|
* Private key to use to sign the message, `encPublicKey` must be provided as only
|
||||||
|
* encrypted messages are signed.
|
||||||
|
*/
|
||||||
sigPrivKey?: Uint8Array;
|
sigPrivKey?: Uint8Array;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user