Skip to content

Commit

Permalink
Deploying to gh-pages from @ 9d63bfd 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Jan 27, 2025
1 parent 5ab16a4 commit dd3bde1
Show file tree
Hide file tree
Showing 2 changed files with 212 additions and 14 deletions.
215 changes: 202 additions & 13 deletions CryptoClient.html
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,75 @@ <h1>Members</h1>

<div class="member">

<h4 class="name" id="clientDeviceEd25519">
<a class="href-link" href="#clientDeviceEd25519">#</a>

<span class="code-name">
clientDeviceEd25519
</span>

</h4>




<div class="description">
The device's Ed25519 identity
</div>





<dl class="details">































<p class="tag-source">
<a href="e2ee_CryptoClient.ts.html" class="button">View Source</a>
<span>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line44">line 44</a>
</span>
</p>

</dl>





</div>

<div class="member">

<h4 class="name" id="clientDeviceId">
<a class="href-link" href="#clientDeviceId">#</a>

Expand Down Expand Up @@ -387,7 +456,7 @@ <h4 class="name" id="isReady">
<p class="tag-source">
<a href="e2ee_CryptoClient.ts.html" class="button">View Source</a>
<span>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line45">line 45</a>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line51">line 51</a>
</span>
</p>

Expand All @@ -412,6 +481,126 @@ <h1>Methods</h1>



<h4 class="name" id="clientDeviceEd25519">
<a class="href-link" href="#clientDeviceEd25519">#</a>

<span class="code-name">

clientDeviceEd25519<span class="signature">()</span><span class="type-signature"> &rarr; {string}</span>

</span>
</h4>




<div class="description">
The device's Ed25519 identity
</div>














<dl class="details">































<p class="tag-source">
<a href="e2ee_CryptoClient.ts.html" class="button">View Source</a>
<span>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line285">line 285</a>
</span>
</p>

</dl>


















<div class='columns method-parameter'>
<div class="column is-2"><label>Returns:</label></div>
<div class="column is-10">



<div class="columns">


<div class='column is-5 has-text-left'>
<label>Type: </label>

<code class="param-type">string</code>


</div>

</div>


</div>
</div>




</div>

<div class="member">



<h4 class="name" id="clientDeviceId">
<a class="href-link" href="#clientDeviceId">#</a>

Expand Down Expand Up @@ -477,7 +666,7 @@ <h4 class="name" id="clientDeviceId">
<p class="tag-source">
<a href="e2ee_CryptoClient.ts.html" class="button">View Source</a>
<span>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line271">line 271</a>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line278">line 278</a>
</span>
</p>

Expand Down Expand Up @@ -652,7 +841,7 @@ <h5>Parameters:</h5>
<p class="tag-source">
<a href="e2ee_CryptoClient.ts.html" class="button">View Source</a>
<span>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line383">line 383</a>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line397">line 397</a>
</span>
</p>

Expand Down Expand Up @@ -854,7 +1043,7 @@ <h5>Parameters:</h5>
<p class="tag-source">
<a href="e2ee_CryptoClient.ts.html" class="button">View Source</a>
<span>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line363">line 363</a>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line377">line 377</a>
</span>
</p>

Expand Down Expand Up @@ -1033,7 +1222,7 @@ <h5>Parameters:</h5>
<p class="tag-source">
<a href="e2ee_CryptoClient.ts.html" class="button">View Source</a>
<span>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line374">line 374</a>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line388">line 388</a>
</span>
</p>

Expand Down Expand Up @@ -1265,7 +1454,7 @@ <h5>Parameters:</h5>
<p class="tag-source">
<a href="e2ee_CryptoClient.ts.html" class="button">View Source</a>
<span>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line352">line 352</a>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line366">line 366</a>
</span>
</p>

Expand Down Expand Up @@ -1394,7 +1583,7 @@ <h4 class="name" id="isReady">
<p class="tag-source">
<a href="e2ee_CryptoClient.ts.html" class="button">View Source</a>
<span>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line279">line 279</a>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line293">line 293</a>
</span>
</p>

Expand Down Expand Up @@ -1569,7 +1758,7 @@ <h5>Parameters:</h5>
<p class="tag-source">
<a href="e2ee_CryptoClient.ts.html" class="button">View Source</a>
<span>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line315">line 315</a>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line329">line 329</a>
</span>
</p>

Expand Down Expand Up @@ -1761,7 +1950,7 @@ <h5>Parameters:</h5>
<p class="tag-source">
<a href="e2ee_CryptoClient.ts.html" class="button">View Source</a>
<span>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line297">line 297</a>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line311">line 311</a>
</span>
</p>

Expand Down Expand Up @@ -1908,7 +2097,7 @@ <h5>Parameters:</h5>
<p class="tag-source">
<a href="e2ee_CryptoClient.ts.html" class="button">View Source</a>
<span>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line306">line 306</a>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line320">line 320</a>
</span>
</p>

Expand Down Expand Up @@ -2060,7 +2249,7 @@ <h5>Parameters:</h5>
<p class="tag-source">
<a href="e2ee_CryptoClient.ts.html" class="button">View Source</a>
<span>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line287">line 287</a>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line301">line 301</a>
</span>
</p>

Expand Down Expand Up @@ -2212,7 +2401,7 @@ <h5>Parameters:</h5>
<p class="tag-source">
<a href="e2ee_CryptoClient.ts.html" class="button">View Source</a>
<span>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line337">line 337</a>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line351">line 351</a>
</span>
</p>

Expand Down Expand Up @@ -2489,7 +2678,7 @@ <h5>Parameters:</h5>
<p class="tag-source">
<a href="e2ee_CryptoClient.ts.html" class="button">View Source</a>
<span>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line328">line 328</a>
<a href="e2ee_CryptoClient.ts.html">e2ee/CryptoClient.ts</a>, <a href="e2ee_CryptoClient.ts.html#line342">line 342</a>
</span>
</p>

Expand Down
11 changes: 10 additions & 1 deletion e2ee_CryptoClient.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@ <h1>e2ee/CryptoClient.ts</h1>
return this.deviceId;
}

/**
* The device's Ed25519 identity
*/
public get clientDeviceEd25519(): string {
return this.deviceEd25519;
}

/**
* Whether or not the crypto client is ready to be used. If not ready, prepare() should be called.
* @see prepare
Expand Down Expand Up @@ -199,7 +206,7 @@ <h1>e2ee/CryptoClient.ts</h1>
await this.client.cryptoStore.setDeviceId(this.deviceId);
}

LogService.debug("CryptoClient", "Starting with device ID:", this.deviceId);
LogService.info("CryptoClient", "Starting with device ID:", this.deviceId); // info so all bots know for debugging

const machine = await OlmMachine.initialize(
new UserId(await this.client.getUserId()),
Expand All @@ -214,6 +221,8 @@ <h1>e2ee/CryptoClient.ts</h1>
this.deviceCurve25519 = identity.curve25519.toBase64();
this.deviceEd25519 = identity.ed25519.toBase64();

LogService.debug("CryptoClient", "Running with device Ed25519 identity:", this.deviceEd25519); // info so all bots know for debugging

this.ready = true;
}

Expand Down

0 comments on commit dd3bde1

Please sign in to comment.