Skip to content

Commit

Permalink
Deploying to gh-pages from @ d6e84c7 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
qd-qd committed Dec 15, 2023
1 parent ac83349 commit 52b6755
Show file tree
Hide file tree
Showing 13 changed files with 115 additions and 29 deletions.
4 changes: 3 additions & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@
<div class="sidebar-scrollbox">
<ol class="chapter"><li class="chapter-item "><a href="index.html">Home</a></li><li class="chapter-item affix "><li class="part-title">src</li><li class="chapter-item "><a href="src/utils/index.html">❱ utils</a><a class="toggle"><div></div></a></li><li><ol class="section"><li class="chapter-item "><a href="src/utils/ECDSA.sol/library.ECDSA.html">ECDSA</a></li><li class="chapter-item "><a href="src/utils/secp256r1.sol/function.pModInv.html">pModInv</a></li><li class="chapter-item "><a href="src/utils/secp256r1.sol/function.nModInv.html">nModInv</a></li><li class="chapter-item "><a href="src/utils/secp256r1.sol/constants.secp256r1.html">secp256r1 constants</a></li></ol></li><li class="chapter-item "><a href="src/ECDSA256r1.sol/library.ECDSA256r1.html">ECDSA256r1</a></li></ol>
</div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle"></div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle">
<div class="sidebar-resize-indicator"></div>
</div>
</nav>

<!-- Track and set sidebar scroll position -->
Expand Down
35 changes: 27 additions & 8 deletions css/chrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,14 @@ pre > .buttons button {
/* On mobile, make it easier to tap buttons. */
padding: 0.3rem 1rem;
}

.sidebar-resize-indicator {
/* Hide resize indicator on devices with limited accuracy */
display: none;
}
}
pre > code {
display: block;
padding: 1rem;
}

Expand Down Expand Up @@ -422,22 +428,35 @@ ul#searchresults span.teaser em {
position: absolute;
cursor: col-resize;
width: 0;
right: 0;
right: calc(var(--sidebar-resize-indicator-width) * -1);
top: 0;
bottom: 0;
display: flex;
align-items: center;
}

.sidebar-resize-handle .sidebar-resize-indicator {
width: 100%;
height: 12px;
background-color: var(--icons);
margin-inline-start: var(--sidebar-resize-indicator-space);
}

[dir=rtl] .sidebar .sidebar-resize-handle {
left: calc(var(--sidebar-resize-indicator-width) * -1);
right: unset;
}
[dir=rtl] .sidebar .sidebar-resize-handle { right: unset; left: 0; }
.js .sidebar .sidebar-resize-handle {
cursor: col-resize;
width: 5px;
width: calc(var(--sidebar-resize-indicator-width) - var(--sidebar-resize-indicator-space));
}
/* sidebar-hidden */
#sidebar-toggle-anchor:not(:checked) ~ .sidebar {
transform: translateX(calc(0px - var(--sidebar-width)));
transform: translateX(calc(0px - var(--sidebar-width) - var(--sidebar-resize-indicator-width)));
z-index: -1;
}
[dir=rtl] #sidebar-toggle-anchor:not(:checked) ~ .sidebar {
transform: translateX(var(--sidebar-width));
transform: translateX(calc(var(--sidebar-width) + var(--sidebar-resize-indicator-width)));
}
.sidebar::-webkit-scrollbar {
background: var(--sidebar-bg);
Expand All @@ -448,15 +467,15 @@ ul#searchresults span.teaser em {

/* sidebar-visible */
#sidebar-toggle-anchor:checked ~ .page-wrapper {
transform: translateX(var(--sidebar-width));
transform: translateX(calc(var(--sidebar-width) + var(--sidebar-resize-indicator-width)));
}
[dir=rtl] #sidebar-toggle-anchor:checked ~ .page-wrapper {
transform: translateX(calc(0px - var(--sidebar-width)));
transform: translateX(calc(0px - var(--sidebar-width) - var(--sidebar-resize-indicator-width)));
}
@media only screen and (min-width: 620px) {
#sidebar-toggle-anchor:checked ~ .page-wrapper {
transform: none;
margin-inline-start: var(--sidebar-width);
margin-inline-start: calc(var(--sidebar-width) + var(--sidebar-resize-indicator-width));
}
[dir=rtl] #sidebar-toggle-anchor:checked ~ .page-wrapper {
transform: none;
Expand Down
2 changes: 1 addition & 1 deletion css/print.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}

