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.
 
 
 
 

6117 lines
68 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Class: WalletDB</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">Class: WalletDB</h1>
<section>
<header>
<h2>WalletDB</h2>
</header>
<article>
<div class="container-overview">
<h4 class="name" id="WalletDB"><span class="type-signature"></span>new WalletDB<span class="signature">(options)</span><span class="type-signature"></span></h4>
<div class="description">
<p>WalletDB</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>options</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">
<h6>Properties</h6>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>name</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"><p>Database name.</p></td>
</tr>
<tr>
<td class="name"><code>location</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"><p>Database file location.</p></td>
</tr>
<tr>
<td class="name"><code>db</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"><p>Database backend (<code>&quot;leveldb&quot;</code> by default).</p></td>
</tr>
<tr>
<td class="name"><code>verify</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"><p>Verify transactions as they
come in (note that this will not happen on the worker pool).</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<h5 class="subsection-title">Properties:</h5>
<table class="props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>loaded</code></td>
<td class="type">
<span class="param-type">Boolean</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="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line37">line 37</a>
</li></ul></dd>
</dl>
</div>
<h3 class="subsection-title">Methods</h3>
<h4 class="name" id="_getKey"><span class="type-signature">(private) </span>_getKey<span class="signature">(id, account, errback, callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Parse arguments and return an id
consisting of <code>walletid/accountname</code>.</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>id</code></td>
<td class="type">
<span class="param-type"><a href="global.html#WalletID">WalletID</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>account</code></td>
<td class="type">
<span class="param-type">String</span>
|
<span class="param-type">Number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>errback</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>Returns [String, Function].</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line977">line 977</a>
</li></ul></dd>
</dl>
<h4 class="name" id="addTX"><span class="type-signature"></span>addTX<span class="signature">()</span><span class="type-signature"></span></h4>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line801">line 801</a>
</li></ul></dd>
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="TXDB.html#add">TXDB#add</a>.</li>
</ul>
</dd>
</dl>
<h4 class="name" id="close"><span class="type-signature"></span>close<span class="signature">(callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Close the walletdb, wait for the database to close.</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>callback</code></td>
<td class="type">
<span class="param-type">function</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="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line243">line 243</a>
</li></ul></dd>
</dl>
<h4 class="name" id="create"><span class="type-signature"></span>create<span class="signature">(options, callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Create a new wallet, save to database, setup watcher.</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>options</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"><p>See <a href="Wallet.html">Wallet</a>.</p></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>Returns [Error, <a href="Wallet.html">Wallet</a>].</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line413">line 413</a>
</li></ul></dd>
</dl>
<h4 class="name" id="createAccount"><span class="type-signature"></span>createAccount<span class="signature">(options, callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Create an account.</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>options</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"><p>See <a href="Account.html">Account</a> options.</p></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>Returns [Error, <a href="Account.html">Account</a>].</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line602">line 602</a>
</li></ul></dd>
</dl>
<h4 class="name" id="dump"><span class="type-signature"></span>dump<span class="signature">(callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Dump database (for debugging).</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>callback</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>Returns [Error, Object].</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line61">line 61</a>
</li></ul></dd>
</dl>
<h4 class="name" id="ensure"><span class="type-signature"></span>ensure<span class="signature">(id<span class="signature-attributes">nullable</span>, options, callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Attempt to create wallet, return wallet if already exists.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>id</code></td>
<td class="type">
<span class="param-type"><a href="global.html#WalletID">WalletID</a></span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="attributes">
</td>
<td class="description last"><p>See <a href="Wallet.html">Wallet</a>.</p></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="attributes">
</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="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line467">line 467</a>
</li></ul></dd>
</dl>
<h4 class="name" id="fetchWallet"><span class="type-signature">(private) </span>fetchWallet<span class="signature">(id, callback, handler)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Helper function to get a wallet.</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>id</code></td>
<td class="type">
<span class="param-type"><a href="global.html#WalletID">WalletID</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>handler</code></td>
<td class="type">
<span class="param-type">function</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="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line1044">line 1044</a>
</li></ul></dd>
</dl>
<h4 class="name" id="fillCoins"><span class="type-signature"></span>fillCoins<span class="signature">()</span><span class="type-signature"></span></h4>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line944">line 944</a>
</li></ul></dd>
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="TXDB.html#fillCoins">TXDB#fillCoins</a>.</li>
</ul>
</dd>
</dl>
<h4 class="name" id="fillHistory"><span class="type-signature"></span>fillHistory<span class="signature">()</span><span class="type-signature"></span></h4>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line936">line 936</a>
</li></ul></dd>
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="TXDB.html#fillHistory">TXDB#fillHistory</a>.</li>
</ul>
</dd>
</dl>
<h4 class="name" id="fire"><span class="type-signature"></span>fire<span class="signature">(id, &hellip;args)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Fire an event for a registered wallet.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>id</code></td>
<td class="type">
<span class="param-type"><a href="global.html#WalletID">WalletID</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>args</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="attributes">
&lt;repeatable><br>
</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="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line296">line 296</a>
</li></ul></dd>
</dl>
<h4 class="name" id="get"><span class="type-signature"></span>get<span class="signature">(id, callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Get a wallet from the database, setup watcher.</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>id</code></td>
<td class="type">
<span class="param-type"><a href="global.html#WalletID">WalletID</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>Returns [Error, <a href="Wallet.html">Wallet</a>].</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line331">line 331</a>
</li></ul></dd>
</dl>
<h4 class="name" id="getAccount"><span class="type-signature"></span>getAccount<span class="signature">(id, name, callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Get an account from the database.</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>id</code></td>
<td class="type">
<span class="param-type"><a href="global.html#WalletID">WalletID</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>name</code></td>
<td class="type">
<span class="param-type">String</span>
|
<span class="param-type">Number</span>
</td>
<td class="description last"><p>Account name/index.</p></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>Returns [Error, <a href="Wallet.html">Wallet</a>].</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line487">line 487</a>
</li></ul></dd>
</dl>
<h4 class="name" id="getAccountIndex"><span class="type-signature"></span>getAccountIndex<span class="signature">(id, name, callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Lookup the corresponding account name's index.</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>id</code></td>
<td class="type">
<span class="param-type"><a href="global.html#WalletID">WalletID</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>name</code></td>
<td class="type">
<span class="param-type">String</span>
|
<span class="param-type">Number</span>
</td>
<td class="description last"><p>Account name/index.</p></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>Returns [Error, Number].</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line555">line 555</a>
</li></ul></dd>
</dl>
<h4 class="name" id="getAccounts"><span class="type-signature"></span>getAccounts<span class="signature">(id, callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>List account names and indexes from the db.</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>id</code></td>
<td class="type">
<span class="param-type"><a href="global.html#WalletID">WalletID</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>Returns [Error, Array].</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line529">line 529</a>
</li></ul></dd>
</dl>
<h4 class="name" id="getAddress"><span class="type-signature"></span>getAddress<span class="signature">(address, callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Get path data for the specified address hash.</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>address</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Hash">Hash</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</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="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line744">line 744</a>
</li></ul></dd>
</dl>
<h4 class="name" id="getAddresses"><span class="type-signature"></span>getAddresses<span class="signature">(id, callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Get all address hashes.</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>id</code></td>
<td class="type">
<span class="param-type">WalletId</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</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="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line757">line 757</a>
</li></ul></dd>
</dl>
<h4 class="name" id="getBalance"><span class="type-signature"></span>getBalance<span class="signature">()</span><span class="type-signature"></span></h4>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line858">line 858</a>
</li></ul></dd>
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="TXDB.html#getBalance">TXDB#getBalance</a>.</li>
</ul>
</dd>
</dl>
<h4 class="name" id="getCoin"><span class="type-signature"></span>getCoin<span class="signature">()</span><span class="type-signature"></span></h4>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line817">line 817</a>
</li></ul></dd>
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="TXDB.html#getCoin">TXDB#getCoin</a>.</li>
</ul>
</dd>
</dl>
<h4 class="name" id="getCoins"><span class="type-signature"></span>getCoins<span class="signature">()</span><span class="type-signature"></span></h4>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line836">line 836</a>
</li></ul></dd>
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="TXDB.html#getCoins">TXDB#getCoins</a>.</li>
</ul>
</dd>
</dl>
<h4 class="name" id="getHistory"><span class="type-signature"></span>getHistory<span class="signature">()</span><span class="type-signature"></span></h4>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line825">line 825</a>
</li></ul></dd>
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="TXDB.html#getHistory">TXDB#getHistory</a>.</li>
</ul>
</dd>
</dl>
<h4 class="name" id="getLast"><span class="type-signature"></span>getLast<span class="signature">()</span><span class="type-signature"></span></h4>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line886">line 886</a>
</li></ul></dd>
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="TXDB.html#getLast">TXDB#getLast</a>.</li>
</ul>
</dd>
</dl>
<h4 class="name" id="getLastTime"><span class="type-signature"></span>getLastTime<span class="signature">()</span><span class="type-signature"></span></h4>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line869">line 869</a>
</li></ul></dd>
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="TXDB.html#getLastTime">TXDB#getLastTime</a>.</li>
</ul>
</dd>
</dl>
<h4 class="name" id="getPath"><span class="type-signature"></span>getPath<span class="signature">(id, address, callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Get the corresponding path for an address hash.</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>id</code></td>
<td class="type">
<span class="param-type"><a href="global.html#WalletID">WalletID</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>address</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Hash">Hash</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</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="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line785">line 785</a>
</li></ul></dd>
</dl>
<h4 class="name" id="getRange"><span class="type-signature"></span>getRange<span class="signature">()</span><span class="type-signature"></span></h4>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line918">line 918</a>
</li></ul></dd>
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="TXDB.html#getRange">TXDB#getRange</a>.</li>
</ul>
</dd>
</dl>
<h4 class="name" id="getRaw"><span class="type-signature"></span>getRaw<span class="signature">(id, callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Get raw wallet from the database, do not instantiate.</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>id</code></td>
<td class="type">
<span class="param-type"><a href="global.html#WalletID">WalletID</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>Returns [Error, <a href="Wallet.html">Wallet</a>].</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line373">line 373</a>
</li></ul></dd>
</dl>
<h4 class="name" id="getTX"><span class="type-signature"></span>getTX<span class="signature">()</span><span class="type-signature"></span></h4>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line809">line 809</a>
</li></ul></dd>
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="TXDB.html#getTX">TXDB#getTX</a>.</li>
</ul>
</dd>
</dl>
<h4 class="name" id="getUnconfirmed"><span class="type-signature"></span>getUnconfirmed<span class="signature">()</span><span class="type-signature"></span></h4>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line847">line 847</a>
</li></ul></dd>
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="TXDB.html#getUnconfirmed">TXDB#getUnconfirmed</a>.</li>
</ul>
</dd>
</dl>
<h4 class="name" id="has"><span class="type-signature"></span>has<span class="signature">(id<span class="signature-attributes">nullable</span>, callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Test for the existence of a wallet.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>id</code></td>
<td class="type">
<span class="param-type"><a href="global.html#WalletID">WalletID</a></span>
</td>
<td class="attributes">
&lt;nullable><br>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="attributes">
</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="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line453">line 453</a>
</li></ul></dd>
</dl>
<h4 class="name" id="hasAccount"><span class="type-signature"></span>hasAccount<span class="signature">(id, account, callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Test for the existence of an account.</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>id</code></td>
<td class="type">
<span class="param-type"><a href="global.html#WalletID">WalletID</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>account</code></td>
<td class="type">
<span class="param-type">String</span>
|
<span class="param-type">Number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>Returns [Error, Boolean].</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line641">line 641</a>
</li></ul></dd>
</dl>
<h4 class="name" id="hasAddress"><span class="type-signature"></span>hasAddress<span class="signature">(id, address, callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Test whether an address hash exists in the
path map and is relevant to the wallet id.</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>id</code></td>
<td class="type">
<span class="param-type"><a href="global.html#WalletID">WalletID</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>address</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Hash">Hash</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</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="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line726">line 726</a>
</li></ul></dd>
</dl>
<h4 class="name" id="hasListener"><span class="type-signature"></span>hasListener<span class="signature">(id, event)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
<div class="description">
<p>Test for a listener on a registered wallet.</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>id</code></td>
<td class="type">
<span class="param-type"><a href="global.html#WalletID">WalletID</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>event</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="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line313">line 313</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="open"><span class="type-signature"></span>open<span class="signature">(callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Open the walletdb, wait for the database to load.</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>callback</code></td>
<td class="type">
<span class="param-type">function</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="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line230">line 230</a>
</li></ul></dd>
</dl>
<h4 class="name" id="register"><span class="type-signature"></span>register<span class="signature">(id, wallet)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Register a wallet with the walletdb.</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>id</code></td>
<td class="type">
<span class="param-type"><a href="global.html#WalletID">WalletID</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>wallet</code></td>
<td class="type">
<span class="param-type"><a href="Wallet.html">Wallet</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="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line255">line 255</a>
</li></ul></dd>
</dl>
<h4 class="name" id="removeBlock"><span class="type-signature"></span>removeBlock<span class="signature">(block, callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Notify the database that a block has been
removed (reorg). Unconfirms transactions.</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>block</code></td>
<td class="type">
<span class="param-type"><a href="Block.html">Block</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</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="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line1026">line 1026</a>
</li></ul></dd>
</dl>
<h4 class="name" id="removeBlockSPV"><span class="type-signature"></span>removeBlockSPV<span class="signature">(block, callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Notify the database that a block has been
removed (reorg). Unconfirms transactions by height.</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>block</code></td>
<td class="type">
<span class="param-type"><a href="MerkleBlock.html">MerkleBlock</a></span>
|
<span class="param-type"><a href="Block.html">Block</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</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="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line1004">line 1004</a>
</li></ul></dd>
</dl>
<h4 class="name" id="save"><span class="type-signature"></span>save<span class="signature">(wallet, callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Save a wallet to the database.</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>wallet</code></td>
<td class="type">
<span class="param-type"><a href="Wallet.html">Wallet</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</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="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line400">line 400</a>
</li></ul></dd>
</dl>
<h4 class="name" id="saveAccount"><span class="type-signature"></span>saveAccount<span class="signature">(account, callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Save an account to the database.</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>account</code></td>
<td class="type">
<span class="param-type"><a href="Account.html">Account</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</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="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line579">line 579</a>
</li></ul></dd>
</dl>
<h4 class="name" id="saveAddress"><span class="type-signature"></span>saveAddress<span class="signature">(id, addresses, callback)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Save an address to the path map.
The path map exists in the form of:
<code>W/[address-hash] -&gt; {walletid1=path1, walletid2=path2, ...}</code></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>id</code></td>
<td class="type">
<span class="param-type"><a href="global.html#WalletID">WalletID</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>addresses</code></td>
<td class="type">
<span class="param-type">Array.&lt;<a href="KeyRing.html">KeyRing</a>></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</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="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line667">line 667</a>
</li></ul></dd>
</dl>
<h4 class="name" id="unregister"><span class="type-signature"></span>unregister<span class="signature">(id, wallet)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Unregister a wallet with the walletdb.</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>id</code></td>
<td class="type">
<span class="param-type"><a href="global.html#WalletID">WalletID</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>wallet</code></td>
<td class="type">
<span class="param-type"><a href="Wallet.html">Wallet</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="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line276">line 276</a>
</li></ul></dd>
</dl>
<h4 class="name" id="zap"><span class="type-signature"></span>zap<span class="signature">()</span><span class="type-signature"></span></h4>
<div class="description">
<p>Zap all walletdb transactions.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_walletdb.js.html">bcoin/walletdb.js</a>, <a href="bcoin_walletdb.js.html#line953">line 953</a>
</li></ul></dd>
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="TXDB.html#zap">TXDB#zap</a>.</li>
</ul>
</dd>
</dl>
</article>
</section>
</div>
<nav>
<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-constants.html">constants</a></li><li><a href="module-ec.html">ec</a></li><li><a href="module-ldb.html">ldb</a></li><li><a href="module-network.html">network</a></li><li><a href="module-profiler.html">profiler</a></li><li><a href="module-request.html">request</a></li><li><a href="module-uri.html">uri</a></li><li><a href="module-utils.html">utils</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBlock.html">AbstractBlock</a></li><li><a href="Account.html">Account</a></li><li><a href="Address.html">Address</a></li><li><a href="AES.html">AES</a></li><li><a href="Block.html">Block</a></li><li><a href="Bloom.html">Bloom</a></li><li><a href="BroadcastItem.html">BroadcastItem</a></li><li><a href="BST.html">BST</a></li><li><a href="BufferReader.html">BufferReader</a></li><li><a href="BufferWriter.html">BufferWriter</a></li><li><a href="Chain.html">Chain</a></li><li><a href="ChainDB.html">ChainDB</a></li><li><a href="ChainEntry.html">ChainEntry</a></li><li><a href="Coin.html">Coin</a></li><li><a href="Coins.html">Coins</a></li><li><a href="CoinView.html">CoinView</a></li><li><a href="CompactBlock.html">CompactBlock</a></li><li><a href="Environment.html">Environment</a></li><li><a href="Framer.html">Framer</a></li><li><a href="Fullnode.html">Fullnode</a></li><li><a href="HD.html">HD</a></li><li><a href="HDPrivateKey.html">HDPrivateKey</a></li><li><a href="HDPublicKey.html">HDPublicKey</a></li><li><a href="Headers.html">Headers</a></li><li><a href="HTTPBase.html">HTTPBase</a></li><li><a href="HTTPClient.html">HTTPClient</a></li><li><a href="HTTPServer.html">HTTPServer</a></li><li><a href="HTTPWallet.html">HTTPWallet</a></li><li><a href="Input.html">Input</a></li><li><a href="KeyPair.html">KeyPair</a></li><li><a href="KeyRing.html">KeyRing</a></li><li><a href="LoadRequest.html">LoadRequest</a></li><li><a href="Locker.html">Locker</a></li><li><a href="LowlevelUp.html">LowlevelUp</a></li><li><a href="LRU.html">LRU</a></li><li><a href="Master.html">Master</a></li><li><a href="Mempool.html">Mempool</a></li><li><a href="MempoolEntry.html">MempoolEntry</a></li><li><a href="MerkleBlock.html">MerkleBlock</a></li><li><a href="Miner.html">Miner</a></li><li><a href="MinerBlock.html">MinerBlock</a></li><li><a href="Mnemonic.html">Mnemonic</a></li><li><a href="MTX.html">MTX</a></li><li><a href="Network.html">Network</a></li><li><a href="NetworkAddress.html">NetworkAddress</a></li><li><a href="Node.html">Node</a></li><li><a href="NullCache.html">NullCache</a></li><li><a href="Output.html">Output</a></li><li><a href="Parser.html">Parser</a></li><li><a href="Peer.html">Peer</a></li><li><a href="Pool.html">Pool</a></li><li><a href="Profile.html">Profile</a></li><li><a href="RollingFilter.html">RollingFilter</a></li><li><a href="Script.html">Script</a></li><li><a href="ScriptError.html">ScriptError</a></li><li><a href="Snapshot.html">Snapshot</a></li><li><a href="SPVNode.html">SPVNode</a></li><li><a href="Stack.html">Stack</a></li><li><a href="TimeData.html">TimeData</a></li><li><a href="TX.html">TX</a></li><li><a href="TXDB.html">TXDB</a></li><li><a href="VerifyError.html">VerifyError</a></li><li><a href="Wallet.html">Wallet</a></li><li><a href="WalletDB.html">WalletDB</a></li><li><a href="Witness.html">Witness</a></li><li><a href="Worker.html">Worker</a></li><li><a href="Workers.html">Workers</a></li></ul><h3>Global</h3><ul><li><a href="global.html#hostname">hostname</a></li><li><a href="global.html#isMapped">isMapped</a></li><li><a href="global.html#mkdirp">mkdirp</a></li><li><a href="global.html#normalize">normalize</a></li><li><a href="global.html#parseHost">parseHost</a></li><li><a href="global.html#scrypt">scrypt</a></li><li><a href="global.html#toBuffer">toBuffer</a></li><li><a href="global.html#toString">toString</a></li><li><a href="global.html#version">version</a></li></ul>
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Jun 05 2016 20:46:59 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>