diff --git a/assets/highlight.css b/assets/highlight.css index bf92b2bd8a..1a8d9e3e1a 100644 --- a/assets/highlight.css +++ b/assets/highlight.css @@ -1,10 +1,10 @@ :root { - --light-hl-0: #000000; - --dark-hl-0: #D4D4D4; - --light-hl-1: #A31515; - --dark-hl-1: #CE9178; - --light-hl-2: #795E26; - --dark-hl-2: #DCDCAA; + --light-hl-0: #795E26; + --dark-hl-0: #DCDCAA; + --light-hl-1: #000000; + --dark-hl-1: #D4D4D4; + --light-hl-2: #A31515; + --dark-hl-2: #CE9178; --light-hl-3: #0000FF; --dark-hl-3: #569CD6; --light-hl-4: #0070C1; diff --git a/assets/style.css b/assets/style.css index 2d02570d01..496e66f21b 100644 --- a/assets/style.css +++ b/assets/style.css @@ -483,10 +483,9 @@ blockquote { .has-menu .col-menu { visibility: visible; transform: translate(0, 0); - display: grid; - align-items: center; - grid-template-rows: auto 1fr; - grid-gap: 1.5rem; + display: flex; + flex-direction: column; + gap: 1.5rem; max-height: 100vh; padding: 1rem 2rem; } @@ -911,7 +910,7 @@ a.tsd-index-link { margin-right: 0.8rem; } -@media (min-width: 1024px) { +@media (min-width: 1025px) { .col-content { margin: 2rem auto; } diff --git a/classes/_waku_core.ConnectionManager.html b/classes/_waku_core.ConnectionManager.html index ef68da6b25..65736c930c 100644 --- a/classes/_waku_core.ConnectionManager.html +++ b/classes/_waku_core.ConnectionManager.html @@ -21,7 +21,7 @@
Optional options: Partial<ConnectionManagerOptions>Private dialPrivate dialPrivate keepPrivate libp2pPrivate onPrivate optionsStatic Private instancesPrivate getPrivate runPrivate shouldPrivate startPrivate startPrivate startStatic createOptional options: ConnectionManagerOptionsPrivate Readonly _errorPrivate Readonly dnsPrivate _searchStatic dnsOptional dnsClient: DnsClientOptional peerOptional signatureStatic Readonly RECORD_Inherited from RawEnr.id
Inherited from RawEnr.ip
Inherited from RawEnr.ip
Inherited from RawEnr.ip6
Inherited from RawEnr.ip6
dns4, dnsaddr, etc)..
Implementation of IEnr.multiaddrs
Inherited from RawEnr.multiaddrs
Set the multiaddrs field on the ENR.
Implementation of IEnr.multiaddrs
Inherited from RawEnr.multiaddrs
Implementation of IEnr.publicKey
Inherited from RawEnr.publicKey
Inherited from RawEnr.tcp
Inherited from RawEnr.tcp
Inherited from RawEnr.tcp6
Inherited from RawEnr.tcp6
Inherited from RawEnr.udp
Inherited from RawEnr.udp
Inherited from RawEnr.udp6
Inherited from RawEnr.udp6
Inherited from RawEnr.waku2
Set the waku2 field on the ENR.
Inherited from RawEnr.waku2
Implementation of IEnr.set
Static createOptional signature: Uint8ArraySet the waku2 field on the ENR.
Private queryPrivate Readonly startOptional userOptional pageOptional peerThe peer to query. If undefined, a pseudo-random peer is selected from the connected Waku Store peers.
Optional timeRetrieve messages with a timestamp within the provided values.
Optional opts: ProtocolOptionsOptional options: StoreQueryOptionsOptional options: StoreQueryOptionsReadonly gossipSymmetric encryption uses a unique key to encrypt and decrypt messages.
-import {
createDecoder,
createEncoder,
generateSymmetricKey,
} from "@waku/message-encryption/symmetric";
// Generate a random key
const key = generateSymmetricKey();
// To send messages, create an encoder
const encoder = createEncoder(contentTopic, key);
// For example
waku.lightPush.push(encoder, { payload });
// To receive messages, create a decoder
const decoder = createDecoder(contentTopic, key);
// For example
await waku.store.queryOrderedCallback([decoder], (msg) => {
// ...
});
+import {
createDecoder,
createEncoder,
generateSymmetricKey,
} from "@waku/message-encryption/symmetric";
// Generate a random key
const key = generateSymmetricKey();
// To send messages, create an encoder
const encoder = createEncoder(contentTopic, key);
// For example
waku.lightPush.push(encoder, { payload });
// To receive messages, create a decoder
const decoder = createDecoder(contentTopic, key);
// For example
await waku.store.queryOrderedCallback([decoder], (msg) => {
// ...
});
ECIES Encryption
ECIES encryption enables encryption for a public key and decryption using a private key.
-import {
createDecoder,
createEncoder,
generatePrivateKey,
getPublicKey,
} from "@waku/message-encryption/ecies";
// Generate a random private key
const privateKey = generatePrivateKey();
// Keep the private key secure, provide the public key to the sender
const publicKey = getPublicKey(privateKey);
// To send messages, create an encoder
const encoder = createEncoder(contentTopic, publicKey);
// For example
waku.lightPush.push(encoder, { payload });
// To receive messages, create a decoder
const decoder = createDecoder(contentTopic, privateKey);
// For example
await waku.store.queryOrderedCallback([decoder], (msg) => {
// ...
});
+import {
createDecoder,
createEncoder,
generatePrivateKey,
getPublicKey,
} from "@waku/message-encryption/ecies";
// Generate a random private key
const privateKey = generatePrivateKey();
// Keep the private key secure, provide the public key to the sender
const publicKey = getPublicKey(privateKey);
// To send messages, create an encoder
const encoder = createEncoder(contentTopic, publicKey);
// For example
waku.lightPush.push(encoder, { payload });
// To receive messages, create a decoder
const decoder = createDecoder(contentTopic, privateKey);
// For example
await waku.store.queryOrderedCallback([decoder], (msg) => {
// ...
});
diff --git a/modules/_waku_peer_exchange.html b/modules/_waku_peer_exchange.html
index af20b58a26..0940d290b1 100644
--- a/modules/_waku_peer_exchange.html
+++ b/modules/_waku_peer_exchange.html
@@ -16,7 +16,7 @@
Pings the given peer in order to obtain the operation latency
-Example