From b1dffb6553c522906fe0573846754375f193f8aa Mon Sep 17 00:00:00 2001 From: status-im-auto Date: Tue, 1 Feb 2022 16:15:46 +0000 Subject: [PATCH] Updates --- classes/discovery.Bootstrap.html | 2 +- classes/discovery.DnsNodeDiscovery.html | 8 ++--- classes/discovery.DnsOverHttps.html | 4 +-- classes/discovery.ENRTree.html | 6 ++-- classes/enr.AbstractKeypair.html | 2 +- classes/enr.ENR.html | 18 +++++------ classes/waku.Waku.html | 14 ++++----- classes/waku_light_push.WakuLightPush.html | 6 ++-- classes/waku_message.WakuMessage.html | 12 ++++---- classes/waku_relay.WakuRelay.html | 18 +++++------ classes/waku_store.WakuStore.html | 10 +++---- enums/enr.KeypairType.html | 2 +- enums/proto.HistoryResponse_Error.html | 2 +- enums/proto.PagingInfo_Direction.html | 2 +- enums/waku_message.DecryptionMethod.html | 2 +- enums/waku_store.PageDirection.html | 2 +- .../asset-manifest.json | 30 +++++++++---------- examples/eth-pm-wallet-encryption/index.html | 2 +- .../static/css/main.5d946068.css | 2 -- .../static/css/main.9e5ad33d.css | 2 ++ ...5d946068.css.map => main.9e5ad33d.css.map} | 2 +- .../static/js/main.7588be7f.js | 3 ++ ...CENSE.txt => main.7588be7f.js.LICENSE.txt} | 0 ...n.9a9747c9.js.map => main.7588be7f.js.map} | 2 +- .../static/js/main.9a9747c9.js | 3 -- interfaces/discovery.BootstrapOptions.html | 10 +++---- interfaces/discovery.DnsClient.html | 2 +- interfaces/enr.IKeypair.html | 2 +- interfaces/enr.IKeypairClass.html | 2 +- interfaces/proto.ContentFilter.html | 2 +- interfaces/proto.HistoryQuery.html | 2 +- interfaces/proto.HistoryRPC.html | 2 +- interfaces/proto.HistoryResponse.html | 2 +- interfaces/proto.Index.html | 2 +- interfaces/proto.PagingInfo.html | 2 +- interfaces/proto.WakuMessage.html | 2 +- interfaces/waku.CreateOptions.html | 12 ++++---- interfaces/waku_light_push.CreateOptions.html | 2 +- interfaces/waku_light_push.PushOptions.html | 2 +- interfaces/waku_light_push.PushResponse.html | 2 +- interfaces/waku_message.Options.html | 8 ++--- interfaces/waku_relay.GossipOptions.html | 2 +- interfaces/waku_store.CreateOptions.html | 2 +- interfaces/waku_store.QueryOptions.html | 14 ++++----- interfaces/waku_store.TimeFilter.html | 2 +- modules.html | 6 ++-- modules/discovery.html | 2 +- modules/enr.html | 4 +-- modules/proto.html | 2 +- modules/utils.html | 2 +- modules/waku.html | 4 +-- modules/waku_light_push.html | 2 +- modules/waku_relay.html | 2 +- modules/waku_store.html | 2 +- 54 files changed, 129 insertions(+), 129 deletions(-) delete mode 100644 examples/eth-pm-wallet-encryption/static/css/main.5d946068.css create mode 100644 examples/eth-pm-wallet-encryption/static/css/main.9e5ad33d.css rename examples/eth-pm-wallet-encryption/static/css/{main.5d946068.css.map => main.9e5ad33d.css.map} (88%) create mode 100644 examples/eth-pm-wallet-encryption/static/js/main.7588be7f.js rename examples/eth-pm-wallet-encryption/static/js/{main.9a9747c9.js.LICENSE.txt => main.7588be7f.js.LICENSE.txt} (100%) rename examples/eth-pm-wallet-encryption/static/js/{main.9a9747c9.js.map => main.7588be7f.js.map} (99%) delete mode 100644 examples/eth-pm-wallet-encryption/static/js/main.9a9747c9.js diff --git a/classes/discovery.Bootstrap.html b/classes/discovery.Bootstrap.html index 2ea5082736..52d30a2eec 100644 --- a/classes/discovery.Bootstrap.html +++ b/classes/discovery.Bootstrap.html @@ -1,3 +1,3 @@ Bootstrap | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Parse options and expose function to return bootstrap peer addresses.

