You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3237 lines
49 KiB

8 years ago
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Module: bip70/x509</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Module: bip70/x509</h1>
<section>
<header>
</header>
<article>
<div class="container-overview">
</div>
<h3 class="subsection-title">Members</h3>
<h4 class="name" id=".allowUntrusted"><span class="type-signature">(static) </span>allowUntrusted<span class="type-signature"> :Boolean</span></h4>
<div class="description">
<p>Whether to allow untrusted root
certs during verification.</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Boolean</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line35">line 35</a>
</li></ul></dd>
</dl>
<h4 class="name" id=".curves"><span class="type-signature">(static) </span>curves<span class="type-signature"> :Object</span></h4>
<div class="description">
<p>OID to curve name map for ECDSA.</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line73">line 73</a>
</li></ul></dd>
</dl>
<h4 class="name" id=".oid"><span class="type-signature">(static, constant) </span>oid<span class="type-signature"> :Object</span></h4>
<div class="description">
<p>OID to algorithm map for PKI.</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line47">line 47</a>
</li></ul></dd>
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="https://www.ietf.org/rfc/rfc2459.txt">https://www.ietf.org/rfc/rfc2459.txt</a></li>
<li><a href="https://tools.ietf.org/html/rfc3279">https://tools.ietf.org/html/rfc3279</a></li>
<li><a href="http://oid-info.com/get/1.2.840.10040.4">http://oid-info.com/get/1.2.840.10040.4</a></li>
<li><a href="http://oid-info.com/get/1.2.840.113549.1.1">http://oid-info.com/get/1.2.840.113549.1.1</a></li>
<li><a href="http://oid-info.com/get/1.2.840.10045.4.3">http://oid-info.com/get/1.2.840.10045.4.3</a></li>
</ul>
</dd>
</dl>
<h4 class="name" id=".trusted"><span class="type-signature">(static) </span>trusted<span class="type-signature"> :Object</span></h4>
<div class="description">
<p>Map of trusted root certs.</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line27">line 27</a>
</li></ul></dd>
</dl>
<h3 class="subsection-title">Methods</h3>
<h4 class="name" id=".getCAName"><span class="type-signature">(static) </span>getCAName<span class="signature">(cert)</span><span class="type-signature"> &rarr; {String}</span></h4>
<div class="description">
<p>Try to retrieve CA name by checking
for a few different OIDs.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>cert</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line105">line 105</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">String</span>
</dd>
</dl>
<h4 class="name" id=".getCurve"><span class="type-signature">(static) </span>getCurve<span class="signature">(params)</span><span class="type-signature"> &rarr; {Object}</span></h4>
<div class="description">
<p>Lookup curve based on key parameters.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>params</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line202">line 202</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Object</span>
</dd>
</dl>
<h4 class="name" id=".getKeyAlgorithm"><span class="type-signature">(static) </span>getKeyAlgorithm<span class="signature">(cert)</span><span class="type-signature"> &rarr; {Object}</span></h4>
<div class="description">
<p>Retrieve key algorithm from cert.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>cert</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line180">line 180</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Object</span>
</dd>
</dl>
<h4 class="name" id=".getPublicKey"><span class="type-signature">(static) </span>getPublicKey<span class="signature">(cert)</span><span class="type-signature"> &rarr; {Object|null}</span></h4>
<div class="description">
<p>Get cert public key.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>cert</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line237">line 237</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Object</span>
|
<span class="param-type">null</span>
</dd>
</dl>
<h4 class="name" id=".getSigAlgorithm"><span class="type-signature">(static) </span>getSigAlgorithm<span class="signature">(cert)</span><span class="type-signature"> &rarr; {Object}</span></h4>
<div class="description">
<p>Retrieve signature algorithm from cert.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>cert</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line191">line 191</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Object</span>
</dd>
</dl>
<h4 class="name" id=".getSigningKey"><span class="type-signature">(static) </span>getSigningKey<span class="signature">(key, chain)</span><span class="type-signature"> &rarr; {Object}</span></h4>
<div class="description">
<p>Get signature key info from cert chain.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>key</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>chain</code></td>
<td class="type">
<span class="param-type">Array:<a href="global.html"></a>.&lt;Buffer:<a href="global.html"></a>></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line277">line 277</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Object</span>
</dd>
</dl>
<h4 class="name" id=".getSubjectOID"><span class="type-signature">(static) </span>getSubjectOID<span class="signature">(cert, oid)</span><span class="type-signature"> &rarr; {String}</span></h4>
<div class="description">
<p>Retrieve cert value by OID.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>cert</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>oid</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line87">line 87</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">String</span>
</dd>
</dl>
<h4 class="name" id=".getVerifyKey"><span class="type-signature">(static) </span>getVerifyKey<span class="signature">(chain)</span><span class="type-signature"> &rarr; {Object|null}</span></h4>
<div class="description">
<p>Get chain verification key.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>chain</code></td>
<td class="type">
<span class="param-type">Array:<a href="global.html"></a>.&lt;Buffer:<a href="global.html"></a>></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line329">line 329</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Object</span>
|
<span class="param-type">null</span>
</dd>
</dl>
<h4 class="name" id=".isTrusted"><span class="type-signature">(static) </span>isTrusted<span class="signature">(cert)</span><span class="type-signature"> &rarr; {Buffer}</span></h4>
<div class="description">
<p>Test whether a cert is trusted by hashing
and looking it up in the trusted map.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>cert</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line128">line 128</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Buffer</span>
</dd>
</dl>
<h4 class="name" id=".parse"><span class="type-signature">(static) </span>parse<span class="signature">(der)</span><span class="type-signature"> &rarr; {Object|null}</span></h4>
<div class="description">
<p>Parse a DER formatted cert.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>der</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line223">line 223</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Object</span>
|
<span class="param-type">null</span>
</dd>
</dl>
<h4 class="name" id=".parseChain"><span class="type-signature">(static) </span>parseChain<span class="signature">(chain)</span><span class="type-signature"> &rarr; {Array:<a href="global.html"></a>.&lt;Object:<a href="global.html"></a>>}</span></h4>
<div class="description">
<p>Parse certificate chain.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>chain</code></td>
<td class="type">
<span class="param-type">Array:<a href="global.html"></a>.&lt;Buffer:<a href="global.html"></a>></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line368">line 368</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Array:<a href="global.html"></a>.&lt;Object:<a href="global.html"></a>></span>
</dd>
</dl>
<h4 class="name" id=".setTrust"><span class="type-signature">(static) </span>setTrust<span class="signature">(certs)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Add root certificates to the trusted map.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>certs</code></td>
<td class="type">
<span class="param-type">Array:<a href="global.html"></a>.&lt;Buffer:<a href="global.html"></a>></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line139">line 139</a>
</li></ul></dd>
</dl>
<h4 class="name" id=".signSubject"><span class="type-signature">(static) </span>signSubject<span class="signature">(hash, msg, key, chain)</span><span class="type-signature"> &rarr; {Buffer}</span></h4>
<div class="description">
<p>Sign a hash with the chain signing key.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>hash</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>msg</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>key</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>chain</code></td>
<td class="type">
<span class="param-type">Array:<a href="global.html"></a>.&lt;Buffer:<a href="global.html"></a>></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line318">line 318</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Buffer</span>
</dd>
</dl>
<h4 class="name" id=".verifyChain"><span class="type-signature">(static) </span>verifyChain<span class="signature">(certs)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Verify certificate chain.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>certs</code></td>
<td class="type">
<span class="param-type">Array:<a href="global.html"></a>.&lt;Object:<a href="global.html"></a>></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line438">line 438</a>
</li></ul></dd>
</dl>
<h4 class="name" id=".verifySubject"><span class="type-signature">(static) </span>verifySubject<span class="signature">(hash, msg, sig, chain)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
<div class="description">
<p>Verify a sighash against chain verification key.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>hash</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>msg</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>sig</code></td>
<td class="type">
<span class="param-type">Buffer</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>chain</code></td>
<td class="type">
<span class="param-type">Array:<a href="global.html"></a>.&lt;Buffer:<a href="global.html"></a>></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line357">line 357</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Boolean</span>
</dd>
</dl>
<h4 class="name" id=".verifyTime"><span class="type-signature">(static) </span>verifyTime<span class="signature">(cert)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
<div class="description">
<p>Verify cert expiration time.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>cert</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line264">line 264</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Boolean</span>
</dd>
</dl>
<h4 class="name" id=".verifyTimes"><span class="type-signature">(static) </span>verifyTimes<span class="signature">(chain)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
<div class="description">
<p>Verify all expiration times in a certificate chain.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>chain</code></td>
<td class="type">
<span class="param-type">Array:<a href="global.html"></a>.&lt;Object:<a href="global.html"></a>></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line390">line 390</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Boolean</span>
</dd>
</dl>
<h4 class="name" id=".verifyTrust"><span class="type-signature">(static) </span>verifyTrust<span class="signature">(chain)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
<div class="description">
<p>Verify that at least one parent
cert in the chain is trusted.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>chain</code></td>
<td class="type">
<span class="param-type">Array:<a href="global.html"></a>.&lt;Object:<a href="global.html"></a>></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bip70_x509.js.html">bip70/x509.js</a>, <a href="bip70_x509.js.html#line409">line 409</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Boolean</span>
</dd>
</dl>
</article>
</section>
</div>
<nav>
8 years ago
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-bcoin.html">bcoin</a></li><li><a href="module-bip70.html">bip70</a></li><li><a href="module-bip70_pk.html">bip70/pk</a></li><li><a href="module-bip70_x509.html">bip70/x509</a></li><li><a href="module-blockchain.html">blockchain</a></li><li><a href="module-blockchain_common.html">blockchain/common</a></li><li><a href="module-btc.html">btc</a></li><li><a href="module-coins.html">coins</a></li><li><a href="module-crypto.html">crypto</a></li><li><a href="module-crypto_chachapoly.html">crypto/chachapoly</a></li><li><a href="module-crypto_ec.html">crypto/ec</a></li><li><a href="module-crypto_pk.html">crypto/pk</a></li><li><a href="module-crypto_schnorr.html">crypto/schnorr</a></li><li><a href="module-crypto_siphash.html">crypto/siphash</a></li><li><a href="module-db.html">db</a></li><li><a href="module-hd.html">hd</a></li><li><a href="module-http.html">http</a></li><li><a href="module-mempool.html">mempool</a></li><li><a href="module-mining.html">mining</a></li><li><a href="module-net.html">net</a></li><li><a href="module-net_bip152.html">net/bip152</a></li><li><a href="module-net_common.html">net/common</a></li><li><a href="module-net_dns.html">net/dns</a></li><li><a href="module-net_packets.html">net/packets</a></li><li><a href="module-net_socks.html">net/socks</a></li><li><a href="module-net_tcp.html">net/tcp</a></li><li><a href="module-node.html">node</a></li><li><a href="module-node_config.html">node/config</a></li><li><a href="module-primitives.html">primitives</a></li><li><a href="module-protocol.html">protocol</a></li><li><a href="module-protocol_consensus.html">protocol/consensus</a></li><li><a href="module-protocol_errors.html">protocol/errors</a></li><li><a href="module-protocol_networks.html">protocol/networks</a></li><li><a href="module-protocol_policy.html">protocol/policy</a></li><li><a href="module-script.html">script</a></li><li><a href="module-script_common.html">script/common</a></li><li><a href="module-utils.html">utils</a></li><li><a href="module-utils_asn1.html">utils/asn1</a></li><li><a href="module-utils_base32.html">utils/base32</a></li><li><a href="module-utils_base58.html">utils/base58</a></li><li><a href="module-utils_co.html">utils/co</a></li><li><a href="module-utils_encoding.html">utils/encoding</a></li><li><a href="module-utils_ip.html">utils/ip</a></li><li><a href="module-utils_pem.html">utils/pem</a></li><li><a href="module-utils_protobuf.html">utils/protobuf</a></li><li><a href="module-utils_util.html">utils/util</a></li><li><a href="module-wallet.html">wallet</a></li><li><a href="module-wallet_common.html">wallet/common</a></li><li><a href="module-wallet_records.html">wallet/records</a></li><li><a href="module-workers.html">workers</a></li><li><a href="module-workers_jobs.html">workers/jobs</a></li><li><a href="module-workers_packets.html">workers/packets</a></li></ul><h3>Classes</h3><ul><li><a href="Environment.html">Environment</a></li><li><a href="module-bip70.Payment.html">Payment</a></li><li><a href="module-bip70.PaymentACK.html">PaymentACK</a></li><li><a href="module-bip70.PaymentDetails.html">PaymentDetails</a></li><li><a href="module-bip70.PaymentRequest.html">PaymentRequest</a></li><li><a href="module-blockchain.Chain.html">Chain</a></li><li><a href="module-blockchain.ChainDB.html">ChainDB</a></li><li><a href="module-blockchain.ChainEntry.html">ChainEntry</a></li><li><a href="module-blockchain.ChainFlags.html">ChainFlags</a></li><li><a href="module-blockchain.ChainOptions.html">ChainOptions</a></li><li><a href="module-blockchain.ChainState.html">ChainState</a></li><li><a href="module-blockchain.DeploymentState.html">DeploymentState</a></li><li><a href="module-blockchain.StateCache.html">StateCache</a></li><li><a href="module-btc.Amount.html">Amount</a></li><li><a href="module-btc.URI.html">URI</a></li><li><a href="module-coins.CoinEntry.html">CoinEntry</a></li><li><a href="module-coins.Coins.html">Coins</a></li><li><a href="module-coins.CoinView.html">CoinView</a></li><li><a href="module-coins.UndoCoi
8 years ago
</nav>
<br class="clear">
<footer>
8 years ago
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Fri Feb 10 2017 09:40:23 GMT-0800 (PST)
8 years ago
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>