mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-03 14:23:12 +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');
|
||||
|
||||
export interface Options {
|
||||
/**
|
||||
* Content topic to set on the message, defaults to {@link DefaultContentTopic}
|
||||
* if not passed.
|
||||
*/
|
||||
contentTopic?: string;
|
||||
/**
|
||||
* Timestamp to set on the message, defaults to now if not passed.
|
||||
*/
|
||||
timestamp?: Date;
|
||||
/**
|
||||
* Public Key to use to encrypt the messages using ECIES (Asymmetric Encryption).
|
||||
*/
|
||||
encPublicKey?: Uint8Array | string;
|
||||
/**
|
||||
* Private key to use to sign the message, `encPublicKey` must be provided as only
|
||||
* encrypted messages are signed.
|
||||
*/
|
||||
sigPrivKey?: Uint8Array;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user