ontology-ts-sdk
Version:
Comprehensive TypeScript library for the Ontology blockchain.
897 lines • 58.4 kB
HTML
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>PrivateKey | ontology-ts-sdk</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
</head>
<body>
<header>
<div class="tsd-page-toolbar">
<div class="container">
<div class="table-wrap">
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base="..">
<div class="field">
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
<input id="tsd-search-field" type="text" />
</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">ontology-ts-sdk</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
<div class="tsd-filter-group">
<div class="tsd-select" id="tsd-filter-visibility">
<span class="tsd-select-label">All</span>
<ul class="tsd-select-list">
<li data-value="public">Public</li>
<li data-value="protected">Public/Protected</li>
<li data-value="private" class="selected">All</li>
</ul>
</div>
<input type="checkbox" id="tsd-filter-inherited" checked />
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
<input type="checkbox" id="tsd-filter-externals" checked />
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
<input type="checkbox" id="tsd-filter-only-exported" />
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
</div>
</div>
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
</div>
</div>
</div>
</div>
<div class="tsd-page-title">
<div class="container">
<ul class="tsd-breadcrumb">
<li>
<a href="../globals.html">Globals</a>
</li>
<li>
<a href="../modules/_crypto_privatekey_.html">"crypto/PrivateKey"</a>
</li>
<li>
<a href="_crypto_privatekey_.privatekey.html">PrivateKey</a>
</li>
</ul>
<h1>Class PrivateKey</h1>
</div>
</div>
</header>
<div class="container container-main">
<div class="row">
<div class="col-8 col-content">
<section class="tsd-panel tsd-hierarchy">
<h3>Hierarchy</h3>
<ul class="tsd-hierarchy">
<li>
<a href="_crypto_key_.key.html" class="tsd-signature-type">Key</a>
<ul class="tsd-hierarchy">
<li>
<span class="target">PrivateKey</span>
</li>
</ul>
</li>
</ul>
</section>
<section class="tsd-panel-group tsd-index-group">
<h2>Index</h2>
<section class="tsd-panel tsd-index-panel">
<div class="tsd-index-content">
<section class="tsd-index-section tsd-is-inherited">
<h3>Constructors</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><a href="_crypto_privatekey_.privatekey.html#constructor" class="tsd-kind-icon">constructor</a></li>
</ul>
</section>
<section class="tsd-index-section tsd-is-inherited">
<h3>Properties</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_crypto_privatekey_.privatekey.html#algorithm" class="tsd-kind-icon">algorithm</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_crypto_privatekey_.privatekey.html#key" class="tsd-kind-icon">key</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_crypto_privatekey_.privatekey.html#parameters" class="tsd-kind-icon">parameters</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Methods</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_crypto_privatekey_.privatekey.html#computeecdsasignature" class="tsd-kind-icon">compute<wbr>EcDSASignature</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_crypto_privatekey_.privatekey.html#computeeddsasignature" class="tsd-kind-icon">compute<wbr>EdDSASignature</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_crypto_privatekey_.privatekey.html#computehash" class="tsd-kind-icon">compute<wbr>Hash</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_crypto_privatekey_.privatekey.html#computesm2signature" class="tsd-kind-icon">computeSM2<wbr>Signature</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_crypto_privatekey_.privatekey.html#computesignature" class="tsd-kind-icon">compute<wbr>Signature</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_crypto_privatekey_.privatekey.html#decrypt" class="tsd-kind-icon">decrypt</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_crypto_privatekey_.privatekey.html#encrypt" class="tsd-kind-icon">encrypt</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_crypto_privatekey_.privatekey.html#getecdsapublickey" class="tsd-kind-icon">get<wbr>EcDSAPublic<wbr>Key</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_crypto_privatekey_.privatekey.html#geteddsapublickey" class="tsd-kind-icon">get<wbr>EdDSAPublic<wbr>Key</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_crypto_privatekey_.privatekey.html#getpublickey" class="tsd-kind-icon">get<wbr>Public<wbr>Key</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_crypto_privatekey_.privatekey.html#getsm2publickey" class="tsd-kind-icon">getSM2<wbr>Public<wbr>Key</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_crypto_privatekey_.privatekey.html#isschemasupported" class="tsd-kind-icon">is<wbr>Schema<wbr>Supported</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_crypto_privatekey_.privatekey.html#serializejson" class="tsd-kind-icon">serialize<wbr>Json</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_crypto_privatekey_.privatekey.html#serializewif" class="tsd-kind-icon">serializeWIF</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_crypto_privatekey_.privatekey.html#sign" class="tsd-kind-icon">sign</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_crypto_privatekey_.privatekey.html#signasync" class="tsd-kind-icon">sign<wbr>Async</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_crypto_privatekey_.privatekey.html#deserializewif" class="tsd-kind-icon">deserializeWIF</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_crypto_privatekey_.privatekey.html#generatefrommnemonic" class="tsd-kind-icon">generate<wbr>From<wbr>Mnemonic</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_crypto_privatekey_.privatekey.html#random" class="tsd-kind-icon">random</a></li>
</ul>
</section>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group tsd-is-inherited">
<h2>Constructors</h2>
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited">
<a name="constructor" class="tsd-anchor"></a>
<h3>constructor</h3>
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">new <wbr>Private<wbr>Key<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, algorithm<span class="tsd-signature-symbol">?: </span><a href="_crypto_keytype_.keytype.html" class="tsd-signature-type">KeyType</a>, parameters<span class="tsd-signature-symbol">?: </span><a href="_crypto_key_.keyparameters.html" class="tsd-signature-type">KeyParameters</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_crypto_privatekey_.privatekey.html" class="tsd-signature-type">PrivateKey</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from <a href="_crypto_key_.key.html">Key</a>.<a href="_crypto_key_.key.html#constructor">constructor</a></p>
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/Key.ts#L74">crypto/Key.ts:74</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Creates Key.</p>
</div>
<p>If no algorithm or parameters are specified, default values will be used.
This is strongly discurraged, because it will forbid using other Key types.
Therefore use it only for testing.</p>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>key: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Hex encoded key value</p>
</div>
</div>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> algorithm: <a href="_crypto_keytype_.keytype.html" class="tsd-signature-type">KeyType</a></h5>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Key type</p>
</div>
</div>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> parameters: <a href="_crypto_key_.keyparameters.html" class="tsd-signature-type">KeyParameters</a></h5>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Parameters of the key type</p>
</div>
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="_crypto_privatekey_.privatekey.html" class="tsd-signature-type">PrivateKey</a></h4>
</li>
</ul>
</section>
</section>
<section class="tsd-panel-group tsd-member-group tsd-is-inherited">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
<a name="algorithm" class="tsd-anchor"></a>
<h3>algorithm</h3>
<div class="tsd-signature tsd-kind-icon">algorithm<span class="tsd-signature-symbol">:</span> <a href="_crypto_keytype_.keytype.html" class="tsd-signature-type">KeyType</a></div>
<aside class="tsd-sources">
<p>Inherited from <a href="_crypto_key_.key.html">Key</a>.<a href="_crypto_key_.key.html#algorithm">algorithm</a></p>
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/Key.ts#L64">crypto/Key.ts:64</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Algorithm used for key generation.</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
<a name="key" class="tsd-anchor"></a>
<h3>key</h3>
<div class="tsd-signature tsd-kind-icon">key<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<p>Inherited from <a href="_crypto_key_.key.html">Key</a>.<a href="_crypto_key_.key.html#key">key</a></p>
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/Key.ts#L74">crypto/Key.ts:74</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Key data.</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
<a name="parameters" class="tsd-anchor"></a>
<h3>parameters</h3>
<div class="tsd-signature tsd-kind-icon">parameters<span class="tsd-signature-symbol">:</span> <a href="_crypto_key_.keyparameters.html" class="tsd-signature-type">KeyParameters</a></div>
<aside class="tsd-sources">
<p>Inherited from <a href="_crypto_key_.key.html">Key</a>.<a href="_crypto_key_.key.html#parameters">parameters</a></p>
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/Key.ts#L69">crypto/Key.ts:69</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Parameters of the algorithm.</p>
</div>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="computeecdsasignature" class="tsd-anchor"></a>
<h3>compute<wbr>EcDSASignature</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">compute<wbr>EcDSASignature<span class="tsd-signature-symbol">(</span>hash<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/PrivateKey.ts#L256">crypto/PrivateKey.ts:256</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Computes EcDSA signature of message hash. Curve name is derrived from private key.</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>hash: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
<p>Message hash</p>
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="computeeddsasignature" class="tsd-anchor"></a>
<h3>compute<wbr>EdDSASignature</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">compute<wbr>EdDSASignature<span class="tsd-signature-symbol">(</span>hash<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/PrivateKey.ts#L270">crypto/PrivateKey.ts:270</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Computes EdDSA signature of message hash. Curve name is derrived from private key.</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>hash: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
<p>Message hash</p>
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
<a name="computehash" class="tsd-anchor"></a>
<h3>compute<wbr>Hash</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">compute<wbr>Hash<span class="tsd-signature-symbol">(</span>msg<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, scheme<span class="tsd-signature-symbol">: </span><a href="_crypto_signaturescheme_.signaturescheme.html" class="tsd-signature-type">SignatureScheme</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from <a href="_crypto_key_.key.html">Key</a>.<a href="_crypto_key_.key.html#computehash">computeHash</a></p>
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/Key.ts#L108">crypto/Key.ts:108</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Computes hash of message using hashing function of signature schema.</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>msg: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
<p>Hex encoded input data</p>
</div>
</li>
<li>
<h5>scheme: <a href="_crypto_signaturescheme_.signaturescheme.html" class="tsd-signature-type">SignatureScheme</a></h5>
<div class="tsd-comment tsd-typography">
<p>Signing schema to use</p>
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="computesm2signature" class="tsd-anchor"></a>
<h3>computeSM2<wbr>Signature</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">computeSM2<wbr>Signature<span class="tsd-signature-symbol">(</span>hash<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/PrivateKey.ts#L286">crypto/PrivateKey.ts:286</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Computes SM2 signature of message hash.</p>
</div>
<p>Only default SM2 ID is supported.</p>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>hash: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
<p>Message hash</p>
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="computesignature" class="tsd-anchor"></a>
<h3>compute<wbr>Signature</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">compute<wbr>Signature<span class="tsd-signature-symbol">(</span>hash<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, schema<span class="tsd-signature-symbol">: </span><a href="_crypto_signaturescheme_.signaturescheme.html" class="tsd-signature-type">SignatureScheme</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/PrivateKey.ts#L230">crypto/PrivateKey.ts:230</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Computes signature of message hash using specified signature schema.</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>hash: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
<p>Message hash</p>
</div>
</li>
<li>
<h5>schema: <a href="_crypto_signaturescheme_.signaturescheme.html" class="tsd-signature-type">SignatureScheme</a></h5>
<div class="tsd-comment tsd-typography">
<p>Signature schema to use</p>
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="decrypt" class="tsd-anchor"></a>
<h3>decrypt</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">decrypt<span class="tsd-signature-symbol">(</span>keyphrase<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, address<span class="tsd-signature-symbol">: </span><a href="_crypto_address_.address.html" class="tsd-signature-type">Address</a>, salt<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, params<span class="tsd-signature-symbol">?: </span><a href="../interfaces/_scrypt_.scryptparams.html" class="tsd-signature-type">ScryptParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_crypto_privatekey_.privatekey.html" class="tsd-signature-type">PrivateKey</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/PrivateKey.ts#L161">crypto/PrivateKey.ts:161</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Decrypts encrypted private key with supplied password.</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>keyphrase: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
<p>Password to decrypt with</p>
</div>
</li>
<li>
<h5>address: <a href="_crypto_address_.address.html" class="tsd-signature-type">Address</a></h5>
<div class="tsd-comment tsd-typography">
<p>For aad in decryption</p>
</div>
</li>
<li>
<h5>salt: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> params: <a href="../interfaces/_scrypt_.scryptparams.html" class="tsd-signature-type">ScryptParams</a></h5>
<div class="tsd-comment tsd-typography">
<p>Optional Scrypt params</p>
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="_crypto_privatekey_.privatekey.html" class="tsd-signature-type">PrivateKey</a></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="encrypt" class="tsd-anchor"></a>
<h3>encrypt</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">encrypt<span class="tsd-signature-symbol">(</span>keyphrase<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, address<span class="tsd-signature-symbol">: </span><a href="_crypto_address_.address.html" class="tsd-signature-type">Address</a>, salt<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, params<span class="tsd-signature-symbol">?: </span><a href="../interfaces/_scrypt_.scryptparams.html" class="tsd-signature-type">ScryptParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_crypto_privatekey_.privatekey.html" class="tsd-signature-type">PrivateKey</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/PrivateKey.ts#L181">crypto/PrivateKey.ts:181</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Encrypts private key with supplied password.</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>keyphrase: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
<p>Password to encrypt with</p>
</div>
</li>
<li>
<h5>address: <a href="_crypto_address_.address.html" class="tsd-signature-type">Address</a></h5>
<div class="tsd-comment tsd-typography">
<p>For aad in encryption</p>
</div>
</li>
<li>
<h5>salt: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
<p>16 secure random bytes</p>
</div>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> params: <a href="../interfaces/_scrypt_.scryptparams.html" class="tsd-signature-type">ScryptParams</a></h5>
<div class="tsd-comment tsd-typography">
<p>Optional Scrypt params</p>
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="_crypto_privatekey_.privatekey.html" class="tsd-signature-type">PrivateKey</a></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="getecdsapublickey" class="tsd-anchor"></a>
<h3>get<wbr>EcDSAPublic<wbr>Key</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">get<wbr>EcDSAPublic<wbr>Key<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_crypto_publickey_.publickey.html" class="tsd-signature-type">PublicKey</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/PrivateKey.ts#L195">crypto/PrivateKey.ts:195</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Derives Public key out of Private key using EcDSA algorithm.</p>
</div>
</div>
<h4 class="tsd-returns-title">Returns <a href="_crypto_publickey_.publickey.html" class="tsd-signature-type">PublicKey</a></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="geteddsapublickey" class="tsd-anchor"></a>
<h3>get<wbr>EdDSAPublic<wbr>Key</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">get<wbr>EdDSAPublic<wbr>Key<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_crypto_publickey_.publickey.html" class="tsd-signature-type">PublicKey</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/PrivateKey.ts#L206">crypto/PrivateKey.ts:206</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Derives Public key out of Private key using EdDSA algorithm.</p>
</div>
</div>
<h4 class="tsd-returns-title">Returns <a href="_crypto_publickey_.publickey.html" class="tsd-signature-type">PublicKey</a></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="getpublickey" class="tsd-anchor"></a>
<h3>get<wbr>Public<wbr>Key</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">get<wbr>Public<wbr>Key<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_crypto_publickey_.publickey.html" class="tsd-signature-type">PublicKey</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/PrivateKey.ts#L140">crypto/PrivateKey.ts:140</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Derives Public key out of Private key.</p>
</div>
</div>
<h4 class="tsd-returns-title">Returns <a href="_crypto_publickey_.publickey.html" class="tsd-signature-type">PublicKey</a></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="getsm2publickey" class="tsd-anchor"></a>
<h3>getSM2<wbr>Public<wbr>Key</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">getSM2<wbr>Public<wbr>Key<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_crypto_publickey_.publickey.html" class="tsd-signature-type">PublicKey</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/PrivateKey.ts#L217">crypto/PrivateKey.ts:217</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Derives Public key out of Private key using SM2 algorithm.</p>
</div>
</div>
<h4 class="tsd-returns-title">Returns <a href="_crypto_publickey_.publickey.html" class="tsd-signature-type">PublicKey</a></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
<a name="isschemasupported" class="tsd-anchor"></a>
<h3>is<wbr>Schema<wbr>Supported</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">is<wbr>Schema<wbr>Supported<span class="tsd-signature-symbol">(</span>schema<span class="tsd-signature-symbol">: </span><a href="_crypto_signaturescheme_.signaturescheme.html" class="tsd-signature-type">SignatureScheme</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from <a href="_crypto_key_.key.html">Key</a>.<a href="_crypto_key_.key.html#isschemasupported">isSchemaSupported</a></p>
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/Key.ts#L141">crypto/Key.ts:141</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Tests if signing schema is compatible with key type.</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>schema: <a href="_crypto_signaturescheme_.signaturescheme.html" class="tsd-signature-type">SignatureScheme</a></h5>
<div class="tsd-comment tsd-typography">
<p>Signing schema to use</p>
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
<a name="serializejson" class="tsd-anchor"></a>
<h3>serialize<wbr>Json</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
<li class="tsd-signature tsd-kind-icon">serialize<wbr>Json<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/_crypto_key_.jsonkey.html" class="tsd-signature-type">JsonKey</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<p>Inherited from <a href="_crypto_key_.key.html">Key</a>.<a href="_crypto_key_.key.html#serializejson">serializeJson</a></p>
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/Key.ts#L165">crypto/Key.ts:165</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Gets JSON representation of the Key (Public/Private).</p>
</div>
</div>
<h4 class="tsd-returns-title">Returns <a href="../interfaces/_crypto_key_.jsonkey.html" class="tsd-signature-type">JsonKey</a></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="serializewif" class="tsd-anchor"></a>
<h3>serializeWIF</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">serializeWIF<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/PrivateKey.ts#L299">crypto/PrivateKey.ts:299</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Gets Wallet Import Format (WIF) representation of the PrivateKey.</p>
</div>
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="sign" class="tsd-anchor"></a>
<h3>sign</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">sign<span class="tsd-signature-symbol">(</span>msg<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, schema<span class="tsd-signature-symbol">?: </span><a href="_crypto_signaturescheme_.signaturescheme.html" class="tsd-signature-type">SignatureScheme</a>, publicKeyId<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_crypto_signature_.signature.html" class="tsd-signature-type">Signature</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/PrivateKey.ts#L101">crypto/PrivateKey.ts:101</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Signs the data with supplied private key using signature schema.</p>
</div>
<p>If the signature schema is not provided, the default schema for this key type is used.</p>
<p>This method is not suitable, if external keys (Ledger, TPM, ...) support is required.</p>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>msg: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
<p>Hex encoded input data</p>
</div>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> schema: <a href="_crypto_signaturescheme_.signaturescheme.html" class="tsd-signature-type">SignatureScheme</a></h5>
<div class="tsd-comment tsd-typography">
<p>Signing schema to use</p>
</div>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> publicKeyId: <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
<p>Id of public key</p>
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="_crypto_signature_.signature.html" class="tsd-signature-type">Signature</a></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="signasync" class="tsd-anchor"></a>
<h3>sign<wbr>Async</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">sign<wbr>Async<span class="tsd-signature-symbol">(</span>msg<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, schema<span class="tsd-signature-symbol">?: </span><a href="_crypto_signaturescheme_.signaturescheme.html" class="tsd-signature-type">SignatureScheme</a>, publicKeyId<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="_crypto_signature_.signature.html" class="tsd-signature-type">Signature</a><span class="tsd-signature-symbol">></span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/PrivateKey.ts#L133">crypto/PrivateKey.ts:133</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Asynchroniously signs the data with supplied private key using signature schema.</p>
</div>
<p>If the signature schema is not provided, the default schema for this key type is used.</p>
<p>This method is suitable, if external keys (Ledger, TPM, ...) support is required.</p>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>msg: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
<p>Hex encoded input data</p>
</div>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> schema: <a href="_crypto_signaturescheme_.signaturescheme.html" class="tsd-signature-type">SignatureScheme</a></h5>
<div class="tsd-comment tsd-typography">
<p>Signing schema to use</p>
</div>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> publicKeyId: <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
<p>Id of public key</p>
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="_crypto_signature_.signature.html" class="tsd-signature-type">Signature</a><span class="tsd-signature-symbol">></span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
<a name="deserializewif" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagStatic">Static</span> deserializeWIF</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
<li class="tsd-signature tsd-kind-icon">deserializeWIF<span class="tsd-signature-symbol">(</span>wifkey<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_crypto_privatekey_.privatekey.html" class="tsd-signature-type">PrivateKey</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/PrivateKey.ts#L64">crypto/PrivateKey.ts:64</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Creates PrivateKey from Wallet Import Format (WIF) representation.</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>wifkey: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
<p>WIF private key representation</p>
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="_crypto_privatekey_.privatekey.html" class="tsd-signature-type">PrivateKey</a></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
<a name="generatefrommnemonic" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagStatic">Static</span> generate<wbr>From<wbr>Mnemonic</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
<li class="tsd-signature tsd-kind-icon">generate<wbr>From<wbr>Mnemonic<span class="tsd-signature-symbol">(</span>mnemonic<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, derivePath<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_crypto_privatekey_.privatekey.html" class="tsd-signature-type">PrivateKey</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/PrivateKey.ts#L75">crypto/PrivateKey.ts:75</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Creates PrivateKey from mnemonic according to BIP39 protocol.</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>mnemonic: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
<p>Space separated list of words</p>
</div>
</li>
<li>
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> derivePath: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = ONT_BIP44_PATH</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="_crypto_privatekey_.privatekey.html" class="tsd-signature-type">PrivateKey</a></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
<a name="random" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagStatic">Static</span> random</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
<li class="tsd-signature tsd-kind-icon">random<span class="tsd-signature-symbol">(</span>keyType<span class="tsd-signature-symbol">?: </span><a href="_crypto_keytype_.keytype.html" class="tsd-signature-type">KeyType</a>, parameters<span class="tsd-signature-symbol">?: </span><a href="_crypto_key_.keyparameters.html" class="tsd-signature-type">KeyParameters</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_crypto_privatekey_.privatekey.html" class="tsd-signature-type">PrivateKey</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MickWang/ontology-ts-sdk/blob/f203ee8/src/crypto/PrivateKey.ts#L46">crypto/PrivateKey.ts:46</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Generates random Private key using supplied Key type and parameters.</p>
</div>
<p>If no Key type or parameters is supplied, default SDK key type with default parameters will be used.</p>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> keyType: <a href="_crypto_keytype_.keytype.html" class="tsd-signature-type">KeyType</a></h5>
<div class="tsd-comment tsd-typography">
<p>The key type</p>
</div>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> parameters: <a href="_crypto_key_.keyparameters.html" class="tsd-signature-type">KeyParameters</a></h5>
<div class="tsd-comment tsd-typography">
<p>The parameters for the key type</p>
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="_crypto_privatekey_.privatekey.html" class="tsd-signature-type">PrivateKey</a></h4>
</li>
</ul>
</section>
</section>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<nav class="tsd-navigation primary">
<ul>
<li class="globals ">
<a href="../globals.html"><em>Globals</em></a>
</li>
<li class="current tsd-kind-external-module">
<a href="../modules/_crypto_privatekey_.html">"crypto/<wbr>Private<wbr>Key"</a>
</li>
</ul>
</nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul class="before-current">
</ul>
<ul class="current">
<li class="current tsd-kind-class tsd-parent-kind-external-module">
<a href="_crypto_privatekey_.privatekey.html" class="tsd-kind-icon">Private<wbr>Key</a>
<ul>
<li class=" tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited">
<a href="_crypto_privatekey_.privatekey.html#constructor" class="tsd-kind-icon">constructor</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
<a href="_crypto_privatekey_.privatekey.html#algorithm" class="tsd-kind-icon">algorithm</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
<a href="_crypto_privatekey_.privatekey.html#key" class="tsd-kind-icon">key</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
<a href="_crypto_privatekey_.privatekey.html#parameters" class="tsd-kind-icon">parameters</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_crypto_privatekey_.privatekey.html#computeecdsasignature" class="tsd-kind-icon">compute<wbr>EcDSASignature</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_crypto_privatekey_.privatekey.html#compu