Skip to content

Commit

Permalink
feat(docs): (0b454e0) fix: Invalid signature integer: negative on JS …
Browse files Browse the repository at this point in the history
…platform (#158)

Signed-off-by: Francisco Javier Ribó Labrador <[email protected]>
  • Loading branch information
elribonazo committed May 9, 2024
1 parent cd82340 commit 04e5a2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ <h1 class="cover"><span>compress</span><wbr></wbr><span>Public</span><wbr></wbr>
</div>
<div class="platform-hinted with-platform-tabs" data-platform-hinted="data-platform-hinted">
<div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark" data-filterable-current=":apollo:dokkaHtml/commonMain" data-filterable-set=":apollo:dokkaHtml/commonMain" data-active="" data-toggle=":apollo:dokkaHtml/commonMain">common</button><button class="platform-bookmark" data-filterable-current=":apollo:dokkaHtml/jsMain" data-filterable-set=":apollo:dokkaHtml/jsMain" data-toggle=":apollo:dokkaHtml/jsMain">js</button><button class="platform-bookmark" data-filterable-current=":apollo:dokkaHtml/jvmMain" data-filterable-set=":apollo:dokkaHtml/jvmMain" data-toggle=":apollo:dokkaHtml/jvmMain">jvm</button></div>
<div class="content sourceset-dependent-content" data-active="" data-togglable=":apollo:dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword">expect </span><span class="token keyword">fun </span><a href="compress-public-key.html"><span class="token function">compressPublicKey</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">uncompressed<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a><span class="clearfix"><span class="floating-right">(<a href="https://github.com/input-output-hk/atala-prism-apollo/tree/main/src/commonMain/kotlin/io/iohk/atala/prism/apollo/secp256k1/Secp256k1Lib.kt#L59">source</a>)</span></span></div><p class="paragraph">Compresses an uncompressed public key.</p><span class="kdoc-tag"><h4 class="">Return</h4><p class="paragraph">A byte array representing the compressed public key.</p></span><h4 class="">Parameters</h4><div class="table"><div class="table-row" data-filterable-current=":apollo:dokkaHtml/commonMain" data-filterable-set=":apollo:dokkaHtml/commonMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span><span>uncompressed</span></span></u></div></span></div><div><div class="title"><p class="paragraph">The uncompressed public key in byte array format.</p></div></div></div></div></div></div><div class="content sourceset-dependent-content" data-togglable=":apollo:dokkaHtml/jsMain"><div class="symbol monospace"><span class="token keyword">actual </span><span class="token keyword">fun </span><a href="compress-public-key.html"><span class="token function">compressPublicKey</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">uncompressed<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a><span class="clearfix"><span class="floating-right">(<a href="https://github.com/input-output-hk/atala-prism-apollo/tree/main/src/jsMain/kotlin/io/iohk/atala/prism/apollo/secp256k1/Secp256k1Lib.kt#L142">source</a>)</span></span></div><p class="paragraph">Compresses an uncompressed public key.</p><span class="kdoc-tag"><h4 class="">Return</h4><p class="paragraph">The compressed public key.</p></span><h4 class="">Parameters</h4><div class="table"><div class="table-row" data-filterable-current=":apollo:dokkaHtml/jsMain" data-filterable-set=":apollo:dokkaHtml/jsMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span><span>uncompressed</span></span></u></div></span></div><div><div class="title"><p class="paragraph">The uncompressed public key to compress.</p></div></div></div></div></div></div><div class="content sourceset-dependent-content" data-togglable=":apollo:dokkaHtml/jvmMain"><div class="symbol monospace"><span class="token keyword">actual </span><span class="token keyword">fun </span><a href="compress-public-key.html"><span class="token function">compressPublicKey</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">uncompressed<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a><span class="clearfix"><span class="floating-right">(<a href="https://github.com/input-output-hk/atala-prism-apollo/tree/main/src/jvmMain/kotlin/io/iohk/atala/prism/apollo/secp256k1/Secp256k1Lib.kt#L103">source</a>)</span></span></div><p class="paragraph">Compresses an uncompressed public key.</p><span class="kdoc-tag"><h4 class="">Return</h4><p class="paragraph">A byte array representing the compressed public key.</p></span><h4 class="">Parameters</h4><div class="table"><div class="table-row" data-filterable-current=":apollo:dokkaHtml/jvmMain" data-filterable-set=":apollo:dokkaHtml/jvmMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span><span>uncompressed</span></span></u></div></span></div><div><div class="title"><p class="paragraph">The uncompressed public key in byte array format.</p></div></div></div></div></div></div> </div>
<div class="content sourceset-dependent-content" data-active="" data-togglable=":apollo:dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword">expect </span><span class="token keyword">fun </span><a href="compress-public-key.html"><span class="token function">compressPublicKey</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">uncompressed<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a><span class="clearfix"><span class="floating-right">(<a href="https://github.com/input-output-hk/atala-prism-apollo/tree/main/src/commonMain/kotlin/io/iohk/atala/prism/apollo/secp256k1/Secp256k1Lib.kt#L59">source</a>)</span></span></div><p class="paragraph">Compresses an uncompressed public key.</p><span class="kdoc-tag"><h4 class="">Return</h4><p class="paragraph">A byte array representing the compressed public key.</p></span><h4 class="">Parameters</h4><div class="table"><div class="table-row" data-filterable-current=":apollo:dokkaHtml/commonMain" data-filterable-set=":apollo:dokkaHtml/commonMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span><span>uncompressed</span></span></u></div></span></div><div><div class="title"><p class="paragraph">The uncompressed public key in byte array format.</p></div></div></div></div></div></div><div class="content sourceset-dependent-content" data-togglable=":apollo:dokkaHtml/jsMain"><div class="symbol monospace"><span class="token keyword">actual </span><span class="token keyword">fun </span><a href="compress-public-key.html"><span class="token function">compressPublicKey</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">uncompressed<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a><span class="clearfix"><span class="floating-right">(<a href="https://github.com/input-output-hk/atala-prism-apollo/tree/main/src/jsMain/kotlin/io/iohk/atala/prism/apollo/secp256k1/Secp256k1Lib.kt#L150">source</a>)</span></span></div><p class="paragraph">Compresses an uncompressed public key.</p><span class="kdoc-tag"><h4 class="">Return</h4><p class="paragraph">The compressed public key.</p></span><h4 class="">Parameters</h4><div class="table"><div class="table-row" data-filterable-current=":apollo:dokkaHtml/jsMain" data-filterable-set=":apollo:dokkaHtml/jsMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span><span>uncompressed</span></span></u></div></span></div><div><div class="title"><p class="paragraph">The uncompressed public key to compress.</p></div></div></div></div></div></div><div class="content sourceset-dependent-content" data-togglable=":apollo:dokkaHtml/jvmMain"><div class="symbol monospace"><span class="token keyword">actual </span><span class="token keyword">fun </span><a href="compress-public-key.html"><span class="token function">compressPublicKey</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">uncompressed<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a><span class="clearfix"><span class="floating-right">(<a href="https://github.com/input-output-hk/atala-prism-apollo/tree/main/src/jvmMain/kotlin/io/iohk/atala/prism/apollo/secp256k1/Secp256k1Lib.kt#L103">source</a>)</span></span></div><p class="paragraph">Compresses an uncompressed public key.</p><span class="kdoc-tag"><h4 class="">Return</h4><p class="paragraph">A byte array representing the compressed public key.</p></span><h4 class="">Parameters</h4><div class="table"><div class="table-row" data-filterable-current=":apollo:dokkaHtml/jvmMain" data-filterable-set=":apollo:dokkaHtml/jvmMain"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span><span>uncompressed</span></span></u></div></span></div><div><div class="title"><p class="paragraph">The uncompressed public key in byte array format.</p></div></div></div></div></div></div> </div>
</div>
<div class="footer">
<span class="go-to-top-icon"><a href="#content" id="go-to-top-link"></a></span><span>(c) 2024 IOG Copyright</span><span
Expand Down
Loading

0 comments on commit 04e5a2b

Please sign in to comment.