-

Hierarchy

  • Bootstrap

Index

Constructors

constructor

Properties

Readonly getBootstrapPeers

getBootstrapPeers: undefined | (() => Promise<Multiaddr[]>)

Static DefaultMaxPeers

DefaultMaxPeers: number = 1

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

Index

Constructors

constructor

Properties

Readonly getBootstrapPeers

getBootstrapPeers: undefined | (() => Promise<Multiaddr[]>)

Static DefaultMaxPeers

DefaultMaxPeers: number = 1

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/discovery.DnsNodeDiscovery.html b/classes/discovery.DnsNodeDiscovery.html index ae194cd133..e461c69eef 100644 --- a/classes/discovery.DnsNodeDiscovery.html +++ b/classes/discovery.DnsNodeDiscovery.html @@ -1,12 +1,12 @@ -DnsNodeDiscovery | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DnsNodeDiscovery

Hierarchy

  • DnsNodeDiscovery

Index

Constructors

constructor

Properties

Private Readonly _DNSTreeCache

_DNSTreeCache: {}

Type declaration

  • [key: string]: string

Private Readonly _errorTolerance

_errorTolerance: number = 10

Private Readonly dns

Methods

Private _getTXTRecord

  • _getTXTRecord(subdomain: string, context: SearchContext): Promise<string>

Static dnsOverHttp

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/discovery.DnsOverHttps.html b/classes/discovery.DnsOverHttps.html index ad9c4a40b1..df2fd95233 100644 --- a/classes/discovery.DnsOverHttps.html +++ b/classes/discovery.DnsOverHttps.html @@ -1,8 +1,8 @@ -DnsOverHttps | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DnsOverHttps

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Returns DnsOverHttps

Properties

endpoints

endpoints: Endpoints = ...

Methods

resolveTXT

  • resolveTXT(domain: string): Promise<string[]>

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/discovery.ENRTree.html b/classes/discovery.ENRTree.html index c4f38035a4..466100086b 100644 --- a/classes/discovery.ENRTree.html +++ b/classes/discovery.ENRTree.html @@ -1,10 +1,10 @@ -ENRTree | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ENRTree

Index

Constructors

constructor

Properties

Static Readonly BRANCH_PREFIX

BRANCH_PREFIX: "enrtree-branch:" = 'enrtree-branch:'

Static Readonly RECORD_PREFIX

RECORD_PREFIX: "enr:" = ENR.RECORD_PREFIX

Static Readonly ROOT_PREFIX

ROOT_PREFIX: "enrtree-root:" = 'enrtree-root:'

Static Readonly TREE_PREFIX

TREE_PREFIX: "enrtree:" = 'enrtree:'

Methods

Static parseAndVerifyRoot

  • parseAndVerifyRoot(root: string, publicKey: string): string

deleteDecryptionKey

  • deleteDecryptionKey(key: string | Uint8Array): void
  • Delete a decryption key that was used to attempt decryption of received messages.

    Strings must be in hex format.

    -

    Parameters

    • key: string | Uint8Array

    Returns void

deleteObserver

deleteObserver

getPeers

  • getPeers(): Set<string>

getPeers

  • getPeers(): Set<string>

send

send

start

  • start(): void

start

  • start(): void
  • Mounts the gossipsub protocol onto the libp2p node and subscribes to the default topic.

    -
    override

    Returns void

subscribe

  • subscribe(pubSubTopic: string): void

subscribe

  • subscribe(pubSubTopic: string): void
  • Subscribe to a pubsub topic and start emitting Waku messages to observers.

    override

    Parameters

    • pubSubTopic: string

    Returns void

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/waku_store.WakuStore.html b/classes/waku_store.WakuStore.html index b5f9f82e82..035cb660b3 100644 --- a/classes/waku_store.WakuStore.html +++ b/classes/waku_store.WakuStore.html @@ -1,23 +1,23 @@ WakuStore | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Implements the Waku v2 Store protocol.