#page-wrapper.page-wrapper {
transform: none;
transform: none !important;
margin-inline-start: 0px;
overflow-y: initial;
}
Expand Down
2 changes: 2 additions & 0 deletions css/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

:root {
--sidebar-width: 300px;
--sidebar-resize-indicator-width: 8px;
--sidebar-resize-indicator-space: 2px;
--page-padding: 15px;
--content-max-width: 750px;
--menu-bar-height: 50px;
Expand Down
49 changes: 48 additions & 1 deletion highlight.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@
<div class="sidebar-scrollbox">
<ol class="chapter"><li class="chapter-item expanded "><a href="index.html" class="active">Home</a></li><li class="chapter-item affix "><li class="part-title">src</li><li class="chapter-item "><a href="src/utils/index.html">❱ utils</a><a class="toggle"><div></div></a></li><li><ol class="section"><li class="chapter-item "><a href="src/utils/ECDSA.sol/library.ECDSA.html">ECDSA</a></li><li class="chapter-item "><a href="src/utils/secp256r1.sol/function.pModInv.html">pModInv</a></li><li class="chapter-item "><a href="src/utils/secp256r1.sol/function.nModInv.html">nModInv</a></li><li class="chapter-item "><a href="src/utils/secp256r1.sol/constants.secp256r1.html">secp256r1 constants</a></li></ol></li><li class="chapter-item "><a href="src/ECDSA256r1.sol/library.ECDSA256r1.html">ECDSA256r1</a></li></ol>
</div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle"></div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle">
<div class="sidebar-resize-indicator"></div>
</div>
</nav>

<!-- Track and set sidebar scroll position -->
Expand Down
14 changes: 8 additions & 6 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@
<div class="sidebar-scrollbox">
<ol class="chapter"><li class="chapter-item "><a href="index.html">Home</a></li><li class="chapter-item affix "><li class="part-title">src</li><li class="chapter-item "><a href="src/utils/index.html">❱ utils</a><a class="toggle"><div></div></a></li><li><ol class="section"><li class="chapter-item "><a href="src/utils/ECDSA.sol/library.ECDSA.html">ECDSA</a></li><li class="chapter-item "><a href="src/utils/secp256r1.sol/function.pModInv.html">pModInv</a></li><li class="chapter-item "><a href="src/utils/secp256r1.sol/function.nModInv.html">nModInv</a></li><li class="chapter-item "><a href="src/utils/secp256r1.sol/constants.secp256r1.html">secp256r1 constants</a></li></ol></li><li class="chapter-item "><a href="src/ECDSA256r1.sol/library.ECDSA256r1.html">ECDSA256r1</a></li></ol>
</div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle"></div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle">
<div class="sidebar-resize-indicator"></div>
</div>
</nav>

<!-- Track and set sidebar scroll position -->
Expand Down Expand Up @@ -396,7 +398,7 @@ <h2 id="acknowledgements"><a class="header" href="#acknowledgements">Acknowledge
<li><a href="src/utils/secp256r1.sol/constants.secp256r1.html">secp256r1 constants</a></li>
</ul>
<div style="break-before: page; page-break-before: always;"></div><h1 id="ecdsa"><a class="header" href="#ecdsa">ECDSA</a></h1>
<p><a href="https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-verify/blob/6736fff592523bcd172bfeb94d938cd56fca96b4/src/utils/ECDSA.sol">Git Source</a></p>
<p><a href="https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-verify/blob/d6e84c7340b6109ae3de0069892b64108a9c73fc/src/utils/ECDSA.sol">Git Source</a></p>
<p>Library for handling Elliptic Curve Digital Signature Algorithm (ECDSA) operations on a compatible curve</p>
<h2 id="functions"><a class="header" href="#functions">Functions</a></h2>
<h3 id="zz2aff"><a class="header" href="#zz2aff">zz2Aff</a></h3>
Expand Down Expand Up @@ -513,7 +515,7 @@ <h3 id="affadd"><a class="header" href="#affadd">affAdd</a></h3>
<tr><td><code>y2</code></td><td><code>uint256</code></td><td>The Y-coordinate of the resulting point</td></tr>
</tbody></table>
</div><div style="break-before: page; page-break-before: always;"></div><h1 id="pmodinv"><a class="header" href="#pmodinv">pModInv</a></h1>
<p><a href="https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-verify/blob/6736fff592523bcd172bfeb94d938cd56fca96b4/src/utils/secp256r1.sol">Git Source</a></p>
<p><a href="https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-verify/blob/d6e84c7340b6109ae3de0069892b64108a9c73fc/src/utils/secp256r1.sol">Git Source</a></p>
<p>Calculate the modular inverse of a given integer, which is the inverse of this integer modulo p.</p>
<p><em>Uses the ModExp precompiled contract at address 0x05 for fast computation using little Fermat theorem</em></p>
<pre><code class="language-solidity">function pModInv(uint256 self) returns (uint256 result);
Expand All @@ -528,7 +530,7 @@ <h3 id="affadd"><a class="header" href="#affadd">affAdd</a></h3>
<tr><td><code>result</code></td><td><code>uint256</code></td><td>The modular inverse of the input integer. If the modular inverse doesn't exist, it revert the tx</td></tr>
</tbody></table>
</div><div style="break-before: page; page-break-before: always;"></div><h1 id="nmodinv"><a class="header" href="#nmodinv">nModInv</a></h1>
<p><a href="https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-verify/blob/6736fff592523bcd172bfeb94d938cd56fca96b4/src/utils/secp256r1.sol">Git Source</a></p>
<p><a href="https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-verify/blob/d6e84c7340b6109ae3de0069892b64108a9c73fc/src/utils/secp256r1.sol">Git Source</a></p>
<p>Calculate the modular inverse of a given integer, which is the inverse of this integer modulo n.</p>
<p><em>Uses the ModExp precompiled contract at address 0x05 for fast computation using little Fermat theorem</em></p>
<pre><code class="language-solidity">function nModInv(uint256 self) returns (uint256 result);
Expand All @@ -543,7 +545,7 @@ <h3 id="affadd"><a class="header" href="#affadd">affAdd</a></h3>
<tr><td><code>result</code></td><td><code>uint256</code></td><td>The modular inverse of the input integer. If the modular inverse doesn't exist, it revert the tx</td></tr>
</tbody></table>
</div><div style="break-before: page; page-break-before: always;"></div><h1 id="constants"><a class="header" href="#constants">Constants</a></h1>
<p><a href="https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-verify/blob/6736fff592523bcd172bfeb94d938cd56fca96b4/src/utils/secp256r1.sol">Git Source</a></p>
<p><a href="https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-verify/blob/d6e84c7340b6109ae3de0069892b64108a9c73fc/src/utils/secp256r1.sol">Git Source</a></p>
<h3 id="p"><a class="header" href="#p">p</a></h3>
<pre><code class="language-solidity">uint256 constant p = 0xFFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF;
</code></pre>
Expand Down Expand Up @@ -575,7 +577,7 @@ <h3 id="modexp_precompile"><a class="header" href="#modexp_precompile">MODEXP_PR
<pre><code class="language-solidity">address constant MODEXP_PRECOMPILE = 0x0000000000000000000000000000000000000005;
</code></pre>
<div style="break-before: page; page-break-before: always;"></div><h1 id="ecdsa256r1"><a class="header" href="#ecdsa256r1">ECDSA256r1</a></h1>
<p><a href="https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-verify/blob/6736fff592523bcd172bfeb94d938cd56fca96b4/src/ECDSA256r1.sol">Git Source</a></p>
<p><a href="https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-verify/blob/d6e84c7340b6109ae3de0069892b64108a9c73fc/src/ECDSA256r1.sol">Git Source</a></p>
<p>A library to verify ECDSA signatures made on the secp256r1 curve</p>
<p><em>This is the easiest library to deal with but also the most expensive in terms of gas cost. Indeed, this library
must calculate multiple points on the curve in order to verify the signature. Use it kmowingly.</em></p>
Expand Down
6 changes: 4 additions & 2 deletions src/ECDSA256r1.sol/library.ECDSA256r1.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@
<div class="sidebar-scrollbox">
<ol class="chapter"><li class="chapter-item "><a href="../../index.html">Home</a></li><li class="chapter-item affix "><li class="part-title">src</li><li class="chapter-item "><a href="../../src/utils/index.html">❱ utils</a><a class="toggle"><div></div></a></li><li><ol class="section"><li class="chapter-item "><a href="../../src/utils/ECDSA.sol/library.ECDSA.html">ECDSA</a></li><li class="chapter-item "><a href="../../src/utils/secp256r1.sol/function.pModInv.html">pModInv</a></li><li class="chapter-item "><a href="../../src/utils/secp256r1.sol/function.nModInv.html">nModInv</a></li><li class="chapter-item "><a href="../../src/utils/secp256r1.sol/constants.secp256r1.html">secp256r1 constants</a></li></ol></li><li class="chapter-item expanded "><a href="../../src/ECDSA256r1.sol/library.ECDSA256r1.html" class="active">ECDSA256r1</a></li></ol>
</div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle"></div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle">
<div class="sidebar-resize-indicator"></div>
</div>
</nav>

<!-- Track and set sidebar scroll position -->
Expand Down Expand Up @@ -176,7 +178,7 @@ <h1 class="menu-title"></h1>
<div id="content" class="content">
<main>
<h1 id="ecdsa256r1"><a class="header" href="#ecdsa256r1">ECDSA256r1</a></h1>
<p><a href="https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-verify/blob/6736fff592523bcd172bfeb94d938cd56fca96b4/src/ECDSA256r1.sol">Git Source</a></p>
<p><a href="https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-verify/blob/d6e84c7340b6109ae3de0069892b64108a9c73fc/src/ECDSA256r1.sol">Git Source</a></p>
<p>A library to verify ECDSA signatures made on the secp256r1 curve</p>
<p><em>This is the easiest library to deal with but also the most expensive in terms of gas cost. Indeed, this library
must calculate multiple points on the curve in order to verify the signature. Use it kmowingly.</em></p>
Expand Down
6 changes: 4 additions & 2 deletions src/utils/ECDSA.sol/library.ECDSA.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@
<div class="sidebar-scrollbox">
<ol class="chapter"><li class="chapter-item "><a href="../../../index.html">Home</a></li><li class="chapter-item affix "><li class="part-title">src</li><li class="chapter-item expanded "><a href="../../../src/utils/index.html">❱ utils</a><a class="toggle"><div></div></a></li><li><ol class="section"><li class="chapter-item expanded "><a href="../../../src/utils/ECDSA.sol/library.ECDSA.html" class="active">ECDSA</a></li><li class="chapter-item "><a href="../../../src/utils/secp256r1.sol/function.pModInv.html">pModInv</a></li><li class="chapter-item "><a href="../../../src/utils/secp256r1.sol/function.nModInv.html">nModInv</a></li><li class="chapter-item "><a href="../../../src/utils/secp256r1.sol/constants.secp256r1.html">secp256r1 constants</a></li></ol></li><li class="chapter-item "><a href="../../../src/ECDSA256r1.sol/library.ECDSA256r1.html">ECDSA256r1</a></li></ol>
</div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle"></div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle">
<div class="sidebar-resize-indicator"></div>
</div>
</nav>

<!-- Track and set sidebar scroll position -->
Expand Down Expand Up @@ -176,7 +178,7 @@ <h1 class="menu-title"></h1>
<div id="content" class="content">
<main>
<h1 id="ecdsa"><a class="header" href="#ecdsa">ECDSA</a></h1>
<p><a href="https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-verify/blob/6736fff592523bcd172bfeb94d938cd56fca96b4/src/utils/ECDSA.sol">Git Source</a></p>
<p><a href="https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-verify/blob/d6e84c7340b6109ae3de0069892b64108a9c73fc/src/utils/ECDSA.sol">Git Source</a></p>
<p>Library for handling Elliptic Curve Digital Signature Algorithm (ECDSA) operations on a compatible curve</p>
<h2 id="functions"><a class="header" href="#functions">Functions</a></h2>
<h3 id="zz2aff"><a class="header" href="#zz2aff">zz2Aff</a></h3>
Expand Down
4 changes: 3 additions & 1 deletion src/utils/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@
<div class="sidebar-scrollbox">
<ol class="chapter"><li class="chapter-item "><a href="../../index.html">Home</a></li><li class="chapter-item affix "><li class="part-title">src</li><li class="chapter-item expanded "><a href="../../src/utils/index.html" class="active">❱ utils</a><a class="toggle"><div></div></a></li><li><ol class="section"><li class="chapter-item "><a href="../../src/utils/ECDSA.sol/library.ECDSA.html">ECDSA</a></li><li class="chapter-item "><a href="../../src/utils/secp256r1.sol/function.pModInv.html">pModInv</a></li><li class="chapter-item "><a href="../../src/utils/secp256r1.sol/function.nModInv.html">nModInv</a></li><li class="chapter-item "><a href="../../src/utils/secp256r1.sol/constants.secp256r1.html">secp256r1 constants</a></li></ol></li><li class="chapter-item "><a href="../../src/ECDSA256r1.sol/library.ECDSA256r1.html">ECDSA256r1</a></li></ol>
</div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle"></div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle">
<div class="sidebar-resize-indicator"></div>
</div>
</nav>

<!-- Track and set sidebar scroll position -->
Expand Down
6 changes: 4 additions & 2 deletions src/utils/secp256r1.sol/constants.secp256r1.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@
<div class="sidebar-scrollbox">
<ol class="chapter"><li class="chapter-item "><a href="../../../index.html">Home</a></li><li class="chapter-item affix "><li class="part-title">src</li><li class="chapter-item expanded "><a href="../../../src/utils/index.html">❱ utils</a><a class="toggle"><div></div></a></li><li><ol class="section"><li class="chapter-item "><a href="../../../src/utils/ECDSA.sol/library.ECDSA.html">ECDSA</a></li><li class="chapter-item "><a href="../../../src/utils/secp256r1.sol/function.pModInv.html">pModInv</a></li><li class="chapter-item "><a href="../../../src/utils/secp256r1.sol/function.nModInv.html">nModInv</a></li><li class="chapter-item expanded "><a href="../../../src/utils/secp256r1.sol/constants.secp256r1.html" class="active">secp256r1 constants</a></li></ol></li><li class="chapter-item "><a href="../../../src/ECDSA256r1.sol/library.ECDSA256r1.html">ECDSA256r1</a></li></ol>
</div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle"></div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle">
<div class="sidebar-resize-indicator"></div>
</div>
</nav>

<!-- Track and set sidebar scroll position -->
Expand Down Expand Up @@ -176,7 +178,7 @@ <h1 class="menu-title"></h1>
<div id="content" class="content">
<main>
<h1 id="constants"><a class="header" href="#constants">Constants</a></h1>
<p><a href="https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-verify/blob/6736fff592523bcd172bfeb94d938cd56fca96b4/src/utils/secp256r1.sol">Git Source</a></p>
<p><a href="https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-verify/blob/d6e84c7340b6109ae3de0069892b64108a9c73fc/src/utils/secp256r1.sol">Git Source</a></p>
<h3 id="p"><a class="header" href="#p">p</a></h3>
<pre><code class="language-solidity">uint256 constant p = 0xFFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF;
</code></pre>
Expand Down
Loading

0 comments on commit 52b6755

Please sign in to comment.