js-waku/modules/_waku_message_encryption.html

197 lines
29 KiB
HTML
Raw Normal View History

2022-12-06 00:06:29 +00:00
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>@waku/message-encryption | @waku/root</title><meta name="description" content="Documentation for @waku/root"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
<div class="tsd-toolbar-contents container">
<div class="table-cell" id="tsd-search" data-base="..">
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
<div class="field">
<div id="tsd-toolbar-links"></div></div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@waku/root</a></div>
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
<div class="container container-main">
<div class="col-8 col-content">
<div class="tsd-page-title">
<ul class="tsd-breadcrumb">
<li><a href="../modules.html">@waku/root</a></li>
<li><a href="_waku_message_encryption.html">@waku/message-encryption</a></li></ul>
<h1>Module @waku/message-encryption</h1></div><aside class="tsd-sources">
<ul>
2023-05-17 21:42:34 +00:00
<li>Defined in <a href="https://github.com/waku-org/js-waku/blob/72f97d454/packages/message-encryption/src/index.ts#L1">packages/message-encryption/src/index.ts:1</a></li></ul></aside>
2022-12-06 00:06:29 +00:00
<section class="tsd-panel-group">
<section class="tsd-panel tsd-typography">
<a href="#wakumessage-encryption" id="wakumessage-encryption" style="color: inherit; text-decoration: none;">
<h1><code>@waku/message-encryption</code></h1>
</a>
<p>Provide Waku Message Version 1 payload encryption as defined in <a href="https://rfc.vac.dev/spec/26/">26/WAKU2-PAYLOAD</a>.</p>
<a href="#symmetric-encryption" id="symmetric-encryption" style="color: inherit; text-decoration: none;">
<h2>Symmetric Encryption</h2>
</a>
<p>Symmetric encryption uses a unique key to encrypt and decrypt messages.</p>
2023-05-17 06:12:41 +00:00
<pre><code class="language-typescript"><span class="hl-5">import</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-6">createDecoder</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-6">createEncoder</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-6">generateSymmetricKey</span><span class="hl-1">,</span><br/><span class="hl-1">} </span><span class="hl-5">from</span><span class="hl-1"> </span><span class="hl-2">&quot;@waku/message-encryption/symmetric&quot;</span><span class="hl-1">;</span><br/><br/><span class="hl-7">// Generate a random key</span><br/><span class="hl-3">const</span><span class="hl-1"> </span><span class="hl-4">key</span><span class="hl-1"> = </span><span class="hl-0">generateSymmetricKey</span><span class="hl-1">();</span><br/><br/><span class="hl-7">// To send messages, create an encoder</span><br/><span class="hl-3">const</span><span class="hl-1"> </span><span class="hl-4">encoder</span><span class="hl-1"> = </span><span class="hl-0">createEncoder</span><span class="hl-1">(</span><span class="hl-6">contentTopic</span><span class="hl-1">, </span><span class="hl-6">key</span><span class="hl-1">);</span><br/><br/><span class="hl-7">// For example</span><br/><span class="hl-6">waku</span><span class="hl-1">.</span><span class="hl-6">lightPush</span><span class="hl-1">.</span><span class="hl-0">push</span><span class="hl-1">(</span><span class="hl-6">encoder</span><span class="hl-1">, { </span><span class="hl-6">payload</span><span class="hl-1"> });</span><br/><br/><span class="hl-7">// To receive messages, create a decoder</span><br/><span class="hl-3">const</span><span class="hl-1"> </span><span class="hl-4">decoder</span><span class="hl-1"> = </span><span class="hl-0">createDecoder</span><span class="hl-1">(</span><span class="hl-6">contentTopic</span><span class="hl-1">, </span><span class="hl-6">key</span><span class="hl-1">);</span><br/><br/><span class="hl-7">// For example</span><br/><span class="hl-5">await</span><span class="hl-1"> </span><span class="hl-6">waku</span><span class="hl-1">.</span><span class="hl-6">store</span><span class="hl-1">.</span><span class="hl-0">queryOrderedCallback</span><span class="hl-1">([</span><span class="hl-6">decoder</span><span class="hl-1">], (</span><span class="hl-6">msg</span><span class="hl-1">) </span><span class="hl-3">=&gt;</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-7">// ...</span><br/><span class="hl-1">});</span>
2022-12-06 00:06:29 +00:00
</code></pre>
<a href="#ecies-encryption" id="ecies-encryption" style="color: inherit; text-decoration: none;">
<h2>ECIES Encryption</h2>
</a>
<p>ECIES encryption enables encryption for a public key and decryption using a private key.</p>
2023-05-17 06:12:41 +00:00
<pre><code class="language-typescript"><span class="hl-5">import</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-6">createDecoder</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-6">createEncoder</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-6">generatePrivateKey</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-6">getPublicKey</span><span class="hl-1">,</span><br/><span class="hl-1">} </span><span class="hl-5">from</span><span class="hl-1"> </span><span class="hl-2">&quot;@waku/message-encryption/ecies&quot;</span><span class="hl-1">;</span><br/><br/><span class="hl-7">// Generate a random private key</span><br/><span class="hl-3">const</span><span class="hl-1"> </span><span class="hl-4">privateKey</span><span class="hl-1"> = </span><span class="hl-0">generatePrivateKey</span><span class="hl-1">();</span><br/><br/><span class="hl-7">// Keep the private key secure, provide the public key to the sender</span><br/><span class="hl-3">const</span><span class="hl-1"> </span><span class="hl-4">publicKey</span><span class="hl-1"> = </span><span class="hl-0">getPublicKey</span><span class="hl-1">(</span><span class="hl-6">privateKey</span><span class="hl-1">);</span><br/><br/><span class="hl-7">// To send messages, create an encoder</span><br/><span class="hl-3">const</span><span class="hl-1"> </span><span class="hl-4">encoder</span><span class="hl-1"> = </span><span class="hl-0">createEncoder</span><span class="hl-1">(</span><span class="hl-6">contentTopic</span><span class="hl-1">, </span><span class="hl-6">publicKey</span><span class="hl-1">);</span><br/><br/><span class="hl-7">// For example</span><br/><span class="hl-6">waku</span><span class="hl-1">.</span><span class="hl-6">lightPush</span><span class="hl-1">.</span><span class="hl-0">push</span><span class="hl-1">(</span><span class="hl-6">encoder</span><span class="hl-1">, { </span><span class="hl-6">payload</span><span class="hl-1"> });</span><br/><br/><span class="hl-7">// To receive messages, create a decoder</span><br/><span class="hl-3">const</span><span class="hl-1"> </span><span class="hl-4">decoder</span><span class="hl-1"> = </span><span class="hl-0">createDecoder</span><span class="hl-1">(</span><span class="hl-6">contentTopic</span><span class="hl-1">, </span><span class="hl-6">privateKey</span><span class="hl-1">);</span><br/><br/><span class="hl-7">// For example</span><br/><span class="hl-5">await</span><span class="hl-1"> </span><span class="hl-6">waku</span><span class="hl-1">.</span><span class="hl-6">store</span><span class="hl-1">.</span><span class="hl-0">queryOrderedCallback</span><span class="hl-1">([</span><span class="hl-6">decoder</span><span class="hl-1">], (</span><span class="hl-6">msg</span><span class="hl-1">) </span><span class="hl-3">=&gt;</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-7">// ...</span><br/><span class="hl-1">});</span>
2022-12-06 00:06:29 +00:00
</code></pre>
</section></section>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<h3 class="tsd-index-heading uppercase">Index</h3>
<section class="tsd-index-section">
2023-02-09 21:43:17 +00:00
<h3 class="tsd-index-heading">Modules</h3>
<div class="tsd-index-list"><a href="_waku_message_encryption._internal_.html" class="tsd-index-link tsd-kind-module tsd-parent-kind-module"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4-path"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)" id="icon-4-text"></path></svg><span>&lt;internal&gt;</span></a>
</div></section>
<section class="tsd-index-section">
2022-12-06 00:06:29 +00:00
<h3 class="tsd-index-heading">Namespaces</h3>
2023-02-09 21:43:17 +00:00
<div class="tsd-index-list"><a href="_waku_message_encryption.ecies.html" class="tsd-index-link tsd-kind-namespace tsd-parent-kind-module"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4-path"></use><use href="#icon-4-text"></use></svg><span>ecies</span></a>
2022-12-06 00:06:29 +00:00
<a href="_waku_message_encryption.symmetric.html" class="tsd-index-link tsd-kind-namespace tsd-parent-kind-module"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4-path"></use><use href="#icon-4-text"></use></svg><span>symmetric</span></a>
</div></section>
<section class="tsd-index-section">
<h3 class="tsd-index-heading">Classes</h3>
<div class="tsd-index-list"><a href="../classes/_waku_message_encryption.DecodedMessage.html" class="tsd-index-link tsd-kind-class tsd-parent-kind-module"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-128-path"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)" id="icon-128-text"></path></svg><span>Decoded<wbr/>Message</span></a>
</div></section>
<section class="tsd-index-section">
<h3 class="tsd-index-heading">Type Aliases</h3>
<div class="tsd-index-list"><a href="../types/_waku_message_encryption.Signature.html" class="tsd-index-link tsd-kind-type-alias tsd-parent-kind-module"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4194304-path"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)" id="icon-4194304-text"></path></svg><span>Signature</span></a>
</div></section>
<section class="tsd-index-section">
<h3 class="tsd-index-heading">Variables</h3>
<div class="tsd-index-list"><a href="../variables/_waku_message_encryption.OneMillion.html" class="tsd-index-link tsd-kind-variable tsd-parent-kind-module"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-32-path"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)" id="icon-32-text"></path></svg><span>One<wbr/>Million</span></a>
<a href="../variables/_waku_message_encryption.Version.html" class="tsd-index-link tsd-kind-variable tsd-parent-kind-module"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>Version</span></a>
</div></section>
<section class="tsd-index-section">
<h3 class="tsd-index-heading">Functions</h3>
<div class="tsd-index-list"><a href="../functions/_waku_message_encryption.generatePrivateKey.html" class="tsd-index-link tsd-kind-function tsd-parent-kind-module"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-64-path"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)" id="icon-64-text"></path></svg><span>generate<wbr/>Private<wbr/>Key</span></a>
<a href="../functions/_waku_message_encryption.generateSymmetricKey.html" class="tsd-index-link tsd-kind-function tsd-parent-kind-module"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>generate<wbr/>Symmetric<wbr/>Key</span></a>
<a href="../functions/_waku_message_encryption.getPublicKey.html" class="tsd-index-link tsd-kind-function tsd-parent-kind-module"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg><span>get<wbr/>Public<wbr/>Key</span></a>
</div></section></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Settings</h3></summary>
<div class="tsd-accordion-details">
<div class="tsd-filter-visibility">
<h4 class="uppercase">Member Visibility</h4><form>
<ul id="tsd-filter-options">
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li>
2023-02-09 21:43:17 +00:00
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></form></div>
2022-12-06 00:06:29 +00:00
<div class="tsd-theme-toggle">
<h4 class="uppercase">Theme</h4><select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
<nav class="tsd-navigation primary">
<details class="tsd-index-accordion" open><summary class="tsd-accordion-summary">
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
<div class="tsd-accordion-details">
<ul>
<li class="current"><a href="../modules.html">@waku/root</a>
<ul>
<li class="tsd-kind-module"><a href="_waku_core.html">@waku/core</a>
<ul>
2023-05-11 08:39:54 +00:00
<li class="tsd-kind-module tsd-parent-kind-module"><a href="_waku_core._internal_.html">&lt;internal&gt;</a></li>
2022-12-22 22:34:54 +00:00
<li class="tsd-kind-namespace tsd-parent-kind-module"><a href="_waku_core.message.html">message</a>
<ul>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_core.message.version_0.html">version_<wbr/>0</a>
<ul>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_core.message.version_0.proto.html">proto</a>
<ul>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_core.message.version_0.proto.RateLimitProof.html">Rate<wbr/>Limit<wbr/>Proof</a></li>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_core.message.version_0.proto.WakuMessage.html">Waku<wbr/>Message</a></li></ul></li></ul></li></ul></li>
2022-12-06 00:06:29 +00:00
<li class="tsd-kind-namespace tsd-parent-kind-module"><a href="_waku_core.waku.html">waku</a></li>
<li class="tsd-kind-namespace tsd-parent-kind-module"><a href="_waku_core.waku_filter.html">waku_<wbr/>filter</a></li>
<li class="tsd-kind-namespace tsd-parent-kind-module"><a href="_waku_core.waku_light_push.html">waku_<wbr/>light_<wbr/>push</a>
<ul>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_core.waku_light_push.PushResponse.html">Push<wbr/>Response</a></li></ul></li>
<li class="tsd-kind-namespace tsd-parent-kind-module"><a href="_waku_core.waku_store.html">waku_<wbr/>store</a></li></ul></li>
2023-02-09 21:43:17 +00:00
<li class="tsd-kind-module"><a href="_waku_create.html">@waku/create</a>
<ul>
<li class="tsd-kind-module tsd-parent-kind-module"><a href="_waku_create._internal_.html">&lt;internal&gt;</a></li></ul></li>
<li class="tsd-kind-module"><a href="_waku_dns_discovery.html">@waku/dns-<wbr/>discovery</a>
<ul>
<li class="tsd-kind-module tsd-parent-kind-module"><a href="_waku_dns_discovery._internal_.html">&lt;internal&gt;</a></li></ul></li>
<li class="tsd-kind-module"><a href="_waku_enr.html">@waku/enr</a>
<ul>
<li class="tsd-kind-module tsd-parent-kind-module"><a href="_waku_enr._internal_.html">&lt;internal&gt;</a></li></ul></li>
2023-03-15 20:49:34 +00:00
<li class="tsd-kind-module"><a href="_waku_interfaces.html">@waku/interfaces</a>
<ul>
<li class="tsd-kind-module tsd-parent-kind-module"><a href="_waku_interfaces._internal_.html">&lt;internal&gt;</a></li></ul></li>
2022-12-06 00:06:29 +00:00
<li class="current selected tsd-kind-module"><a href="_waku_message_encryption.html">@waku/message-<wbr/>encryption</a>
<ul>
2023-02-09 21:43:17 +00:00
<li class="tsd-kind-module tsd-parent-kind-module"><a href="_waku_message_encryption._internal_.html">&lt;internal&gt;</a>
<ul>
<li class="tsd-kind-namespace tsd-parent-kind-module"><a href="_waku_message_encryption._internal_.RateLimitProof.html">Rate<wbr/>Limit<wbr/>Proof</a></li>
<li class="tsd-kind-namespace tsd-parent-kind-module"><a href="_waku_message_encryption._internal_.WakuMessage.html">Waku<wbr/>Message</a></li></ul></li>
2022-12-06 00:06:29 +00:00
<li class="tsd-kind-namespace tsd-parent-kind-module"><a href="_waku_message_encryption.ecies.html">ecies</a></li>
2022-12-22 22:34:54 +00:00
<li class="tsd-kind-namespace tsd-parent-kind-module"><a href="_waku_message_encryption.symmetric.html">symmetric</a></li></ul></li>
2023-05-06 04:01:12 +00:00
<li class="tsd-kind-module"><a href="_waku_message_hash.html">@waku/message-<wbr/>hash</a>
<ul>
<li class="tsd-kind-module tsd-parent-kind-module"><a href="_waku_message_hash._internal_.html">&lt;internal&gt;</a></li></ul></li>
2023-02-09 21:43:17 +00:00
<li class="tsd-kind-module"><a href="_waku_peer_exchange.html">@waku/peer-<wbr/>exchange</a>
<ul>
<li class="tsd-kind-module tsd-parent-kind-module"><a href="_waku_peer_exchange._internal_.html">&lt;internal&gt;</a></li></ul></li>
2022-12-22 22:34:54 +00:00
<li class="tsd-kind-module"><a href="_waku_proto.html">@waku/proto</a>
<ul>
<li class="tsd-kind-namespace tsd-parent-kind-module"><a href="_waku_proto.WakuMessage.html">Waku<wbr/>Message</a></li>
<li class="tsd-kind-namespace tsd-parent-kind-module"><a href="_waku_proto.proto_filter.html">proto_<wbr/>filter</a>
<ul>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_filter.FilterRequest.html">Filter<wbr/>Request</a>
<ul>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_filter.FilterRequest.ContentFilter.html">Content<wbr/>Filter</a></li></ul></li>
2023-02-27 03:18:59 +00:00
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_filter.FilterRpc.html">Filter<wbr/>Rpc</a></li>
2022-12-22 22:34:54 +00:00
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_filter.MessagePush.html">Message<wbr/>Push</a></li>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_filter.RateLimitProof.html">Rate<wbr/>Limit<wbr/>Proof</a></li></ul></li>
<li class="tsd-kind-namespace tsd-parent-kind-module"><a href="_waku_proto.proto_lightpush.html">proto_<wbr/>lightpush</a>
<ul>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_lightpush.PushRequest.html">Push<wbr/>Request</a></li>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_lightpush.PushResponse.html">Push<wbr/>Response</a></li>
2023-02-27 03:18:59 +00:00
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_lightpush.PushRpc.html">Push<wbr/>Rpc</a></li>
2022-12-22 22:34:54 +00:00
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_lightpush.RateLimitProof.html">Rate<wbr/>Limit<wbr/>Proof</a></li>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_lightpush.WakuMessage.html">Waku<wbr/>Message</a></li></ul></li>
<li class="tsd-kind-namespace tsd-parent-kind-module"><a href="_waku_proto.proto_message.html">proto_<wbr/>message</a>
<ul>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_message.RateLimitProof.html">Rate<wbr/>Limit<wbr/>Proof</a></li>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_message.WakuMessage.html">Waku<wbr/>Message</a></li></ul></li>
<li class="tsd-kind-namespace tsd-parent-kind-module"><a href="_waku_proto.proto_peer_exchange.html">proto_<wbr/>peer_<wbr/>exchange</a>
<ul>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_peer_exchange.PeerExchangeQuery.html">Peer<wbr/>Exchange<wbr/>Query</a></li>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_peer_exchange.PeerExchangeRPC.html">Peer<wbr/>ExchangeRPC</a></li>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_peer_exchange.PeerExchangeResponse.html">Peer<wbr/>Exchange<wbr/>Response</a></li>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_peer_exchange.PeerInfo.html">Peer<wbr/>Info</a></li></ul></li>
<li class="tsd-kind-namespace tsd-parent-kind-module"><a href="_waku_proto.proto_store.html">proto_<wbr/>store</a>
<ul>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_store.ContentFilter.html">Content<wbr/>Filter</a></li>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_store.HistoryQuery.html">History<wbr/>Query</a></li>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_store.HistoryResponse.html">History<wbr/>Response</a>
<ul>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_store.HistoryResponse.HistoryError.html">History<wbr/>Error</a></li></ul></li>
2023-02-27 03:18:59 +00:00
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_store.HistoryRpc.html">History<wbr/>Rpc</a></li>
2022-12-22 22:34:54 +00:00
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_store.Index.html">Index</a></li>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_store.PagingInfo.html">Paging<wbr/>Info</a>
<ul>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_store.PagingInfo.Direction.html">Direction</a></li></ul></li>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_store.RateLimitProof.html">Rate<wbr/>Limit<wbr/>Proof</a></li>
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_store.WakuMessage.html">Waku<wbr/>Message</a></li></ul></li>
<li class="tsd-kind-namespace tsd-parent-kind-module"><a href="_waku_proto.proto_topic_only_message.html">proto_<wbr/>topic_<wbr/>only_<wbr/>message</a>
<ul>
2023-02-06 05:54:23 +00:00
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="_waku_proto.proto_topic_only_message.TopicOnlyMessage.html">Topic<wbr/>Only<wbr/>Message</a></li></ul></li></ul></li>
2023-05-11 08:39:54 +00:00
<li class="tsd-kind-module"><a href="_waku_relay.html">@waku/relay</a>
<ul>
<li class="tsd-kind-module tsd-parent-kind-module"><a href="_waku_relay._internal_.html">&lt;internal&gt;</a></li></ul></li>
2023-05-09 18:17:23 +00:00
<li class="tsd-kind-module"><a href="_waku_utils.html">@waku/utils</a>
<ul>
<li class="tsd-kind-module tsd-parent-kind-module"><a href="_waku_utils._internal_.html">&lt;internal&gt;</a></li></ul></li></ul></li></ul></div></details></nav>
2022-12-06 00:06:29 +00:00
<nav class="tsd-navigation secondary menu-sticky">
<ul>
<li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/_waku_message_encryption.DecodedMessage.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg>Decoded<wbr/>Message</a></li>
<li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="../types/_waku_message_encryption.Signature.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Signature</a></li>
<li class="tsd-kind-variable tsd-parent-kind-module"><a href="../variables/_waku_message_encryption.OneMillion.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>One<wbr/>Million</a></li>
<li class="tsd-kind-variable tsd-parent-kind-module"><a href="../variables/_waku_message_encryption.Version.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>Version</a></li>
<li class="tsd-kind-function tsd-parent-kind-module"><a href="../functions/_waku_message_encryption.generatePrivateKey.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>generate<wbr/>Private<wbr/>Key</a></li>
<li class="tsd-kind-function tsd-parent-kind-module"><a href="../functions/_waku_message_encryption.generateSymmetricKey.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>generate<wbr/>Symmetric<wbr/>Key</a></li>
<li class="tsd-kind-function tsd-parent-kind-module"><a href="../functions/_waku_message_encryption.getPublicKey.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>get<wbr/>Public<wbr/>Key</a></li></ul></nav></div></div>
<div class="container tsd-generator">
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
<div class="overlay"></div><script src="../assets/main.js"></script></body></html>