-

Hierarchy

  • WakuStore

Index

Constructors

constructor

Properties

decryptionKeys

decryptionKeys: Map<Uint8Array, { contentTopics?: string[]; method?: DecryptionMethod }>

libp2p

libp2p: Libp2p

pubSubTopic

pubSubTopic: string

Accessors

peers

  • get peers(): Peer[]

Hierarchy

  • WakuStore

Index

Constructors

constructor

Properties

decryptionKeys

decryptionKeys: Map<Uint8Array, { contentTopics?: string[]; method?: DecryptionMethod }>

libp2p

libp2p: Libp2p

pubSubTopic

pubSubTopic: string

Accessors

peers

  • get peers(): Peer[]
  • Returns known peers from the address book (libp2p.peerStore) that support store protocol. Waku may or may not be currently connected to these peers.

    -

    Returns Peer[]

randomPeer

  • get randomPeer(): undefined | Peer

randomPeer

  • get randomPeer(): undefined | Peer
  • Returns a random peer that supports store protocol from the address book (libp2p.peerStore). Waku may or may not be currently connected to this peer.

    -

    Returns undefined | Peer

Methods

addDecryptionKey

  • addDecryptionKey(key: string | Uint8Array, options?: { contentTopics?: string[]; method?: DecryptionMethod }): void

Methods

addDecryptionKey

  • addDecryptionKey(key: string | Uint8Array, options?: { contentTopics?: string[]; method?: DecryptionMethod }): void
  • Register a decryption key to attempt decryption of messages received in any subsequent queryHistory call. This can either be a private key for asymmetric encryption or a symmetric key. WakuStore will attempt to decrypt messages using both methods.

    Strings must be in hex format.

    -

    Parameters

    • key: string | Uint8Array
    • Optional options: { contentTopics?: string[]; method?: DecryptionMethod }

    Returns void

deleteDecryptionKey

  • deleteDecryptionKey(key: string | Uint8Array): void

deleteDecryptionKey

  • deleteDecryptionKey(key: string | Uint8Array): void
  • Delete a decryption key that was used to attempt decryption of messages received in subsequent queryHistory calls.

    Strings must be in hex format.

    -

    Parameters

    • key: string | Uint8Array

    Returns void

queryHistory

queryHistory

Optional enrUrl

enrUrl?: string

An EIP-1459 ENR Tree URL. For example: "enrtree://AOFTICU2XWDULNLZGRMQS4RIZPAZEHYMV4FYHAPW563HNRAOERP7C@test.nodes.vac.dev"

-

Optional maxPeers

maxPeers?: number
+

Optional maxPeers

maxPeers?: number

The maximum of peers to connect to as part of the bootstrap process.

default

Bootstrap.DefaultMaxPeers

-

Optional peers

peers?: string[]
+

Optional peers

peers?: string[]

Multiaddrs of peers to connect to.

-

Methods

Optional getPeers

  • getPeers(): Promise<string[] | Multiaddr[]>

Methods

Optional getPeers

  • getPeers(): Promise<string[] | Multiaddr[]>

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/discovery.DnsClient.html b/interfaces/discovery.DnsClient.html index 0a6e83b8b6..0c7d1989a6 100644 --- a/interfaces/discovery.DnsClient.html +++ b/interfaces/discovery.DnsClient.html @@ -1 +1 @@ -DnsClient | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DnsClient

Hierarchy

  • DnsClient

Implemented by

Index

Methods

Methods

resolveTXT

  • resolveTXT(domain: string): Promise<string[]>

Legend

  • Method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +DnsClient | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DnsClient

Hierarchy

  • DnsClient

Implemented by

Index

Methods

Methods

resolveTXT

  • resolveTXT(domain: string): Promise<string[]>

Legend

  • Method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/enr.IKeypair.html b/interfaces/enr.IKeypair.html index 74ec4a4fa9..588f1d2b88 100644 --- a/interfaces/enr.IKeypair.html +++ b/interfaces/enr.IKeypair.html @@ -1 +1 @@ -IKeypair | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IKeypair

Hierarchy

  • IKeypair

Index

Properties

privateKey

privateKey: Buffer

publicKey

publicKey: Buffer

type

Methods

hasPrivateKey

  • hasPrivateKey(): boolean

privateKeyVerify

  • privateKeyVerify(): boolean

publicKeyVerify

  • publicKeyVerify(): boolean

sign

  • sign(msg: Buffer): Buffer

verify

  • verify(msg: Buffer, sig: Buffer): boolean

Legend

  • Property
  • Method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +IKeypair | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IKeypair

Hierarchy

  • IKeypair

Index

Properties

privateKey

privateKey: Buffer

publicKey

publicKey: Buffer

type

Methods

hasPrivateKey

  • hasPrivateKey(): boolean

privateKeyVerify

  • privateKeyVerify(): boolean

publicKeyVerify

  • publicKeyVerify(): boolean

sign

  • sign(msg: Buffer): Buffer

verify

  • verify(msg: Buffer, sig: Buffer): boolean

Legend

  • Property
  • Method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/enr.IKeypairClass.html b/interfaces/enr.IKeypairClass.html index 9f08c612e7..9a9c2524e0 100644 --- a/interfaces/enr.IKeypairClass.html +++ b/interfaces/enr.IKeypairClass.html @@ -1 +1 @@ -IKeypairClass | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IKeypairClass

Hierarchy

  • IKeypairClass

Index

Constructors

Methods

Constructors

constructor

  • new IKeypairClass(privateKey?: Buffer, publicKey?: Buffer): IKeypair

Methods

generate

Legend

  • Constructor
  • Method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +IKeypairClass | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IKeypairClass

Hierarchy

  • IKeypairClass

Index

Constructors

Methods

Constructors

constructor

  • new IKeypairClass(privateKey?: Buffer, publicKey?: Buffer): IKeypair

Methods

generate

Legend

  • Constructor
  • Method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/proto.ContentFilter.html b/interfaces/proto.ContentFilter.html index 390322a1e6..42a1dd03fd 100644 --- a/interfaces/proto.ContentFilter.html +++ b/interfaces/proto.ContentFilter.html @@ -1 +1 @@ -ContentFilter | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ContentFilter

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +ContentFilter | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ContentFilter

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/proto.HistoryQuery.html b/interfaces/proto.HistoryQuery.html index b52d3dc86a..bc0ad1de8e 100644 --- a/interfaces/proto.HistoryQuery.html +++ b/interfaces/proto.HistoryQuery.html @@ -1 +1 @@ -HistoryQuery | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HistoryQuery

Hierarchy

  • HistoryQuery

Index

Properties

contentFilters

contentFilters: proto.ContentFilter[]

Optional endTime

endTime?: number

Optional pagingInfo

pagingInfo?: proto.PagingInfo

Optional pubSubTopic

pubSubTopic?: string

Optional startTime

startTime?: number

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +HistoryQuery | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HistoryQuery

Hierarchy

  • HistoryQuery

Index

Properties

contentFilters

contentFilters: proto.ContentFilter[]

Optional endTime

endTime?: number

Optional pagingInfo

pagingInfo?: proto.PagingInfo

Optional pubSubTopic

pubSubTopic?: string

Optional startTime

startTime?: number

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/proto.HistoryRPC.html b/interfaces/proto.HistoryRPC.html index 2af1ad5284..cd93735ac2 100644 --- a/interfaces/proto.HistoryRPC.html +++ b/interfaces/proto.HistoryRPC.html @@ -1 +1 @@ -HistoryRPC | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HistoryRPC

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +HistoryRPC | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HistoryRPC

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/proto.HistoryResponse.html b/interfaces/proto.HistoryResponse.html index db0ca0a331..e9a75f95dd 100644 --- a/interfaces/proto.HistoryResponse.html +++ b/interfaces/proto.HistoryResponse.html @@ -1 +1 @@ -HistoryResponse | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HistoryResponse

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +HistoryResponse | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HistoryResponse

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/proto.Index.html b/interfaces/proto.Index.html index fa6ea7f8e8..caa3426ffa 100644 --- a/interfaces/proto.Index.html +++ b/interfaces/proto.Index.html @@ -1 +1 @@ -Index | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Index

Hierarchy

  • Index

Index

Properties

digest

digest: Uint8Array

receivedTime

receivedTime: number

senderTime

senderTime: number

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +Index | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Index

Hierarchy

  • Index

Index

Properties

digest

digest: Uint8Array

receivedTime

receivedTime: number

senderTime

senderTime: number

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/proto.PagingInfo.html b/interfaces/proto.PagingInfo.html index 7809edf67f..51f37b1c02 100644 --- a/interfaces/proto.PagingInfo.html +++ b/interfaces/proto.PagingInfo.html @@ -1 +1 @@ -PagingInfo | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PagingInfo

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +PagingInfo | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PagingInfo

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/proto.WakuMessage.html b/interfaces/proto.WakuMessage.html index 71bf4e55e7..f305909d43 100644 --- a/interfaces/proto.WakuMessage.html +++ b/interfaces/proto.WakuMessage.html @@ -1 +1 @@ -WakuMessage | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WakuMessage

Hierarchy

  • WakuMessage

Index

Properties

Optional contentTopic

contentTopic?: string

Optional payload

payload?: Uint8Array

Optional timestamp

timestamp?: number

Optional version

version?: number

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +WakuMessage | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WakuMessage

Hierarchy

  • WakuMessage

Index

Properties

Optional contentTopic

contentTopic?: string

Optional payload

payload?: Uint8Array

Optional timestamp

timestamp?: number

Optional version

version?: number

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/waku.CreateOptions.html b/interfaces/waku.CreateOptions.html index 05c91098c0..bccdbb26b7 100644 --- a/interfaces/waku.CreateOptions.html +++ b/interfaces/waku.CreateOptions.html @@ -1,19 +1,19 @@ -CreateOptions | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CreateOptions

Hierarchy

  • CreateOptions

Index

Properties

Optional bootstrap

bootstrap?: BootstrapOptions
+CreateOptions | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CreateOptions

Hierarchy

  • CreateOptions

Index

Properties

Optional bootstrap

bootstrap?: BootstrapOptions

Use libp2p-bootstrap to discover and connect to new nodes.

See BootstrapOptions for available parameters.

Note: It overrides any other peerDiscovery modules that may have been set via CreateOptions.libp2p.

-

Optional decryptionKeys

decryptionKeys?: (string | Uint8Array)[]

Optional libp2p

libp2p?: Omit<Libp2pOptions & CreateOptions, "modules"> & { modules?: Partial<Libp2pModules> }
+

Optional decryptionKeys

decryptionKeys?: (string | Uint8Array)[]

Optional libp2p

libp2p?: Omit<Libp2pOptions & CreateOptions, "modules"> & { modules?: Partial<Libp2pModules> }

You can pass options to the Libp2p instance used by Waku using the CreateOptions.libp2p property. This property is the same type than the one passed to Libp2p.create apart that we made the modules property optional and partial, allowing its omission and letting Waku set good defaults. Notes that some values are overridden by Waku to ensure it implements the Waku protocol.

-

Optional pingKeepAlive

pingKeepAlive?: number
+

Optional pingKeepAlive

pingKeepAlive?: number

Set keep alive frequency in seconds: Waku will send a /ipfs/ping/1.0.0 request to each peer after the set number of seconds. Set to 0 to disable.

default

DefaultPingKeepAliveValueSecs

-

Optional pubSubTopic

pubSubTopic?: string
+

Optional pubSubTopic

pubSubTopic?: string

The PubSub Topic to use. Defaults to DefaultPubSubTopic.

One and only one pubsub topic is used by Waku. This is used by:

    @@ -24,11 +24,11 @@ request to each peer after the set number of seconds. Set to 0 to disable.

    The usage of the default pubsub topic is recommended. See Waku v2 Topic Usage Recommendations for details.

default

DefaultPubSubTopic

-

Optional relayKeepAlive

relayKeepAlive?: number
+

Optional relayKeepAlive

relayKeepAlive?: number

Set keep alive frequency in seconds: Waku will send a ping message over relay to each peer after the set number of seconds. Set to 0 to disable.

default

DefaultRelayKeepAliveValueSecs

-

Optional staticNoiseKey

staticNoiseKey?: Buffer
+

Optional staticNoiseKey

staticNoiseKey?: Buffer

Byte array used as key for the noise protocol used for connection encryption by Libp2p.create This is only used for test purposes to not run out of entropy during CI runs.

diff --git a/interfaces/waku_light_push.CreateOptions.html b/interfaces/waku_light_push.CreateOptions.html index cb98c3c612..306f30ee88 100644 --- a/interfaces/waku_light_push.CreateOptions.html +++ b/interfaces/waku_light_push.CreateOptions.html @@ -1,4 +1,4 @@ -CreateOptions | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CreateOptions

Index

Properties

Properties

Optional pubSubTopic

pubSubTopic?: string
+CreateOptions | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CreateOptions

Index

Properties

Properties

Optional pubSubTopic

pubSubTopic?: string

The PubSub Topic to use. Defaults to DefaultPubSubTopic.

The usage of the default pubsub topic is recommended. See Waku v2 Topic Usage Recommendations for details.

diff --git a/interfaces/waku_light_push.PushOptions.html b/interfaces/waku_light_push.PushOptions.html index 3f6195b3c7..f3f6c38b89 100644 --- a/interfaces/waku_light_push.PushOptions.html +++ b/interfaces/waku_light_push.PushOptions.html @@ -1 +1 @@ -PushOptions | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PushOptions

Index

Properties

Optional peerId

peerId?: PeerId

Optional pubSubTopic

pubSubTopic?: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +PushOptions | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PushOptions

Index

Properties

Optional peerId

peerId?: PeerId

Optional pubSubTopic

pubSubTopic?: string

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/waku_light_push.PushResponse.html b/interfaces/waku_light_push.PushResponse.html index 38c7d67d73..224b5f1130 100644 --- a/interfaces/waku_light_push.PushResponse.html +++ b/interfaces/waku_light_push.PushResponse.html @@ -1 +1 @@ -PushResponse | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +PushResponse | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/waku_message.Options.html b/interfaces/waku_message.Options.html index 8d6c1be97b..d85a376497 100644 --- a/interfaces/waku_message.Options.html +++ b/interfaces/waku_message.Options.html @@ -1,12 +1,12 @@ -Options | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Options

Index

Properties

Optional encPublicKey

encPublicKey?: string | Uint8Array
+Options | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Options

Index

Properties

Optional encPublicKey

encPublicKey?: string | Uint8Array

Public Key to use to encrypt the messages using ECIES (Asymmetric Encryption).

throws

if both encPublicKey and symKey are passed

-

Optional sigPrivKey

sigPrivKey?: Uint8Array
+

Optional sigPrivKey

sigPrivKey?: Uint8Array

Private key to use to sign the message, either encPublicKey or symKey must be provided as only encrypted messages are signed.

-

Optional symKey

symKey?: string | Uint8Array
+

Optional symKey

symKey?: string | Uint8Array

Key to use to encrypt the messages using AES (Symmetric Encryption).

throws

if both encPublicKey and symKey are passed

-

Optional timestamp

timestamp?: Date
+

Optional timestamp

timestamp?: Date

Timestamp to set on the message, defaults to now if not passed.

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/waku_relay.GossipOptions.html b/interfaces/waku_relay.GossipOptions.html index 20fb04a73b..4bee5cddcc 100644 --- a/interfaces/waku_relay.GossipOptions.html +++ b/interfaces/waku_relay.GossipOptions.html @@ -1,3 +1,3 @@ GossipOptions | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GossipOptions

See constructor libp2p-gossipsub API.

-

Hierarchy

  • GossipOptions

Index

Properties

D

D: number

Dhi

Dhi: number

Dlazy

Dlazy: number

Dlo

Dlo: number

Dout

Dout: number

Dscore

Dscore: number

directPeers

directPeers: AddrInfo[]

doPX

doPX: boolean

emitSelf

emitSelf: boolean

fallbackToFloodsub

fallbackToFloodsub: boolean

floodPublish

floodPublish: boolean

gossipIncoming

gossipIncoming: boolean

messageCache

messageCache: MessageCache

msgIdFn

msgIdFn: MessageIdFunction

scoreParams

scoreParams: Partial<PeerScoreParams>

scoreThresholds

scoreThresholds: Partial<PeerScoreThresholds>

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

  • GossipOptions

Index

Properties

D

D: number

Dhi

Dhi: number

Dlazy

Dlazy: number

Dlo

Dlo: number

Dout

Dout: number

Dscore

Dscore: number

directPeers

directPeers: AddrInfo[]

doPX

doPX: boolean

emitSelf

emitSelf: boolean

fallbackToFloodsub

fallbackToFloodsub: boolean

floodPublish

floodPublish: boolean

gossipIncoming

gossipIncoming: boolean

messageCache

messageCache: MessageCache

msgIdFn

msgIdFn: MessageIdFunction

scoreParams

scoreParams: Partial<PeerScoreParams>

scoreThresholds

scoreThresholds: Partial<PeerScoreThresholds>

Legend

  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/waku_store.CreateOptions.html b/interfaces/waku_store.CreateOptions.html index e5c40a9827..d11a224cc5 100644 --- a/interfaces/waku_store.CreateOptions.html +++ b/interfaces/waku_store.CreateOptions.html @@ -1,4 +1,4 @@ -CreateOptions | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CreateOptions

Hierarchy

  • CreateOptions

Index

Properties

Properties

Optional pubSubTopic

pubSubTopic?: string
+CreateOptions | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CreateOptions

Hierarchy

  • CreateOptions

Index

Properties

Properties

Optional pubSubTopic

pubSubTopic?: string

The PubSub Topic to use. Defaults to DefaultPubSubTopic.

The usage of the default pubsub topic is recommended. See Waku v2 Topic Usage Recommendations for details.

diff --git a/interfaces/waku_store.QueryOptions.html b/interfaces/waku_store.QueryOptions.html index f41b26684a..a70842ee31 100644 --- a/interfaces/waku_store.QueryOptions.html +++ b/interfaces/waku_store.QueryOptions.html @@ -1,8 +1,8 @@ -QueryOptions | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface QueryOptions

Hierarchy

  • QueryOptions

Index

Properties

Optional decryptionKeys

decryptionKeys?: (string | Uint8Array)[]
+QueryOptions | js-waku
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface QueryOptions

Hierarchy

  • QueryOptions

Index

Properties

Optional decryptionKeys

decryptionKeys?: (string | Uint8Array)[]

Keys that will be used to decrypt messages.

It can be Asymmetric Private Keys and Symmetric Keys in the same array, all keys will be tried with both methods.

-

Optional pageDirection

pageDirection?: PageDirection
+

Optional pageDirection

pageDirection?: PageDirection

The direction in which pages are retrieved:

  • PageDirection.BACKWARD: Most recent page first.
  • @@ -11,17 +11,17 @@ all keys will be tried with both methods.

Note: This does not affect the ordering of messages with the page (oldest message is always first).

default

PageDirection.BACKWARD

-

Optional pageSize

pageSize?: number
+

Optional pageSize

pageSize?: number

The number of message per page.

default

DefaultPageSize

-

Optional peerId

peerId?: PeerId
+

Optional peerId

peerId?: PeerId

The peer to query. If undefined, a pseudo-random peer is selected from the connected Waku Store peers.

-

Optional pubSubTopic

pubSubTopic?: string
+

Optional pubSubTopic

pubSubTopic?: string

The pubsub topic to pass to the query. See Waku v2 Topic Usage Recommendations.

-

Optional timeFilter

timeFilter?: TimeFilter
+

Optional timeFilter

timeFilter?: TimeFilter

Retrieve messages with a timestamp within the provided values.

-

Methods

Optional callback

Methods

Optional callback