Browse Source

update docs.

guides-page
Christopher Jeffrey 9 years ago
parent
commit
21b7c62487
No known key found for this signature in database GPG Key ID: 8962AB9DE6666BBD
  1. 2
      docs/AbstractBlock.html
  2. 2
      docs/Address.html
  3. 2
      docs/BST.html
  4. 2
      docs/Block.html
  5. 18
      docs/Bloom.html
  6. 2
      docs/BufferReader.html
  7. 2
      docs/BufferWriter.html
  8. 87
      docs/Chain.html
  9. 2
      docs/ChainBlock.html
  10. 2
      docs/ChainDB.html
  11. 28
      docs/Coin.html
  12. 2
      docs/CoinView.html
  13. 28
      docs/Coins.html
  14. 2
      docs/CompactBlock.html
  15. 2
      docs/Environment.html
  16. 2
      docs/Framer.html
  17. 2
      docs/Fullnode.html
  18. 2
      docs/HD.html
  19. 2
      docs/HDPrivateKey.html
  20. 2
      docs/HDPublicKey.html
  21. 2
      docs/HDSeed.html
  22. 2
      docs/HTTPBase.html
  23. 2
      docs/HTTPClient.html
  24. 2
      docs/HTTPProvider.html
  25. 18
      docs/HTTPServer.html
  26. 2
      docs/Headers.html
  27. 38
      docs/Input.html
  28. 2
      docs/KeyPair.html
  29. 2
      docs/LRU.html
  30. 8
      docs/LoadRequest.html
  31. 2
      docs/Locker.html
  32. 2
      docs/LowlevelUp.html
  33. 2
      docs/MTX.html
  34. 2
      docs/Mempool.html
  35. 30
      docs/MerkleBlock.html
  36. 2
      docs/Miner.html
  37. 2
      docs/MinerBlock.html
  38. 2
      docs/Node.html
  39. 2
      docs/Output.html
  40. 6
      docs/Parser.html
  41. 2
      docs/Peer.html
  42. 62
      docs/Pool.html
  43. 2
      docs/Profile.html
  44. 2
      docs/Provider.html
  45. 2
      docs/SPVNode.html
  46. 192
      docs/Script.html
  47. 4
      docs/ScriptError.html
  48. 2
      docs/Snapshot.html
  49. 54
      docs/Stack.html
  50. 2
      docs/TX.html
  51. 2
      docs/TXDB.html
  52. 4
      docs/VerifyError.html
  53. 2
      docs/Wallet.html
  54. 2
      docs/WalletDB.html
  55. 2
      docs/Witness.html
  56. 2
      docs/bcoin.js.html
  57. 8
      docs/bcoin_abstractblock.js.html
  58. 2
      docs/bcoin_address.js.html
  59. 10
      docs/bcoin_block.js.html
  60. 11
      docs/bcoin_bloom.js.html
  61. 2
      docs/bcoin_bst.js.html
  62. 69
      docs/bcoin_chain.js.html
  63. 4
      docs/bcoin_chainblock.js.html
  64. 10
      docs/bcoin_chaindb.js.html
  65. 12
      docs/bcoin_coin.js.html
  66. 5
      docs/bcoin_coins.js.html
  67. 2
      docs/bcoin_coinview.js.html
  68. 2
      docs/bcoin_compactblock.js.html
  69. 2
      docs/bcoin_ec.js.html
  70. 2
      docs/bcoin_env.js.html
  71. 2
      docs/bcoin_fullnode.js.html
  72. 2
      docs/bcoin_hd.js.html
  73. 4
      docs/bcoin_headers.js.html
  74. 2
      docs/bcoin_http_base.js.html
  75. 4
      docs/bcoin_http_client.js.html
  76. 2
      docs/bcoin_http_provider.js.html
  77. 2
      docs/bcoin_http_request.js.html
  78. 16
      docs/bcoin_http_server.js.html
  79. 13
      docs/bcoin_input.js.html
  80. 6
      docs/bcoin_keypair.js.html
  81. 2
      docs/bcoin_ldb.js.html
  82. 2
      docs/bcoin_locker.js.html
  83. 2
      docs/bcoin_lowlevelup.js.html
  84. 2
      docs/bcoin_lru.js.html
  85. 6
      docs/bcoin_mempool.js.html
  86. 16
      docs/bcoin_merkleblock.js.html
  87. 6
      docs/bcoin_miner.js.html
  88. 24
      docs/bcoin_mtx.js.html
  89. 2
      docs/bcoin_node.js.html
  90. 6
      docs/bcoin_output.js.html
  91. 10
      docs/bcoin_peer.js.html
  92. 48
      docs/bcoin_pool.js.html
  93. 2
      docs/bcoin_profiler.js.html
  94. 2
      docs/bcoin_protocol_constants.js.html
  95. 6
      docs/bcoin_protocol_framer.js.html
  96. 5
      docs/bcoin_protocol_network.js.html
  97. 4
      docs/bcoin_protocol_parser.js.html
  98. 2
      docs/bcoin_reader.js.html
  99. 305
      docs/bcoin_script.js.html
  100. 2
      docs/bcoin_spvnode.js.html

2
docs/AbstractBlock.html

@ -1393,7 +1393,7 @@ set with properties <code>reason</code> and <code>score</code>.</p></td>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/Address.html

@ -5129,7 +5129,7 @@ it will attempt to sign all redeemable inputs.</p></td>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/BST.html

@ -3473,7 +3473,7 @@ Many of its options, parameters and methods mimic the leveldown interface.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/Block.html

@ -5542,7 +5542,7 @@ set with properties <code>reason</code> and <code>score</code>.</p></td>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

18
docs/Bloom.html

@ -333,7 +333,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_bloom.js.html">bcoin/bloom.js</a>, <a href="bcoin_bloom.js.html#line24">line 24</a>
<a href="bcoin_bloom.js.html">bcoin/bloom.js</a>, <a href="bcoin_bloom.js.html#line25">line 25</a>
</li></ul></dd>
@ -505,7 +505,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_bloom.js.html">bcoin/bloom.js</a>, <a href="bcoin_bloom.js.html#line233">line 233</a>
<a href="bcoin_bloom.js.html">bcoin/bloom.js</a>, <a href="bcoin_bloom.js.html#line236">line 236</a>
</li></ul></dd>
@ -700,7 +700,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_bloom.js.html">bcoin/bloom.js</a>, <a href="bcoin_bloom.js.html#line67">line 67</a>
<a href="bcoin_bloom.js.html">bcoin/bloom.js</a>, <a href="bcoin_bloom.js.html#line68">line 68</a>
</li></ul></dd>
@ -854,7 +854,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_bloom.js.html">bcoin/bloom.js</a>, <a href="bcoin_bloom.js.html#line49">line 49</a>
<a href="bcoin_bloom.js.html">bcoin/bloom.js</a>, <a href="bcoin_bloom.js.html#line50">line 50</a>
</li></ul></dd>
@ -954,7 +954,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_bloom.js.html">bcoin/bloom.js</a>, <a href="bcoin_bloom.js.html#line122">line 122</a>
<a href="bcoin_bloom.js.html">bcoin/bloom.js</a>, <a href="bcoin_bloom.js.html#line125">line 125</a>
</li></ul></dd>
@ -1054,7 +1054,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_bloom.js.html">bcoin/bloom.js</a>, <a href="bcoin_bloom.js.html#line57">line 57</a>
<a href="bcoin_bloom.js.html">bcoin/bloom.js</a>, <a href="bcoin_bloom.js.html#line58">line 58</a>
</li></ul></dd>
@ -1231,7 +1231,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_bloom.js.html">bcoin/bloom.js</a>, <a href="bcoin_bloom.js.html#line89">line 89</a>
<a href="bcoin_bloom.js.html">bcoin/bloom.js</a>, <a href="bcoin_bloom.js.html#line91">line 91</a>
</li></ul></dd>
@ -1332,7 +1332,7 @@ suitable for transmission on the network.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_bloom.js.html">bcoin/bloom.js</a>, <a href="bcoin_bloom.js.html#line113">line 113</a>
<a href="bcoin_bloom.js.html">bcoin/bloom.js</a>, <a href="bcoin_bloom.js.html#line116">line 116</a>
</li></ul></dd>
@ -1398,7 +1398,7 @@ suitable for transmission on the network.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/BufferReader.html

@ -4427,7 +4427,7 @@ a uint64be as a js number. Maintain the sign.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/BufferWriter.html

@ -3711,7 +3711,7 @@
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

87
docs/Chain.html

@ -1743,7 +1743,7 @@ duplicate if they are not yet completely spent.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line926">line 926</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line928">line 928</a>
</li></ul></dd>
@ -1876,7 +1876,7 @@ is one deployment that needs to be checked frequently.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2390">line 2390</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2361">line 2361</a>
</li></ul></dd>
@ -2193,7 +2193,7 @@ is received.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line977">line 977</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line979">line 979</a>
</li></ul></dd>
@ -2399,7 +2399,7 @@ reorganize the chain (a higher fork).</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1166">line 1166</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1168">line 1168</a>
</li></ul></dd>
@ -2922,7 +2922,7 @@ coinbase height, finality checks.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1307">line 1307</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1309">line 1309</a>
</li></ul></dd>
@ -3076,7 +3076,7 @@ coinbase height, finality checks.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1696">line 1696</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1698">line 1698</a>
</li></ul></dd>
@ -3277,7 +3277,7 @@ if it is present in the lock flags.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2445">line 2445</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2416">line 2416</a>
</li></ul></dd>
@ -3477,7 +3477,7 @@ if it is present in the lock flags.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2555">line 2555</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2526">line 2526</a>
</li></ul></dd>
@ -3762,7 +3762,7 @@ if it is present in the lock flags.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2351">line 2351</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2322">line 2322</a>
</li></ul></dd>
@ -3926,7 +3926,7 @@ in side chains when they come in).</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1106">line 1106</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1108">line 1108</a>
</li></ul></dd>
@ -4080,7 +4080,7 @@ in side chains when they come in).</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1071">line 1071</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1073">line 1073</a>
</li></ul></dd>
@ -4280,7 +4280,7 @@ in side chains when they come in).</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2529">line 2529</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2500">line 2500</a>
</li></ul></dd>
@ -4435,7 +4435,7 @@ hash of the latest known block).</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2163">line 2163</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2134">line 2134</a>
</li></ul></dd>
@ -4567,7 +4567,7 @@ hash of the latest known block).</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2046">line 2046</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2017">line 2017</a>
</li></ul></dd>
@ -4724,7 +4724,7 @@ hash of the latest known block).</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1797">line 1797</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1786">line 1786</a>
</li></ul></dd>
@ -4901,7 +4901,7 @@ hash of the latest known block).</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1873">line 1873</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1856">line 1856</a>
</li></ul></dd>
@ -5080,7 +5080,7 @@ non-existent hash, which is useful for headers-first locators.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1925">line 1925</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1908">line 1908</a>
</li></ul></dd>
@ -5281,7 +5281,7 @@ non-existent hash, which is useful for headers-first locators.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2470">line 2470</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2441">line 2441</a>
</li></ul></dd>
@ -5412,7 +5412,7 @@ non-existent hash, which is useful for headers-first locators.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1815">line 1815</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1796">line 1796</a>
</li></ul></dd>
@ -5569,7 +5569,7 @@ in * order to resolve the orphan root.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2016">line 2016</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1992">line 1992</a>
</li></ul></dd>
@ -5673,7 +5673,7 @@ in * order to resolve the orphan root.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1860">line 1860</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1836">line 1836</a>
</li></ul></dd>
@ -5872,7 +5872,7 @@ in * order to resolve the orphan root.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2215">line 2215</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2186">line 2186</a>
</li></ul></dd>
@ -6069,7 +6069,7 @@ have ancestors pre-allocated.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2086">line 2086</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2057">line 2057</a>
</li></ul></dd>
@ -6260,7 +6260,7 @@ have ancestors pre-allocated.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2060">line 2060</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2031">line 2031</a>
</li></ul></dd>
@ -6340,15 +6340,6 @@ have ancestors pre-allocated.</p>
<td class="type">
<span class="param-type"><a href="Block.html">Block</a></span>
|
<span class="param-type"><a href="MerkleBlock.html">MerkleBlock</a></span>
|
<span class="param-type">Buffer</span>
|
<span class="param-type"><a href="global.html#Hash">Hash</a></span>
@ -6423,7 +6414,7 @@ have ancestors pre-allocated.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1680">line 1680</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1682">line 1682</a>
</li></ul></dd>
@ -6577,7 +6568,7 @@ have ancestors pre-allocated.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1754">line 1754</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1756">line 1756</a>
</li></ul></dd>
@ -6731,7 +6722,7 @@ have ancestors pre-allocated.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1772">line 1772</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1766">line 1766</a>
</li></ul></dd>
@ -6885,7 +6876,7 @@ have ancestors pre-allocated.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1782">line 1782</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1776">line 1776</a>
</li></ul></dd>
@ -7062,7 +7053,7 @@ have ancestors pre-allocated.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2192">line 2192</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2163">line 2163</a>
</li></ul></dd>
@ -7156,7 +7147,7 @@ have ancestors pre-allocated.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1829">line 1829</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1805">line 1805</a>
</li></ul></dd>
@ -7258,7 +7249,7 @@ function.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1841">line 1841</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1817">line 1817</a>
</li></ul></dd>
@ -7415,7 +7406,7 @@ all of the blocks in its queue).</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1297">line 1297</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1299">line 1299</a>
</li></ul></dd>
@ -7629,7 +7620,7 @@ coinbase height (likely to be the peer's tip).</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1618">line 1618</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1620">line 1620</a>
</li></ul></dd>
@ -7711,7 +7702,7 @@ coinbase height (likely to be the peer's tip).</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1605">line 1605</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1607">line 1607</a>
</li></ul></dd>
@ -7796,7 +7787,7 @@ if more than 500mb of pending blocks are in the queue.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1670">line 1670</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1672">line 1672</a>
</li></ul></dd>
@ -7952,7 +7943,7 @@ for SPV.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1240">line 1240</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1242">line 1242</a>
</li></ul></dd>
@ -8108,7 +8099,7 @@ download for SPV.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1271">line 1271</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line1273">line 1273</a>
</li></ul></dd>
@ -8263,7 +8254,7 @@ hits a retarget diff interval.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2131">line 2131</a>
<a href="bcoin_chain.js.html">bcoin/chain.js</a>, <a href="bcoin_chain.js.html#line2102">line 2102</a>
</li></ul></dd>
@ -8333,7 +8324,7 @@ hits a retarget diff interval.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/ChainBlock.html

@ -4240,7 +4240,7 @@ suitable for JSON serialization.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/ChainDB.html

@ -6531,7 +6531,7 @@ database and potentially connect the inputs.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

28
docs/Coin.html

@ -589,7 +589,7 @@ new Coin(options);</code></pre>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line253">line 253</a>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line251">line 251</a>
</li></ul></dd>
@ -695,7 +695,7 @@ new Coin(options);</code></pre>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line166">line 166</a>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line164">line 164</a>
</li></ul></dd>
@ -893,7 +893,7 @@ for passing to the Coin constructor).</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line210">line 210</a>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line208">line 208</a>
</li></ul></dd>
@ -1090,7 +1090,7 @@ in &quot;extended&quot; serialization format.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line270">line 270</a>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line268">line 268</a>
</li></ul></dd>
@ -1239,7 +1239,7 @@ in &quot;extended&quot; serialization format.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line184">line 184</a>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line182">line 182</a>
</li></ul></dd>
@ -1431,7 +1431,7 @@ in &quot;extended&quot; serialization format.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line226">line 226</a>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line224">line 224</a>
</li></ul></dd>
@ -1580,7 +1580,7 @@ in &quot;extended&quot; serialization format.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line280">line 280</a>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line278">line 278</a>
</li></ul></dd>
@ -1853,7 +1853,7 @@ height is used if not passed in.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line107">line 107</a>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line105">line 105</a>
</li></ul></dd>
@ -2019,7 +2019,7 @@ height is used if not passed in.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line85">line 85</a>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line83">line 83</a>
</li></ul></dd>
@ -2233,7 +2233,7 @@ height is used if not passed in.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line124">line 124</a>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line122">line 122</a>
</li></ul></dd>
@ -2560,7 +2560,7 @@ including both the hash and the index.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line237">line 237</a>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line235">line 235</a>
</li></ul></dd>
@ -2671,7 +2671,7 @@ of little-endian uint256s.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line147">line 147</a>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line145">line 145</a>
</li></ul></dd>
@ -2837,7 +2837,7 @@ of little-endian uint256s.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line194">line 194</a>
<a href="bcoin_coin.js.html">bcoin/coin.js</a>, <a href="bcoin_coin.js.html#line192">line 192</a>
</li></ul></dd>
@ -2906,7 +2906,7 @@ of little-endian uint256s.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/CoinView.html

@ -1558,7 +1558,7 @@ be spent when filling.</p></td>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

28
docs/Coins.html

@ -463,7 +463,7 @@ transaction is a coinbase.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line243">line 243</a>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line240">line 240</a>
</li></ul></dd>
@ -642,7 +642,7 @@ transaction is a coinbase.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line276">line 276</a>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line273">line 273</a>
</li></ul></dd>
@ -791,7 +791,7 @@ transaction is a coinbase.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line204">line 204</a>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line201">line 201</a>
</li></ul></dd>
@ -943,7 +943,7 @@ transaction is a coinbase.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line214">line 214</a>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line211">line 211</a>
</li></ul></dd>
@ -1138,7 +1138,7 @@ transaction is a coinbase.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line70">line 70</a>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line67">line 67</a>
</li></ul></dd>
@ -1220,7 +1220,7 @@ transaction is a coinbase.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line172">line 172</a>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line169">line 169</a>
</li></ul></dd>
@ -1420,7 +1420,7 @@ be spent when filling.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line132">line 132</a>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line129">line 129</a>
</li></ul></dd>
@ -1573,7 +1573,7 @@ be spent when filling.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line98">line 98</a>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line95">line 95</a>
</li></ul></dd>
@ -1722,7 +1722,7 @@ be spent when filling.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line88">line 88</a>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line85">line 85</a>
</li></ul></dd>
@ -1871,7 +1871,7 @@ be spent when filling.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line107">line 107</a>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line104">line 104</a>
</li></ul></dd>
@ -2002,7 +2002,7 @@ be spent when filling.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line118">line 118</a>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line115">line 115</a>
</li></ul></dd>
@ -2102,7 +2102,7 @@ be spent when filling.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line185">line 185</a>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line182">line 182</a>
</li></ul></dd>
@ -2202,7 +2202,7 @@ be spent when filling.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line194">line 194</a>
<a href="bcoin_coins.js.html">bcoin/coins.js</a>, <a href="bcoin_coins.js.html#line191">line 191</a>
</li></ul></dd>
@ -2268,7 +2268,7 @@ be spent when filling.</p></td>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/CompactBlock.html

@ -873,7 +873,7 @@ extracted in actuality).</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/Environment.html

@ -2212,7 +2212,7 @@ the worker pool (default=6).</p></td>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/Framer.html

@ -13486,7 +13486,7 @@ See <a href="Framer.html#.verack">Framer.verack</a>.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/Fullnode.html

@ -4227,7 +4227,7 @@ node.sendTX(tx, true, callback);</code></pre>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/HD.html

@ -991,7 +991,7 @@ or <a href="HDPrivateKey.html">HDPrivateKey</a> options.</p></td>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/HDPrivateKey.html

@ -4361,7 +4361,7 @@ for passing to the HDPrivateKey constructor).</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/HDPublicKey.html

@ -2768,7 +2768,7 @@ should be hardened (throws if true).</p></td>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/HDSeed.html

@ -724,7 +724,7 @@ key stretching (empty string if not present).</p></td>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/HTTPBase.html

@ -1529,7 +1529,7 @@
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/HTTPClient.html

@ -6344,7 +6344,7 @@ is available in the wallet history).</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/HTTPProvider.html

@ -1639,7 +1639,7 @@
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

18
docs/HTTPServer.html

@ -350,7 +350,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_http_server.js.html">bcoin/http/server.js</a>, <a href="bcoin_http_server.js.html#line645">line 645</a>
<a href="bcoin_http_server.js.html">bcoin/http/server.js</a>, <a href="bcoin_http_server.js.html#line653">line 653</a>
</li></ul></dd>
@ -428,7 +428,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_http_server.js.html">bcoin/http/server.js</a>, <a href="bcoin_http_server.js.html#line752">line 752</a>
<a href="bcoin_http_server.js.html">bcoin/http/server.js</a>, <a href="bcoin_http_server.js.html#line760">line 760</a>
</li></ul></dd>
@ -513,7 +513,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_http_server.js.html">bcoin/http/server.js</a>, <a href="bcoin_http_server.js.html#line728">line 728</a>
<a href="bcoin_http_server.js.html">bcoin/http/server.js</a>, <a href="bcoin_http_server.js.html#line736">line 736</a>
</li></ul></dd>
@ -598,7 +598,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_http_server.js.html">bcoin/http/server.js</a>, <a href="bcoin_http_server.js.html#line760">line 760</a>
<a href="bcoin_http_server.js.html">bcoin/http/server.js</a>, <a href="bcoin_http_server.js.html#line768">line 768</a>
</li></ul></dd>
@ -736,7 +736,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_http_server.js.html">bcoin/http/server.js</a>, <a href="bcoin_http_server.js.html#line632">line 632</a>
<a href="bcoin_http_server.js.html">bcoin/http/server.js</a>, <a href="bcoin_http_server.js.html#line640">line 640</a>
</li></ul></dd>
@ -814,7 +814,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_http_server.js.html">bcoin/http/server.js</a>, <a href="bcoin_http_server.js.html#line736">line 736</a>
<a href="bcoin_http_server.js.html">bcoin/http/server.js</a>, <a href="bcoin_http_server.js.html#line744">line 744</a>
</li></ul></dd>
@ -899,7 +899,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_http_server.js.html">bcoin/http/server.js</a>, <a href="bcoin_http_server.js.html#line744">line 744</a>
<a href="bcoin_http_server.js.html">bcoin/http/server.js</a>, <a href="bcoin_http_server.js.html#line752">line 752</a>
</li></ul></dd>
@ -984,7 +984,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_http_server.js.html">bcoin/http/server.js</a>, <a href="bcoin_http_server.js.html#line720">line 720</a>
<a href="bcoin_http_server.js.html">bcoin/http/server.js</a>, <a href="bcoin_http_server.js.html#line728">line 728</a>
</li></ul></dd>
@ -1039,7 +1039,7 @@
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/Headers.html

@ -2425,7 +2425,7 @@ set with properties <code>reason</code> and <code>score</code>.</p></td>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

38
docs/Input.html

@ -713,7 +713,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line373">line 373</a>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line370">line 370</a>
</li></ul></dd>
@ -819,7 +819,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line279">line 279</a>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line276">line 276</a>
</li></ul></dd>
@ -1017,7 +1017,7 @@ for passing to the Input constructor).</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line324">line 324</a>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line321">line 321</a>
</li></ul></dd>
@ -1214,7 +1214,7 @@ in &quot;extended&quot; serialization format.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line396">line 396</a>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line393">line 393</a>
</li></ul></dd>
@ -1363,7 +1363,7 @@ in &quot;extended&quot; serialization format.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line298">line 298</a>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line295">line 295</a>
</li></ul></dd>
@ -1555,7 +1555,7 @@ in &quot;extended&quot; serialization format.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line340">line 340</a>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line337">line 337</a>
</li></ul></dd>
@ -1704,7 +1704,7 @@ in &quot;extended&quot; serialization format.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line406">line 406</a>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line403">line 403</a>
</li></ul></dd>
@ -1806,7 +1806,7 @@ is not available.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line146">line 146</a>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line143">line 143</a>
</li></ul></dd>
@ -1911,7 +1911,7 @@ redeem scripts if witnesspubkeyhash is behind a scripthash.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line99">line 99</a>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line96">line 96</a>
</li></ul></dd>
@ -2015,7 +2015,7 @@ redeem scripts if witnesspubkeyhash is behind a scripthash.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line125">line 125</a>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line122">line 122</a>
</li></ul></dd>
@ -2121,7 +2121,7 @@ is not available.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line69">line 69</a>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line66">line 66</a>
</li></ul></dd>
@ -2225,7 +2225,7 @@ is not available.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line218">line 218</a>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line215">line 215</a>
</li></ul></dd>
@ -2325,7 +2325,7 @@ is not available.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line184">line 184</a>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line181">line 181</a>
</li></ul></dd>
@ -2425,7 +2425,7 @@ is not available.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line175">line 175</a>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line172">line 172</a>
</li></ul></dd>
@ -2581,7 +2581,7 @@ array of addresses, or a map of addresses.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line195">line 195</a>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line192">line 192</a>
</li></ul></dd>
@ -2747,7 +2747,7 @@ including both the input and the witness.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line351">line 351</a>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line348">line 348</a>
</li></ul></dd>
@ -2853,7 +2853,7 @@ of little-endian uint256s.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line259">line 259</a>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line256">line 256</a>
</li></ul></dd>
@ -3014,7 +3014,7 @@ of little-endian uint256s.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line308">line 308</a>
<a href="bcoin_input.js.html">bcoin/input.js</a>, <a href="bcoin_input.js.html#line305">line 305</a>
</li></ul></dd>
@ -3083,7 +3083,7 @@ of little-endian uint256s.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/KeyPair.html

@ -2145,7 +2145,7 @@ for JSON serialization.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/LRU.html

@ -1520,7 +1520,7 @@
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:14 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

8
docs/LoadRequest.html

@ -232,7 +232,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line2254">line 2254</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line2250">line 2250</a>
</li></ul></dd>
@ -333,7 +333,7 @@ Remove from queue and map. Clear timeout.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line2292">line 2292</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line2288">line 2288</a>
</li></ul></dd>
@ -415,7 +415,7 @@ Remove from queue and map. Clear timeout.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line2274">line 2274</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line2270">line 2270</a>
</li></ul></dd>
@ -463,7 +463,7 @@ Remove from queue and map. Clear timeout.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/Locker.html

@ -960,7 +960,7 @@ to resolve the queue.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:13 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/LowlevelUp.html

@ -1843,7 +1843,7 @@ lowers memory usage.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:14 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/MTX.html

@ -11382,7 +11382,7 @@ if coinbase). Note that this is not cached.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:45 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:14 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/Mempool.html

@ -6298,7 +6298,7 @@ named &quot;DoesThisTransactionExist()&quot;.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:14 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

30
docs/MerkleBlock.html

@ -720,7 +720,7 @@ number will never be negative.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line276">line 276</a>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line278">line 278</a>
</li></ul></dd>
@ -898,7 +898,7 @@ merkle tree.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line303">line 303</a>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line305">line 305</a>
</li></ul></dd>
@ -1090,7 +1090,7 @@ merkle tree.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line290">line 290</a>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line292">line 292</a>
</li></ul></dd>
@ -1239,7 +1239,7 @@ merkle tree.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line398">line 398</a>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line400">line 400</a>
</li></ul></dd>
@ -1444,7 +1444,7 @@ merkle tree.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line230">line 230</a>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line232">line 232</a>
</li></ul></dd>
@ -1544,7 +1544,7 @@ merkle tree.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line104">line 104</a>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line106">line 106</a>
</li></ul></dd>
@ -1649,7 +1649,7 @@ merkle tree.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line93">line 93</a>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line95">line 95</a>
</li></ul></dd>
@ -1978,7 +1978,7 @@ merkle tree.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line118">line 118</a>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line120">line 120</a>
</li></ul></dd>
@ -2079,7 +2079,7 @@ user-friendly representation of the data.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line240">line 240</a>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line242">line 242</a>
</li></ul></dd>
@ -2284,7 +2284,7 @@ user-friendly representation of the data.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line66">line 66</a>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line68">line 68</a>
</li></ul></dd>
@ -2384,7 +2384,7 @@ user-friendly representation of the data.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line75">line 75</a>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line77">line 77</a>
</li></ul></dd>
@ -2484,7 +2484,7 @@ user-friendly representation of the data.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line84">line 84</a>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line86">line 86</a>
</li></ul></dd>
@ -2782,7 +2782,7 @@ property of all transactions within the block.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line258">line 258</a>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line260">line 260</a>
</li></ul></dd>
@ -3228,7 +3228,7 @@ MerkleBlock#tx and into MerkleBlock#txMap.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line134">line 134</a>
<a href="bcoin_merkleblock.js.html">bcoin/merkleblock.js</a>, <a href="bcoin_merkleblock.js.html#line136">line 136</a>
</li></ul></dd>
@ -3294,7 +3294,7 @@ MerkleBlock#tx and into MerkleBlock#txMap.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:14 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/Miner.html

@ -1126,7 +1126,7 @@ for faster linked code.</p></td>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:14 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/MinerBlock.html

@ -1530,7 +1530,7 @@ if segwit is enabled).</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:44 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:14 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/Node.html

@ -203,7 +203,7 @@ Node-like object inherits.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:45 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:14 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/Output.html

@ -1952,7 +1952,7 @@ for JSON serialization.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:45 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:14 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

6
docs/Parser.html

@ -3526,7 +3526,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_protocol_parser.js.html">bcoin/protocol/parser.js</a>, <a href="bcoin_protocol_parser.js.html#line1396">line 1396</a>
<a href="bcoin_protocol_parser.js.html">bcoin/protocol/parser.js</a>, <a href="bcoin_protocol_parser.js.html#line157">line 157</a>
</li></ul></dd>
@ -3678,7 +3678,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_protocol_parser.js.html">bcoin/protocol/parser.js</a>, <a href="bcoin_protocol_parser.js.html#line157">line 157</a>
<a href="bcoin_protocol_parser.js.html">bcoin/protocol/parser.js</a>, <a href="bcoin_protocol_parser.js.html#line1396">line 1396</a>
</li></ul></dd>
@ -6896,7 +6896,7 @@ of <code>{cmd:String, length:Number, checksum:Number}</code>.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:45 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:14 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/Peer.html

@ -3693,7 +3693,7 @@ will use <code>options.createSocket</code> if provided.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:45 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:14 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

62
docs/Pool.html

@ -976,7 +976,7 @@ Only deal with witness peers.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line2117">line 2117</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line2113">line 2113</a>
</li></ul></dd>
@ -1148,7 +1148,7 @@ Only deal with witness peers.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1358">line 1358</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1361">line 1361</a>
</li></ul></dd>
@ -1306,7 +1306,7 @@ or timeout.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1866">line 1866</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1862">line 1862</a>
</li></ul></dd>
@ -1437,7 +1437,7 @@ or timeout.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1917">line 1917</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1913">line 1913</a>
</li></ul></dd>
@ -1673,7 +1673,7 @@ or timeout.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1997">line 1997</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1993">line 1993</a>
</li></ul></dd>
@ -1958,7 +1958,7 @@ or timeout.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1742">line 1742</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1740">line 1740</a>
</li></ul></dd>
@ -2462,7 +2462,7 @@ in the chain before requesting.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1583">line 1583</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1586">line 1586</a>
</li></ul></dd>
@ -2914,7 +2914,7 @@ in the chain before requesting.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1961">line 1961</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1957">line 1957</a>
</li></ul></dd>
@ -3076,7 +3076,7 @@ is going to use this seed is high-priority.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line2028">line 2028</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line2024">line 2024</a>
</li></ul></dd>
@ -3272,7 +3272,7 @@ of <code>{start:Number, end:Number}</code>.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1772">line 1772</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1770">line 1770</a>
</li></ul></dd>
@ -3426,7 +3426,7 @@ of <code>{start:Number, end:Number}</code>.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1982">line 1982</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1978">line 1978</a>
</li></ul></dd>
@ -3557,7 +3557,7 @@ of <code>{start:Number, end:Number}</code>.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line2185">line 2185</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line2181">line 2181</a>
</li></ul></dd>
@ -3976,7 +3976,7 @@ of <code>{start:Number, end:Number}</code>.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line2217">line 2217</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line2213">line 2213</a>
</li></ul></dd>
@ -4117,7 +4117,7 @@ of <code>{start:Number, end:Number}</code>.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line2139">line 2139</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line2135">line 2135</a>
</li></ul></dd>
@ -4266,7 +4266,7 @@ of <code>{start:Number, end:Number}</code>.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1386">line 1386</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1389">line 1389</a>
</li></ul></dd>
@ -4779,7 +4779,7 @@ of <code>{start:Number, end:Number}</code>.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1512">line 1512</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1515">line 1515</a>
</li></ul></dd>
@ -4934,7 +4934,7 @@ active transaction's timestamp/height (SPV-only).</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1444">line 1444</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1447">line 1447</a>
</li></ul></dd>
@ -5089,7 +5089,7 @@ or timeout.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1760">line 1760</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1758">line 1758</a>
</li></ul></dd>
@ -5244,7 +5244,7 @@ or timeout.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1851">line 1851</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1847">line 1847</a>
</li></ul></dd>
@ -5398,7 +5398,7 @@ or timeout.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line2166">line 2166</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line2162">line 2162</a>
</li></ul></dd>
@ -5554,7 +5554,7 @@ or timeout.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line2101">line 2101</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line2097">line 2097</a>
</li></ul></dd>
@ -5767,7 +5767,7 @@ or timeout.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line612">line 612</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line615">line 615</a>
</li></ul></dd>
@ -5980,7 +5980,7 @@ or timeout.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line633">line 633</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line636">line 636</a>
</li></ul></dd>
@ -6111,7 +6111,7 @@ or timeout.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1308">line 1308</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1311">line 1311</a>
</li></ul></dd>
@ -6242,7 +6242,7 @@ or timeout.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1410">line 1410</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1413">line 1413</a>
</li></ul></dd>
@ -6373,7 +6373,7 @@ or timeout.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1431">line 1431</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1434">line 1434</a>
</li></ul></dd>
@ -6455,7 +6455,7 @@ or timeout.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1333">line 1333</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1336">line 1336</a>
</li></ul></dd>
@ -6586,7 +6586,7 @@ or timeout.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1277">line 1277</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1280">line 1280</a>
</li></ul></dd>
@ -6717,7 +6717,7 @@ or timeout.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1400">line 1400</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1403">line 1403</a>
</li></ul></dd>
@ -6848,7 +6848,7 @@ or timeout.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1420">line 1420</a>
<a href="bcoin_pool.js.html">bcoin/pool.js</a>, <a href="bcoin_pool.js.html#line1423">line 1423</a>
</li></ul></dd>
@ -6896,7 +6896,7 @@ or timeout.</p></td>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:45 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:14 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/Profile.html

@ -513,7 +513,7 @@
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:45 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:14 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/Provider.html

@ -2941,7 +2941,7 @@ implementing a provider).</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:45 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:14 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/SPVNode.html

@ -1919,7 +1919,7 @@ bitcoind nodes).</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:45 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:15 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

192
docs/Script.html

@ -325,7 +325,7 @@ be changed in the future.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line795">line 795</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line797">line 797</a>
</li></ul></dd>
@ -482,7 +482,7 @@ account negative zero, minimaldata, etc.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1814">line 1814</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1829">line 1829</a>
</li></ul></dd>
@ -641,7 +641,7 @@ assert.deepEqual(Script.array(new bn(0xffee)), new Buffer([0xee, 0xff]));</code>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1729">line 1729</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1743">line 1743</a>
</li></ul></dd>
@ -843,7 +843,7 @@ assert.deepEqual(Script.array(new bn(0xffee)), new Buffer([0xee, 0xff]));</code>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1665">line 1665</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1679">line 1679</a>
</li></ul></dd>
@ -1036,7 +1036,7 @@ assert.deepEqual(Script.array(new bn(0xffee)), new Buffer([0xee, 0xff]));</code>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1912">line 1912</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2002">line 2002</a>
</li></ul></dd>
@ -1188,7 +1188,7 @@ assert.deepEqual(Script.array(new bn(0xffee)), new Buffer([0xee, 0xff]));</code>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1893">line 1893</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1983">line 1983</a>
</li></ul></dd>
@ -1390,7 +1390,7 @@ assert.deepEqual(Script.array(new bn(0xffee)), new Buffer([0xee, 0xff]));</code>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1692">line 1692</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1706">line 1706</a>
</li></ul></dd>
@ -1648,7 +1648,7 @@ and high S values.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3733">line 3733</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3826">line 3826</a>
</li></ul></dd>
@ -1797,7 +1797,7 @@ and high S values.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3706">line 3706</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3799">line 3799</a>
</li></ul></dd>
@ -1950,7 +1950,7 @@ and high S values.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2089">line 2089</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2179">line 2179</a>
</li></ul></dd>
@ -2145,7 +2145,7 @@ and high S values.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2018">line 2018</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2108">line 2108</a>
</li></ul></dd>
@ -2294,7 +2294,7 @@ and high S values.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2060">line 2060</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2150">line 2150</a>
</li></ul></dd>
@ -2670,7 +2670,7 @@ and high S values.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2684">line 2684</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2777">line 2777</a>
</li></ul></dd>
@ -2824,7 +2824,7 @@ and high S values.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1990">line 1990</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2080">line 2080</a>
</li></ul></dd>
@ -2973,7 +2973,7 @@ and high S values.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2000">line 2000</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2090">line 2090</a>
</li></ul></dd>
@ -3122,7 +3122,7 @@ and high S values.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2045">line 2045</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2135">line 2135</a>
</li></ul></dd>
@ -3294,7 +3294,7 @@ and high S values.</p></td>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2076">line 2076</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2166">line 2166</a>
</li></ul></dd>
@ -3460,7 +3460,7 @@ Buffer slices. Larger buffer slices should
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3815">line 3815</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3908">line 3908</a>
</li></ul></dd>
@ -3618,7 +3618,7 @@ code's pushdatas to minimaldata representations.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3885">line 3885</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3974">line 3974</a>
</li></ul></dd>
@ -3771,7 +3771,7 @@ code's pushdatas to minimaldata representations.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3248">line 3248</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3341">line 3341</a>
</li></ul></dd>
@ -3925,7 +3925,7 @@ string into a script object.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3393">line 3393</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3486">line 3486</a>
</li></ul></dd>
@ -4088,7 +4088,7 @@ Script.fromSymbolic(['OP_1', new Buffer([2]), 'OP_ADD']);</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3481">line 3481</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3574">line 3574</a>
</li></ul></dd>
@ -4200,7 +4200,7 @@ Script.fromSymbolic(['OP_1', new Buffer([2]), 'OP_ADD']);</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2893">line 2893</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2986">line 2986</a>
</li></ul></dd>
@ -4353,7 +4353,7 @@ Script.fromSymbolic(['OP_1', new Buffer([2]), 'OP_ADD']);</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2118">line 2118</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2208">line 2208</a>
</li></ul></dd>
@ -4509,7 +4509,7 @@ Script.fromSymbolic(['OP_1', new Buffer([2]), 'OP_ADD']);</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3444">line 3444</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3537">line 3537</a>
</li></ul></dd>
@ -4658,7 +4658,7 @@ Script.fromSymbolic(['OP_1', new Buffer([2]), 'OP_ADD']);</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1951">line 1951</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2041">line 2041</a>
</li></ul></dd>
@ -4819,7 +4819,7 @@ Script.fromSymbolic(['OP_1', new Buffer([2]), 'OP_ADD']);</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2991">line 2991</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3084">line 3084</a>
</li></ul></dd>
@ -4980,7 +4980,7 @@ Script.fromSymbolic(['OP_1', new Buffer([2]), 'OP_ADD']);</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2959">line 2959</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3052">line 3052</a>
</li></ul></dd>
@ -5129,7 +5129,7 @@ Script.fromSymbolic(['OP_1', new Buffer([2]), 'OP_ADD']);</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3205">line 3205</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3298">line 3298</a>
</li></ul></dd>
@ -5291,7 +5291,7 @@ this does not verify the format of the key, only the length.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2970">line 2970</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3063">line 3063</a>
</li></ul></dd>
@ -5440,7 +5440,7 @@ this does not verify the format of the key, only the length.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3039">line 3039</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3132">line 3132</a>
</li></ul></dd>
@ -5589,7 +5589,7 @@ this does not verify the format of the key, only the length.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3228">line 3228</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3321">line 3321</a>
</li></ul></dd>
@ -5751,7 +5751,7 @@ check for buffer underflows.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1879">line 1879</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1969">line 1969</a>
</li></ul></dd>
@ -5900,7 +5900,7 @@ check for buffer underflows.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3973">line 3973</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line4062">line 4062</a>
</li></ul></dd>
@ -6062,7 +6062,7 @@ this does not verify the format of the signature, only the length.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2981">line 2981</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3074">line 3074</a>
</li></ul></dd>
@ -6211,7 +6211,7 @@ this does not verify the format of the signature, only the length.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3114">line 3114</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3207">line 3207</a>
</li></ul></dd>
@ -6410,7 +6410,7 @@ this does not verify the format of the signature, only the length.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3016">line 3016</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3109">line 3109</a>
</li></ul></dd>
@ -6606,7 +6606,7 @@ this will allow zero-length signatures.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3070">line 3070</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3163">line 3163</a>
</li></ul></dd>
@ -6767,7 +6767,7 @@ this will allow zero-length signatures.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3002">line 3002</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3095">line 3095</a>
</li></ul></dd>
@ -6992,7 +6992,7 @@ this will allow zero-length signatures.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1758">line 1758</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1772">line 1772</a>
</li></ul></dd>
@ -7159,7 +7159,7 @@ as an options object for Script).</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3783">line 3783</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3876">line 3876</a>
</li></ul></dd>
@ -7358,7 +7358,7 @@ as an options object for Script).</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3766">line 3766</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3859">line 3859</a>
</li></ul></dd>
@ -7511,7 +7511,7 @@ as an options object for Script).</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3463">line 3463</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3556">line 3556</a>
</li></ul></dd>
@ -7779,7 +7779,7 @@ as an options object for Script).</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3519">line 3519</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3612">line 3612</a>
</li></ul></dd>
@ -8022,7 +8022,7 @@ the witness to a stack and execute the program.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3633">line 3633</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3726">line 3726</a>
</li></ul></dd>
@ -8104,7 +8104,7 @@ the witness to a stack and execute the program.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line836">line 836</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line838">line 838</a>
</li></ul></dd>
@ -8257,7 +8257,7 @@ the witness to a stack and execute the program.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1979">line 1979</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2069">line 2069</a>
</li></ul></dd>
@ -8363,7 +8363,7 @@ This allows it to be hashed for scripthashes.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line856">line 856</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line858">line 858</a>
</li></ul></dd>
@ -8658,7 +8658,7 @@ This allows it to be hashed for scripthashes.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line910">line 910</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line912">line 912</a>
</li></ul></dd>
@ -8764,7 +8764,7 @@ they are pubkeyhash and scripthashes respectively.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2282">line 2282</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2372">line 2372</a>
</li></ul></dd>
@ -8869,7 +8869,7 @@ standardness verification.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3353">line 3353</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3446">line 3446</a>
</li></ul></dd>
@ -8969,7 +8969,7 @@ standardness verification.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2927">line 2927</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3020">line 3020</a>
</li></ul></dd>
@ -9074,7 +9074,7 @@ standardness verification.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2884">line 2884</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2977">line 2977</a>
</li></ul></dd>
@ -9178,7 +9178,7 @@ standardness verification.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2517">line 2517</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2610">line 2610</a>
</li></ul></dd>
@ -9283,7 +9283,7 @@ they are pubkeyhash and scripthashes respectively.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2344">line 2344</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2434">line 2434</a>
</li></ul></dd>
@ -9387,7 +9387,7 @@ This method is not 100% reliable.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2243">line 2243</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2333">line 2333</a>
</li></ul></dd>
@ -9491,7 +9491,7 @@ This method is not 100% reliable.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2316">line 2316</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2406">line 2406</a>
</li></ul></dd>
@ -9595,7 +9595,7 @@ This method is not 100% reliable.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2634">line 2634</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2727">line 2727</a>
</li></ul></dd>
@ -9695,7 +9695,7 @@ This method is not 100% reliable.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2102">line 2102</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2192">line 2192</a>
</li></ul></dd>
@ -9852,7 +9852,7 @@ take into account the <code>n</code> value for OP_CHECKMULTISIG(VERIFY).</p></td
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3317">line 3317</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3410">line 3410</a>
</li></ul></dd>
@ -9956,7 +9956,7 @@ take into account the <code>n</code> value for OP_CHECKMULTISIG(VERIFY).</p></td
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2230">line 2230</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2320">line 2320</a>
</li></ul></dd>
@ -10105,7 +10105,7 @@ take into account the <code>n</code> value for OP_CHECKMULTISIG(VERIFY).</p></td
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3431">line 3431</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3524">line 3524</a>
</li></ul></dd>
@ -10269,7 +10269,7 @@ code separators are present.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line875">line 875</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line877">line 877</a>
</li></ul></dd>
@ -10373,7 +10373,7 @@ code separators are present.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2135">line 2135</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2225">line 2225</a>
</li></ul></dd>
@ -10480,7 +10480,7 @@ or 'unknown').</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2576">line 2576</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2669">line 2669</a>
</li></ul></dd>
@ -10632,7 +10632,7 @@ or 'unknown').</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1868">line 1868</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1958">line 1958</a>
</li></ul></dd>
@ -10736,7 +10736,7 @@ or 'unknown').</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line845">line 845</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line847">line 847</a>
</li></ul></dd>
@ -11031,7 +11031,7 @@ or 'unknown').</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line935">line 935</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line937">line 937</a>
</li></ul></dd>
@ -11168,7 +11168,7 @@ but coinbases.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2493">line 2493</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2586">line 2586</a>
</li></ul></dd>
@ -11268,7 +11268,7 @@ but coinbases.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2397">line 2397</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2487">line 2487</a>
</li></ul></dd>
@ -11369,7 +11369,7 @@ This method is not 100% reliable.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2793">line 2793</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2886">line 2886</a>
</li></ul></dd>
@ -11470,7 +11470,7 @@ fail if the pushdata is greater than 80 bytes.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2458">line 2458</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2551">line 2551</a>
</li></ul></dd>
@ -11570,7 +11570,7 @@ fail if the pushdata is greater than 80 bytes.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2372">line 2372</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2462">line 2462</a>
</li></ul></dd>
@ -11670,7 +11670,7 @@ fail if the pushdata is greater than 80 bytes.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2383">line 2383</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2473">line 2473</a>
</li></ul></dd>
@ -11771,7 +11771,7 @@ This method is not 100% reliable.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2777">line 2777</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2870">line 2870</a>
</li></ul></dd>
@ -11872,7 +11872,7 @@ This method is not 100% reliable.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2763">line 2763</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2856">line 2856</a>
</li></ul></dd>
@ -11973,7 +11973,7 @@ Push ops are: OP_1NEGATE, OP_0-OP_16 and all PUSHDATAs.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3295">line 3295</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3388">line 3388</a>
</li></ul></dd>
@ -12076,7 +12076,7 @@ encoding. Using <code>OP_HASH160 OP_PUSHDATA1 [hash] OP_EQUAL</code> will
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2438">line 2438</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2531">line 2531</a>
</li></ul></dd>
@ -12177,7 +12177,7 @@ This method is not 100% reliable.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2830">line 2830</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2923">line 2923</a>
</li></ul></dd>
@ -12277,7 +12277,7 @@ This method is not 100% reliable.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2166">line 2166</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2256">line 2256</a>
</li></ul></dd>
@ -12378,7 +12378,7 @@ with non-mandatory flags).</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2190">line 2190</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2280">line 2280</a>
</li></ul></dd>
@ -12478,7 +12478,7 @@ with non-mandatory flags).</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2157">line 2157</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2247">line 2247</a>
</li></ul></dd>
@ -12579,7 +12579,7 @@ This method is not 100% reliable.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2662">line 2662</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2755">line 2755</a>
</li></ul></dd>
@ -12681,7 +12681,7 @@ witness v0 programs.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2531">line 2531</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2624">line 2624</a>
</li></ul></dd>
@ -12781,7 +12781,7 @@ witness v0 programs.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2609">line 2609</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2702">line 2702</a>
</li></ul></dd>
@ -12881,7 +12881,7 @@ witness v0 programs.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2621">line 2621</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line2714">line 2714</a>
</li></ul></dd>
@ -12939,7 +12939,12 @@ witness v0 programs.</p>
<div class="description">
<p>Remove all matched data elements from
a script's code (used to remove signatures
before verification).</p>
before verification). Note that this
compares and removes data on the <em>byte level</em>.
It also reserializes the data to a single
script with minimaldata encoding beforehand.
A signature will <em>not</em> be removed if it is
not minimaldata.</p>
</div>
@ -13032,13 +13037,22 @@ before verification).</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1846">line 1846</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line1884">line 1884</a>
</li></ul></dd>
<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li><a href="https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2014-November/006878.html">https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2014-November/006878.html</a></li>
<li><a href="https://test.webbtc.com/tx/19aa42fee0fa57c45d3b16488198b27caaacc4ff5794510d0c17f173f05587ff">https://test.webbtc.com/tx/19aa42fee0fa57c45d3b16488198b27caaacc4ff5794510d0c17f173f05587ff</a></li>
</ul>
</dd>
</dl>
@ -13102,7 +13116,7 @@ before verification).</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:45 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:14 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

4
docs/ScriptError.html

@ -342,7 +342,7 @@ potentially pertaining to Script execution.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line3993">line 3993</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line4082">line 4082</a>
</li></ul></dd>
@ -415,7 +415,7 @@ potentially pertaining to Script execution.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:45 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:14 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/Snapshot.html

@ -680,7 +680,7 @@
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:45 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:14 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

54
docs/Stack.html

@ -445,7 +445,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line777">line 777</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line779">line 779</a>
</li></ul></dd>
@ -649,7 +649,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line532">line 532</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line534">line 534</a>
</li></ul></dd>
@ -746,7 +746,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line541">line 541</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line543">line 543</a>
</li></ul></dd>
@ -843,7 +843,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line666">line 666</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line668">line 668</a>
</li></ul></dd>
@ -940,7 +940,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line553">line 553</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line555">line 555</a>
</li></ul></dd>
@ -1037,7 +1037,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line679">line 679</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line681">line 681</a>
</li></ul></dd>
@ -1134,7 +1134,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line697">line 697</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line699">line 699</a>
</li></ul></dd>
@ -1231,7 +1231,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line507">line 507</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line509">line 509</a>
</li></ul></dd>
@ -1377,7 +1377,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line449">line 449</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line451">line 451</a>
</li></ul></dd>
@ -1687,7 +1687,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line519">line 519</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line521">line 521</a>
</li></ul></dd>
@ -1888,7 +1888,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line565">line 565</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line567">line 567</a>
</li></ul></dd>
@ -1985,7 +1985,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line577">line 577</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line579">line 579</a>
</li></ul></dd>
@ -2082,7 +2082,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line717">line 717</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line719">line 719</a>
</li></ul></dd>
@ -2228,7 +2228,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line590">line 590</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line592">line 592</a>
</li></ul></dd>
@ -2325,7 +2325,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line429">line 429</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line431">line 431</a>
</li></ul></dd>
@ -2644,7 +2644,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line600">line 600</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line602">line 602</a>
</li></ul></dd>
@ -2741,7 +2741,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line629">line 629</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line631">line 631</a>
</li></ul></dd>
@ -2838,7 +2838,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line735">line 735</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line737">line 737</a>
</li></ul></dd>
@ -3007,7 +3007,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line473">line 473</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line475">line 475</a>
</li></ul></dd>
@ -3107,7 +3107,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line439">line 439</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line441">line 441</a>
</li></ul></dd>
@ -3217,7 +3217,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line764">line 764</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line766">line 766</a>
</li></ul></dd>
@ -3723,7 +3723,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line642">line 642</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line644">line 644</a>
</li></ul></dd>
@ -3820,7 +3820,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line754">line 754</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line756">line 756</a>
</li></ul></dd>
@ -3917,7 +3917,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line495">line 495</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line497">line 497</a>
</li></ul></dd>
@ -4064,7 +4064,7 @@ the top of the stack.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line462">line 462</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line464">line 464</a>
</li></ul></dd>
@ -4172,7 +4172,7 @@ the top of the stack.</p>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line654">line 654</a>
<a href="bcoin_script.js.html">bcoin/script.js</a>, <a href="bcoin_script.js.html#line656">line 656</a>
</li></ul></dd>
@ -4391,7 +4391,7 @@ the top of the stack.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:45 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:15 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/TX.html

@ -8669,7 +8669,7 @@ if coinbase).</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:45 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:15 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/TXDB.html

@ -7355,7 +7355,7 @@ to disconnect.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:45 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:15 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

4
docs/VerifyError.html

@ -360,7 +360,7 @@ block verification error. Ultimately used to send
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="bcoin_utils.js.html">bcoin/utils.js</a>, <a href="bcoin_utils.js.html#line2787">line 2787</a>
<a href="bcoin_utils.js.html">bcoin/utils.js</a>, <a href="bcoin_utils.js.html#line2758">line 2758</a>
</li></ul></dd>
@ -433,7 +433,7 @@ block verification error. Ultimately used to send
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:45 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:15 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/Wallet.html

@ -11518,7 +11518,7 @@ master key based on the <code>passphrase</code> option.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:45 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:15 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/WalletDB.html

@ -5269,7 +5269,7 @@ has been derived. Save to address table. Save wallet.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:45 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:15 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/Witness.html

@ -2118,7 +2118,7 @@ a witness program.</p>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:45 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:15 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/bcoin.js.html

@ -62,7 +62,7 @@ module.exports = function BCoin(options) {
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

8
docs/bcoin_abstractblock.js.html

@ -65,8 +65,8 @@ function AbstractBlock(data) {
this.type = null;
this.version = data.version;
this.prevBlock = utils.toHex(data.prevBlock);
this.merkleRoot = utils.toHex(data.merkleRoot);
this.prevBlock = data.prevBlock;
this.merkleRoot = data.merkleRoot;
this.ts = data.ts;
this.bits = data.bits;
this.nonce = data.nonce;
@ -92,7 +92,7 @@ AbstractBlock.prototype.hash = function hash(enc) {
if (!this._hash)
this._hash = utils.dsha256(this.abbr());
return enc === 'hex' ? utils.toHex(this._hash) : this._hash;
return enc === 'hex' ? this._hash.toString('hex') : this._hash;
};
/**
@ -207,7 +207,7 @@ return AbstractBlock;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/bcoin_address.js.html

@ -853,7 +853,7 @@ return Address;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

10
docs/bcoin_block.js.html

@ -267,7 +267,7 @@ Block.prototype.getMerkleRoot = function getMerkleRoot(enc) {
return;
return enc === 'hex'
? utils.toHex(root)
? root.toString('hex')
: root;
};
@ -297,7 +297,7 @@ Block.prototype.getCommitmentHash = function getCommitmentHash(enc) {
commitmentHash = utils.dsha256(Buffer.concat([witnessRoot, witnessNonce]));
return enc === 'hex'
? utils.toHex(commitmentHash)
? commitmentHash.toString('hex')
: commitmentHash;
};
@ -339,7 +339,7 @@ Block.prototype.__defineGetter__('commitmentHash', function() {
}
if (commitmentHash)
this._commitmentHash = utils.toHex(commitmentHash);
this._commitmentHash = commitmentHash.toString('hex');
return this._commitmentHash;
});
@ -599,7 +599,7 @@ Block.prototype.toRaw = function toRaw(enc) {
var data = this.render();
if (enc === 'hex')
data = utils.toHex(data);
data = data.toString('hex');
return data;
};
@ -750,7 +750,7 @@ return Block;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

11
docs/bcoin_bloom.js.html

@ -34,6 +34,7 @@
*/
var utils = require('./utils');
var assert = utils.assert;
/**
* Bloom Filter
@ -95,7 +96,8 @@ Bloom.prototype.reset = function reset() {
Bloom.prototype.add = function add(val, enc) {
var i, bit, pos, shift;
val = utils.toBuffer(val, enc);
if (typeof val === 'string')
val = new Buffer(val, enc);
for (i = 0; i &lt; this.n; i++) {
bit = this.hash(val, i);
@ -117,7 +119,8 @@ Bloom.prototype.add = function add(val, enc) {
Bloom.prototype.test = function test(val, enc) {
var i, bit, pos, shift;
val = utils.toBuffer(val, enc);
if (typeof val === 'string')
val = new Buffer(val, enc);
for (i = 0; i &lt; this.n; i++) {
bit = this.hash(val, i);
@ -204,7 +207,7 @@ function murmur(data, seed) {
var hash = seed;
var i, w, r, j;
data = utils.toBuffer(data);
assert(Buffer.isBuffer(data));
for (i = 0; i + 4 &lt;= data.length; i += 4) {
w = data[i]
@ -277,7 +280,7 @@ module.exports = Bloom;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/bcoin_bst.js.html

@ -788,7 +788,7 @@ module.exports = BST;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

69
docs/bcoin_chain.js.html

@ -330,7 +330,7 @@ Chain.prototype._preload = function _preload(callback) {
function parseHeader(buf) {
var headers = bcoin.protocol.parser.parseBlockHeaders(buf);
headers.hash = utils.toHex(utils.dsha256(buf.slice(0, 80)));
headers.hash = utils.dsha256(buf.slice(0, 80)).toString('hex');
return headers;
}
@ -878,7 +878,7 @@ Chain.prototype._checkInputs = function _checkInputs(block, prev, flags, callbac
100));
}
if (self.options.verifySync !== true)
if (self.options.verifyAsync)
continue;
if (!scriptCheck)
@ -886,6 +886,13 @@ Chain.prototype._checkInputs = function _checkInputs(block, prev, flags, callbac
// Verify the scripts
if (!tx.verify(j, true, flags)) {
bcoin.debug(
'Transaction failed consensus verification: %s',
tx.rhash);
bcoin.debug('TX:');
bcoin.debug(tx);
bcoin.debug('Input:');
bcoin.debug(tx.inputs[j]);
assert(!historical, 'BUG: Invalid inputs in historical data!');
return callback(new VerifyError(block,
'invalid',
@ -905,7 +912,7 @@ Chain.prototype._checkInputs = function _checkInputs(block, prev, flags, callbac
if (block.getClaimed().cmp(block.getReward()) > 0)
return callback(new VerifyError(block, 'invalid', 'bad-cb-amount', 100));
if (self.options.verifySync === true)
if (!self.options.verifyAsync)
return callback();
if (!scriptCheck)
@ -932,11 +939,6 @@ Chain.prototype._checkInputs = function _checkInputs(block, prev, flags, callbac
};
Chain.prototype._getCachedHeight = function _getCachedHeight(hash) {
if (Buffer.isBuffer(hash))
hash = utils.toHex(hash);
else if (hash.hash)
hash = hash.hash('hex');
if (this.db.hasCache(hash))
return this.db.getCache(hash).height;
@ -1701,7 +1703,7 @@ Chain.prototype.purgePending = function purgePending() {
/**
* Test the chain to see if it has a block, orphan, or pending block.
* @param {Block|MerkleBlock|Buffer|Hash} hash
* @param {Hash} hash
* @param {Function} callback - Returns [Error, Boolean].
*/
@ -1780,14 +1782,6 @@ Chain.prototype.byTime = function byTime(ts, callback, force) {
*/
Chain.prototype.hasBlock = function hasBlock(hash, callback) {
if (typeof hash === 'number')
return this.db.has(hash, callback);
if (Buffer.isBuffer(hash))
hash = utils.toHex(hash);
else if (hash.hash)
hash = hash.hash('hex');
return this.db.has(hash, callback);
};
@ -1808,11 +1802,6 @@ Chain.prototype.hasOrphan = function hasOrphan(hash) {
*/
Chain.prototype.hasPending = function hasPending(hash) {
if (Buffer.isBuffer(hash))
hash = utils.toHex(hash);
else if (hash.hash)
hash = hash.hash('hex');
return this.locker.hasPending(hash);
};
@ -1823,14 +1812,6 @@ Chain.prototype.hasPending = function hasPending(hash) {
*/
Chain.prototype.getEntry = function getEntry(hash, callback) {
if (typeof hash === 'number')
return this.db.get(hash, callback);
if (Buffer.isBuffer(hash))
hash = utils.toHex(hash);
else if (hash.hash)
hash = hash.hash('hex');
return this.db.get(hash, callback);
};
@ -1841,11 +1822,6 @@ Chain.prototype.getEntry = function getEntry(hash, callback) {
*/
Chain.prototype.getOrphan = function getOrphan(hash) {
if (Buffer.isBuffer(hash))
hash = utils.toHex(hash);
else if (hash.hash)
hash = hash.hash('hex');
return this.orphan.bmap[hash] || null;
};
@ -1886,9 +1862,16 @@ Chain.prototype.isInitial = function isInitial() {
*/
Chain.prototype.getProgress = function getProgress() {
var start, current, end;
if (!this.tip)
return 0;
return Math.min(1, this.tip.ts / (utils.now() - 40 * 60));
start = network.genesis.ts;
current = this.tip.ts - start;
end = utils.now() - start - 40 * 60;
return Math.min(1, current / end);
};
/**
@ -1963,13 +1946,6 @@ Chain.prototype.getLocator = function getLocator(start, callback, force) {
callback = utils.wrap(callback, unlock);
if (start) {
if (Buffer.isBuffer(start))
start = utils.toHex(start);
else if (start.hash)
start = start.hash('hex');
}
function build(err, top) {
if (err)
return callback(err);
@ -2044,11 +2020,6 @@ Chain.prototype.getLocator = function getLocator(start, callback, force) {
Chain.prototype.getOrphanRoot = function getOrphanRoot(hash) {
var root;
if (Buffer.isBuffer(hash))
hash = utils.toHex(hash);
else if (hash.hash)
hash = hash.hash('hex');
assert(hash);
while (this.orphan.bmap[hash]) {
@ -2613,7 +2584,7 @@ return Chain;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

4
docs/bcoin_chainblock.js.html

@ -477,7 +477,7 @@ ChainBlock.fromRaw = function fromRaw(chain, buf) {
var hash = utils.dsha256(buf.slice(0, 80));
return new ChainBlock(chain, {
hash: utils.toHex(hash),
hash: hash.toString('hex'),
version: p.readU32(), // Technically signed
prevBlock: p.readHash('hex'),
merkleRoot: p.readHash('hex'),
@ -569,7 +569,7 @@ return ChainBlock;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

10
docs/bcoin_chaindb.js.html

@ -287,7 +287,7 @@ ChainDB.prototype.getHash = function getHash(height, callback) {
if (hash == null)
return callback(null, null);
return callback(null, utils.toHex(hash));
return callback(null, hash.toString('hex'));
});
};
@ -522,7 +522,7 @@ ChainDB.prototype.getTip = function getTip(callback) {
if (!hash)
return callback();
return self.get(utils.toHex(hash), callback);
return self.get(hash.toString('hex'), callback);
});
};
@ -618,7 +618,7 @@ ChainDB.prototype.getNextHash = function getNextHash(hash, callback) {
if (!nextHash)
return callback();
return callback(null, utils.toHex(nextHash));
return callback(null, nextHash.toString('hex'));
});
};
@ -1612,7 +1612,7 @@ ChainDB.prototype._pruneQueue = function _pruneQueue(block, batch, callback) {
if (!hash)
return callback();
hash = utils.toHex(hash);
hash = hash.toString('hex');
self.db.get('b/b/' + hash, function(err, compact) {
if (err &amp;&amp; err.type !== 'NotFoundError')
@ -1773,7 +1773,7 @@ return ChainDB;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

12
docs/bcoin_coin.js.html

@ -91,9 +91,7 @@ function Coin(tx, index) {
this.index = options.index;
}
if (Buffer.isBuffer(this.hash))
this.hash = utils.toHex(this.hash);
assert(!this.hash || typeof this.hash === 'string');
assert(typeof this.version === 'number');
assert(utils.isFinite(this.height));
assert(bn.isBN(this.value));
@ -177,7 +175,7 @@ Coin.prototype.toJSON = function toJSON() {
version: this.version,
height: this.height,
value: utils.btc(this.value),
script: utils.toHex(this.script.encode()),
script: this.script.encode().toString('hex'),
coinbase: this.coinbase,
hash: this.hash ? utils.revHex(this.hash) : null,
index: this.index
@ -223,7 +221,7 @@ Coin.prototype.toRaw = function toRaw(enc) {
var data = bcoin.protocol.framer.coin(this, false);
if (enc === 'hex')
data = utils.toHex(data);
data = data.toString('hex');
return data;
};
@ -266,7 +264,7 @@ Coin.prototype.toExtended = function toExtended(enc) {
var data = bcoin.protocol.framer.coin(this, true);
if (enc === 'hex')
data = utils.toHex(data);
data = data.toString('hex');
return data;
};
@ -334,7 +332,7 @@ return Coin;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

5
docs/bcoin_coins.js.html

@ -59,9 +59,6 @@ function Coins(options, hash) {
if (!(this instanceof Coins))
return new Coins(options, hash);
if (Buffer.isBuffer(hash))
hash = utils.toHex(hash);
this.version = options.version;
this.height = options.height;
@ -323,7 +320,7 @@ return Coins;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/bcoin_coinview.js.html

@ -208,7 +208,7 @@ return CoinView;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/bcoin_compactblock.js.html

@ -151,7 +151,7 @@ return CompactBlock;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/bcoin_ec.js.html

@ -340,7 +340,7 @@ ec.toLowS = function toLowS(sig) {
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/bcoin_env.js.html

@ -336,7 +336,7 @@ module.exports = Environment;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/bcoin_fullnode.js.html

@ -642,7 +642,7 @@ return Fullnode;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/bcoin_hd.js.html

@ -1323,7 +1323,7 @@ return HD;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

4
docs/bcoin_headers.js.html

@ -140,7 +140,7 @@ Headers.prototype.toRaw = function toRaw(enc) {
data = this.render();
if (enc === 'hex')
data = utils.toHex(data);
data = data.toString('hex');
return data;
};
@ -205,7 +205,7 @@ return Headers;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/bcoin_http_base.js.html

@ -551,7 +551,7 @@ module.exports = HTTPBase;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

4
docs/bcoin_http_client.js.html

@ -782,7 +782,7 @@ HTTPClient.prototype.getBlock = function getBlock(hash, callback) {
*/
HTTPClient.prototype.broadcast = function broadcast(tx, callback) {
var body = { tx: utils.toHex(tx.toRaw()) };
var body = { tx: tx.toRaw('hex') };
callback = utils.ensure(callback);
@ -960,7 +960,7 @@ return HTTPClient;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/bcoin_http_provider.js.html

@ -247,7 +247,7 @@ return HTTPProvider;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/bcoin_http_request.js.html

@ -381,7 +381,7 @@ module.exports = request;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

16
docs/bcoin_http_server.js.html

@ -94,8 +94,11 @@ HTTPServer.prototype._init = function _init() {
return res.end();
}
res.setHeader('X-Bcoin-Version', constants.USER_VERSION);
res.setHeader('X-Bcoin-Agent', constants.USER_AGENT);
res.setHeader('X-Bcoin-Network', network.type);
res.setHeader('X-Bcoin-Version', constants.USER_AGENT);
res.setHeader('X-Bcoin-Height', self.node.chain.height + '');
res.setHeader('X-Bcoin-Tip', utils.revHex(self.node.chain.tip.hash));
next();
});
@ -210,8 +213,13 @@ HTTPServer.prototype._init = function _init() {
this.get('/', function(req, res, next, send) {
send(200, {
version: constants.USER_AGENT,
network: network.type
version: constants.USER_VERSION,
agent: constants.USER_AGENT,
network: network.type,
height: self.node.chain.height,
tip: utils.revHex(self.node.chain.tip.hash),
peers: self.node.pool.peers.all.length,
progress: self.node.chain.getProgress()
});
});
@ -823,7 +831,7 @@ return HTTPServer;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

13
docs/bcoin_input.js.html

@ -72,9 +72,6 @@ function Input(options, mutable) {
if (options.coin)
this.coin = bcoin.coin(options.coin);
if (Buffer.isBuffer(this.prevout.hash))
this.prevout.hash = utils.toHex(this.prevout.hash);
assert(typeof this.prevout.hash === 'string');
assert(typeof this.prevout.index === 'number');
}
@ -291,8 +288,8 @@ Input.prototype.toJSON = function toJSON() {
index: this.prevout.index
},
coin: this.coin ? this.coin.toJSON() : null,
script: utils.toHex(this.script.encode()),
witness: utils.toHex(bcoin.protocol.framer.witness(this.witness)),
script: this.script.encode().toString('hex'),
witness: bcoin.protocol.framer.witness(this.witness).toString('hex'),
sequence: this.sequence
};
};
@ -337,7 +334,7 @@ Input.prototype.toRaw = function toRaw(enc) {
var data = bcoin.protocol.framer.input(this);
if (enc === 'hex')
data = utils.toHex(data);
data = data.toString('hex');
return data;
};
@ -386,7 +383,7 @@ Input.prototype.toExtended = function toExtended(enc) {
data = p.render();
if (enc === 'hex')
data = utils.toHex(data);
data = data.toString('hex');
return data;
};
@ -461,7 +458,7 @@ return Input;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

6
docs/bcoin_keypair.js.html

@ -130,7 +130,7 @@ KeyPair.prototype.getPrivateKey = function getPrivateKey(enc) {
return this.toSecret();
if (enc === 'hex')
return utils.toHex(this.privateKey);
return this.privateKey.toString('hex');
return this.privateKey;
};
@ -146,7 +146,7 @@ KeyPair.prototype.getPublicKey = function getPublicKey(enc) {
return utils.toBase58(this.publicKey);
if (enc === 'hex')
return utils.toHex(this.publicKey);
return this.publicKey.toString('hex');
return this.publicKey;
};
@ -308,7 +308,7 @@ return KeyPair;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/bcoin_ldb.js.html

@ -178,7 +178,7 @@ return ldb;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/bcoin_locker.js.html

@ -209,7 +209,7 @@ module.exports = Locker;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/bcoin_lowlevelup.js.html

@ -218,7 +218,7 @@ module.exports = LowlevelUp;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/bcoin_lru.js.html

@ -373,7 +373,7 @@ module.exports = LRU;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

6
docs/bcoin_mempool.js.html

@ -1273,10 +1273,10 @@ Mempool.prototype.checkLocks = function checkLocks(tx, flags, callback) {
var tip = this.chain.tip;
var index = new bcoin.chainblock(this.chain, {
hash: utils.toHex(constants.ZERO_HASH),
hash: constants.NULL_HASH,
version: tip.version,
prevBlock: tip.hash,
merkleRoot: utils.toHex(constants.ZERO_HASH),
merkleRoot: constants.NULL_HASH,
ts: utils.now(),
bits: 0,
nonce: 0,
@ -1553,7 +1553,7 @@ return Mempool;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

16
docs/bcoin_merkleblock.js.html

@ -70,7 +70,9 @@ function MerkleBlock(data) {
bcoin.abstractblock.call(this, data);
this.hashes = (data.hashes || []).map(function(hash) {
return utils.toBuffer(hash, 'hex');
if (typeof hash === 'string')
hash = new Buffer(hash, 'hex');
return hash;
});
this.flags = data.flags || [];
@ -189,7 +191,7 @@ MerkleBlock.prototype.verifyPartial = function verifyPartial() {
if (flag === 0 || depth === height) {
if (depth === height) {
tx.push(utils.toHex(hashes[j]));
tx.push(hashes[j].toString('hex'));
txMap[tx[tx.length - 1]] = true;
}
return hashes[j++];
@ -201,7 +203,7 @@ MerkleBlock.prototype.verifyPartial = function verifyPartial() {
return null;
right = visit(depth + 1);
if (right &amp;&amp; utils.isEqual(right, left))
if (right &amp;&amp; utils.equals(right, left))
return null;
if (!right)
@ -210,9 +212,9 @@ MerkleBlock.prototype.verifyPartial = function verifyPartial() {
return utils.dsha256(Buffer.concat([left, right]));
}
root = utils.toHex(visit(1));
root = visit(1);
if (!root || root !== this.merkleRoot) {
if (!root || root.toString('hex') !== this.merkleRoot) {
this._partialVerified = false;
return false;
}
@ -289,7 +291,7 @@ MerkleBlock.prototype.toRaw = function toRaw(enc) {
data = this.render();
if (enc === 'hex')
data = utils.toHex(data);
data = data.toString('hex');
return data;
};
@ -447,7 +449,7 @@ return MerkleBlock;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

6
docs/bcoin_miner.js.html

@ -146,7 +146,7 @@ Miner.prototype._init = function _init() {
block.height,
block.hash('hex'));
// Emit the block hex as a failsafe (in case we can't send it)
bcoin.debug('Raw: %s', utils.toHex(block.render()));
bcoin.debug('Raw: %s', block.render().toString('hex'));
});
this.on('status', function(stat) {
@ -441,7 +441,7 @@ MinerBlock.prototype.updateCommitment = function updateCommitment() {
*/
MinerBlock.prototype.updateCoinbase = function updateCoinbase() {
this.coinbase.inputs[0].script[1] = this.extraNonce.toBuffer();
this.coinbase.inputs[0].script[1] = bcoin.script.array(this.extraNonce);
this.coinbase.outputs[0].value = this.block.getReward();
};
@ -688,7 +688,7 @@ return Miner;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

24
docs/bcoin_mtx.js.html

@ -149,7 +149,7 @@ MTX.prototype.clone = function clone() {
MTX.prototype.hash = function hash(enc) {
var hash = utils.dsha256(this.renderNormal());
return enc === 'hex' ? utils.toHex(hash) : hash;
return enc === 'hex' ? hash.toString('hex') : hash;
};
/**
@ -166,7 +166,7 @@ MTX.prototype.witnessHash = function witnessHash(enc) {
if (this.isCoinbase()) {
return enc === 'hex'
? utils.toHex(constants.ZERO_HASH)
? constants.NULL_HASH
: utils.slice(constants.ZERO_HASH);
}
@ -175,7 +175,7 @@ MTX.prototype.witnessHash = function witnessHash(enc) {
hash = utils.dsha256(this.renderWitness());
return enc === 'hex' ? utils.toHex(hash) : hash;
return enc === 'hex' ? hash.toString('hex') : hash;
};
/**
@ -333,7 +333,7 @@ MTX.prototype.scriptInput = function scriptInput(index, addr) {
// with segwit: figuring out where the redeem script and witness
// redeem scripts go.
if (prev.isScripthash()) {
if (addr.program &amp;&amp; utils.isEqual(prev.code[1], addr.programHash)) {
if (addr.program &amp;&amp; utils.equals(prev.code[1], addr.programHash)) {
// Witness program nested in regular P2SH.
redeemScript = addr.program.encode();
vector = input.witness.items;
@ -349,7 +349,7 @@ MTX.prototype.scriptInput = function scriptInput(index, addr) {
} else {
assert(false, 'Unknown program.');
}
} else if (addr.script &amp;&amp; utils.isEqual(prev.code[1], addr.scriptHash160)) {
} else if (addr.script &amp;&amp; utils.equals(prev.code[1], addr.scriptHash160)) {
// Regular P2SH.
redeemScript = addr.script.encode();
vector = input.script.code;
@ -365,14 +365,14 @@ MTX.prototype.scriptInput = function scriptInput(index, addr) {
if (prev.isWitnessScripthash()) {
// Bare P2WSH.
if (!addr.script || !utils.isEqual(prev.code[1], addr.scriptHash256))
if (!addr.script || !utils.equals(prev.code[1], addr.scriptHash256))
return false;
witnessScript = addr.script.encode();
prev = addr.script;
} else if (prev.isWitnessPubkeyhash()) {
// Bare P2WPKH.
if (!utils.isEqual(prev.code[1], addr.keyHash))
if (!utils.equals(prev.code[1], addr.keyHash))
return false;
prev = Script.createPubkeyhash(prev.code[1]);
@ -388,7 +388,7 @@ MTX.prototype.scriptInput = function scriptInput(index, addr) {
if (prev.isPubkey()) {
// P2PK
if (!utils.isEqual(prev.code[0], addr.publicKey))
if (!utils.equals(prev.code[0], addr.publicKey))
return false;
// Already has a script template (at least)
@ -398,7 +398,7 @@ MTX.prototype.scriptInput = function scriptInput(index, addr) {
vector[0] = dummy;
} else if (prev.isPubkeyhash()) {
// P2PKH
if (!utils.isEqual(prev.code[2], addr.keyHash))
if (!utils.equals(prev.code[2], addr.keyHash))
return false;
// Already has a script template (at least)
@ -563,7 +563,7 @@ MTX.prototype.signInput = function signInput(index, addr, type) {
return true;
// Make sure the pubkey is ours.
if (!utils.isEqual(addr.publicKey, prev.code[0]))
if (!utils.equals(addr.publicKey, prev.code[0]))
return false;
vector[0] = signature;
@ -578,7 +578,7 @@ MTX.prototype.signInput = function signInput(index, addr, type) {
return true;
// Make sure the pubkey hash is ours.
if (!utils.isEqual(addr.keyHash, prev.code[2]))
if (!utils.equals(addr.keyHash, prev.code[2]))
return false;
vector[0] = signature;
@ -1447,7 +1447,7 @@ return MTX;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/bcoin_node.js.html

@ -85,7 +85,7 @@ return Node;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

6
docs/bcoin_output.js.html

@ -167,7 +167,7 @@ Output.prototype.inspect = function inspect() {
Output.prototype.toJSON = function toJSON() {
return {
value: utils.btc(this.value),
script: utils.toHex(this.script.encode())
script: this.script.encode().toString('hex')
};
};
@ -205,7 +205,7 @@ Output.prototype.toRaw = function toRaw(enc) {
var data = bcoin.protocol.framer.output(this);
if (enc === 'hex')
data = utils.toHex(data);
data = data.toString('hex');
return data;
};
@ -272,7 +272,7 @@ return Output;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

10
docs/bcoin_peer.js.html

@ -1072,7 +1072,7 @@ Peer.prototype._handleGetData = function handleGetData(items) {
for (i = 0; i &lt; items.length; i++) {
item = items[i];
hash = utils.toHex(item.hash);
hash = item.hash;
entry = this._broadcast.map[hash];
isWitness = item.type &amp; constants.WITNESS_MASK;
value = null;
@ -1093,7 +1093,7 @@ Peer.prototype._handleGetData = function handleGetData(items) {
'Peer %s requested %s:%s as a %s packet.',
this.host,
entry.packetType,
utils.revHex(utils.toHex(entry.hash)),
utils.revHex(entry.hash),
isWitness ? 'witness' : 'normal');
if (isWitness)
@ -1110,7 +1110,7 @@ Peer.prototype._handleGetData = function handleGetData(items) {
utils.forEachSerial(check, function(item, next) {
var isWitness = item.type &amp; constants.WITNESS_MASK;
var type = item.type &amp; ~constants.WITNESS_MASK;
var hash = utils.toHex(item.hash);
var hash = item.hash;
var i, tx, data;
if (type === constants.inv.TX) {
@ -1365,7 +1365,7 @@ Peer.prototype._handleReject = function handleReject(payload) {
if (!payload.data)
return;
hash = utils.toHex(payload.data);
hash = payload.data;
entry = this._broadcast.map[hash];
if (!entry)
@ -1502,7 +1502,7 @@ return Peer;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

48
docs/bcoin_pool.js.html

@ -308,7 +308,7 @@ Pool.prototype._init = function _init() {
this.chain.on('orphan', function(block, data, peer) {
self.emit('orphan', data, peer);
// Resolve orphan chain
self.resolveOrphan(self.peers.load, null, data.hash);
// self.resolveOrphan(self.peers.load, null, data.hash);
});
this.chain.on('full', function() {
@ -508,6 +508,9 @@ Pool.prototype._startInterval = function _startInterval() {
if (self.chain.isFull())
return;
if (self.chain.locker.pending.length > 0)
return self._startTimer();
bcoin.debug('Stall recovery: loading again.');
// self._load();
}
@ -761,8 +764,6 @@ Pool.prototype._handleBlocks = function _handleBlocks(hashes, peer, callback) {
this._startTimer();
utils.forEachSerial(hashes, function(hash, next, i) {
hash = utils.toHex(hash);
// Resolve orphan chain.
if (self.chain.hasOrphan(hash)) {
bcoin.debug('Peer sent a hash that is already a known orphan.');
@ -806,7 +807,6 @@ Pool.prototype._handleInv = function _handleInv(hashes, peer, callback) {
return callback();
utils.forEachSerial(hashes, function(hash, next) {
hash = utils.toHex(hash);
if (self.options.headers)
self.getHeaders(peer, null, hash, next);
else
@ -858,8 +858,8 @@ Pool.prototype._handleBlock = function _handleBlock(block, peer, callback) {
peer.sendReject(block, err.code, err.reason, err.score);
if (err.reason === 'bad-prevblk') {
// self.chain.purgePending();
// self.resolveOrphan(peer, null, block.hash('hex'));
if (peer === self.peers.load)
self.resolveOrphan(peer, null, block.hash('hex'));
}
self.scheduleRequests(peer);
@ -946,7 +946,7 @@ Pool.prototype._createPeer = function _createPeer(options) {
peer.on('reject', function(payload) {
var data = payload.data
? utils.revHex(utils.toHex(payload.data))
? utils.revHex(payload.data)
: null;
bcoin.debug(
@ -971,7 +971,7 @@ Pool.prototype._createPeer = function _createPeer(options) {
for (i = 0; i &lt; items.length; i++) {
item = items[i];
req = self.request.map[utils.toHex(item.hash)];
req = self.request.map[item.hash];
if (req &amp;&amp; req.peer === peer)
item.finish();
}
@ -1016,7 +1016,7 @@ Pool.prototype._createPeer = function _createPeer(options) {
}
for (i = 0; i &lt; txs.length; i++) {
hash = utils.toHex(txs[i]);
hash = txs[i];
if (self.markTX(hash, 0))
self.getData(peer, self.tx.type, hash);
}
@ -1238,9 +1238,7 @@ Pool.prototype._addPeer = function _addPeer() {
};
Pool.prototype.markTX = function(hash, state) {
if (Buffer.isBuffer(hash))
hash = utils.toHex(hash);
else if (hash.hash)
if (hash.hash)
hash = hash.hash('hex');
if (this.tx.count >= 5000) {
@ -1292,6 +1290,11 @@ Pool.prototype._removePeer = function _removePeer(peer) {
this.peers.all.splice(i, 1);
if (this.peers.load === peer) {
Object.keys(this.request.map).forEach(function(hash) {
var item = this.request.map[hash];
if (item.peer === peer)
item.finish();
}, this);
bcoin.debug('Removed loader peer (%s).', peer.host);
this.peers.load = null;
}
@ -1312,7 +1315,7 @@ Pool.prototype.watch = function watch(id) {
}
if (id) {
hid = utils.toHex(id);
hid = id.toString('hex');
if (this.watchMap[hid]) {
this.watchMap[hid]++;
@ -1335,14 +1338,14 @@ Pool.prototype.watch = function watch(id) {
Pool.prototype.unwatch = function unwatch(id) {
var self = this;
var i;
var i, hid;
id = utils.toHex(id);
hid = id.toString('hex');
if (!this.watchMap[id] || --this.watchMap[id] !== 0)
if (!this.watchMap[hid] || --this.watchMap[hid] !== 0)
return;
delete this.watchMap[id];
delete this.watchMap[hid];
// Reset bloom filter
this.bloom.reset();
@ -1625,9 +1628,6 @@ Pool.prototype.getData = function getData(peer, type, hash, options, callback) {
if (!options)
options = {};
if (Buffer.isBuffer(hash))
hash = utils.toHex(hash);
function done(err, exists) {
if (err)
return callback(err);
@ -1744,9 +1744,7 @@ Pool.prototype._sendRequests = function _sendRequests(peer) {
Pool.prototype.fulfill = function fulfill(hash) {
var i, item;
if (Buffer.isBuffer(hash))
hash = utils.toHex(hash);
else if (hash.hash)
if (hash.hash)
hash = hash.hash('hex');
item = this.request.map[hash];
@ -1807,8 +1805,6 @@ Pool.prototype.getTX = function getTX(hash, range, callback) {
if (!this.options.spv)
return callback(new Error('Cannot get tx with full node'));
hash = utils.toHex(hash);
if (typeof range === 'function') {
callback = range;
range = null;
@ -2365,7 +2361,7 @@ return Pool;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/bcoin_profiler.js.html

@ -286,7 +286,7 @@ return profiler;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/bcoin_protocol_constants.js.html

@ -805,7 +805,7 @@ exports.confidence = {
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

6
docs/bcoin_protocol_framer.js.html

@ -82,7 +82,7 @@ Framer.prototype.header = function header(cmd, payload) {
utils.writeU32(h, network.magic, 0);
// Command
len = utils.copy(cmd, h, 4);
len = cmd.copy(h, 4);
for (i = 4 + len; i &lt; 4 + 12; i++)
h[i] = 0;
@ -90,7 +90,7 @@ Framer.prototype.header = function header(cmd, payload) {
utils.writeU32(h, payload.length, 16);
// Checksum
utils.copy(utils.checksum(payload), h, 20);
utils.checksum(payload).copy(h, 20);
return h;
};
@ -1486,7 +1486,7 @@ return Framer;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

5
docs/bcoin_protocol_network.js.html

@ -510,7 +510,8 @@ testnet.block = {
bip34height: 21111,
bip34hash: 'f88ecd9912d00d3f5c2a8e0f50417d3e415c75b3abe584346da9b32300000000',
pruneAfterHeight: 1000,
maxTipAge: 0x7fffffff
// maxTipAge: 0x7fffffff
maxTipAge: 24 * 60 * 60
};
testnet.witness = false;
@ -931,7 +932,7 @@ segnet4.address.versionsByVal = utils.revMap(segnet4.address.versions);
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

4
docs/bcoin_protocol_parser.js.html

@ -94,7 +94,7 @@ Parser.prototype.feed = function feed(data) {
len = 0;
while (off &lt; chunk.length) {
len = utils.copy(this.pending[0], chunk, off);
len = this.pending[0].copy(chunk, off);
if (len === this.pending[0].length)
this.pending.shift();
else
@ -1527,7 +1527,7 @@ return Parser;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/bcoin_reader.js.html

@ -559,7 +559,7 @@ module.exports = BufferReader;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

305
docs/bcoin_script.js.html

@ -43,7 +43,7 @@ var BufferWriter = require('./writer');
var opcodes = constants.opcodes;
var STACK_TRUE = new Buffer([1]);
var STACK_FALSE = new Buffer([]);
var STACK_NEGATE = new Buffer([0xff]);
var STACK_NEGATE = new Buffer([0x81]);
/**
* A big number (bn.js)
@ -445,6 +445,8 @@ Stack.prototype.slice = function slice(start, end) {
*/
Stack.prototype.splice = function splice(i, remove, insert) {
if (insert === undefined)
return this.items.splice(i, remove);
return this.items.splice(i, remove, insert);
};
@ -638,10 +640,10 @@ Stack.prototype._pickroll = function pickroll(op, flags) {
val = this.pop();
n = Script.num(val, flags).toNumber();
if (n &lt;= 0 || n > this.length)
if (n &lt; 0 || n >= this.length)
throw new ScriptError('Bad value.', op);
val = this.get(-n - 1);
val = this.top(-n - 1);
if (op === opcodes.OP_ROLL)
this.splice(this.length - n - 1, 1);
@ -967,8 +969,8 @@ Script.prototype.interpret = function interpret(stack, flags, tx, index, version
var op, val, v1, v2, v3;
var n, n1, n2, n3;
var res, key, sig, type, subscript, hash;
var keys, i, j, m;
var succ, locktime;
var keys, i, j, m, ikey, isig;
var locktime;
if (flags == null)
flags = constants.flags.STANDARD_VERIFY_FLAGS;
@ -1208,10 +1210,10 @@ Script.prototype.interpret = function interpret(stack, flags, tx, index, version
n = Script.num(stack.pop(), flags);
switch (op) {
case opcodes.OP_1ADD:
n.iadd(1);
n.iaddn(1);
break;
case opcodes.OP_1SUB:
n.isub(1);
n.isubn(1);
break;
case opcodes.OP_2MUL:
n.iushln(1);
@ -1257,7 +1259,8 @@ Script.prototype.interpret = function interpret(stack, flags, tx, index, version
case opcodes.OP_LESSTHANOREQUAL:
case opcodes.OP_GREATERTHANOREQUAL:
case opcodes.OP_MIN:
case opcodes.OP_MAX: {
case opcodes.OP_MAX:
case opcodes.OP_WITHIN: {
switch (op) {
case opcodes.OP_ADD:
case opcodes.OP_SUB:
@ -1346,10 +1349,9 @@ Script.prototype.interpret = function interpret(stack, flags, tx, index, version
}
if (typeof n === 'boolean')
n = new bn(n ? 1 : 0);
res = Script.bool(n);
if (op === opcodes.OP_NUMEQUALVERIFY) {
if (!res)
return false;
if (!Script.bool(n))
throw new ScriptError('Verify failed.', op, ip);
} else {
stack.push(Script.array(n));
}
@ -1405,7 +1407,7 @@ Script.prototype.interpret = function interpret(stack, flags, tx, index, version
case opcodes.OP_EQUAL: {
if (stack.length &lt; 2)
throw new ScriptError('Stack too small.', op, ip);
res = utils.isEqual(stack.pop(), stack.pop());
res = utils.equals(stack.pop(), stack.pop());
if (op === opcodes.OP_EQUALVERIFY) {
if (!res)
throw new ScriptError('Equal verification failed.', op, ip);
@ -1425,6 +1427,10 @@ Script.prototype.interpret = function interpret(stack, flags, tx, index, version
key = stack.pop();
sig = stack.pop();
subscript = this.getSubscript(lastSep);
if (version === 0)
subscript.removeData(sig);
if (!Script.isValidKey(key, flags))
throw new ScriptError('Key is not valid.', op, ip);
@ -1433,10 +1439,6 @@ Script.prototype.interpret = function interpret(stack, flags, tx, index, version
type = sig[sig.length - 1];
subscript = this.getSubscript(lastSep);
if (version === 0)
subscript.removeData(sig);
hash = tx.signatureHash(index, subscript, type, version);
res = Script.checksig(hash, sig, key, flags);
@ -1454,73 +1456,85 @@ Script.prototype.interpret = function interpret(stack, flags, tx, index, version
if (!tx)
throw new ScriptError('No TX passed in.', op, ip);
if (stack.length &lt; 4)
i = 1;
if (stack.length &lt; i)
throw new ScriptError('Stack too small.', op, ip);
n = Script.num(stack.pop(), flags).toNumber();
n = Script.num(stack.top(-i), flags).toNumber();
if (!(n >= 1 &amp;&amp; n &lt;= constants.script.MAX_MULTISIG_PUBKEYS))
if (!(n >= 0 &amp;&amp; n &lt;= constants.script.MAX_MULTISIG_PUBKEYS))
throw new ScriptError('`n` is out of bounds.', op, ip);
if (stack.length &lt; n + 1)
throw new ScriptError('`n` exceeds stack size.', op, ip);
opCount += n;
keys = [];
for (i = 0; i &lt; n; i++) {
key = stack.pop();
if (opCount > constants.script.MAX_OPS)
throw new ScriptError('Too many ops.', op, ip);
if (!Script.isValidKey(key, flags))
throw new ScriptError('Key is not valid.', op, ip);
i++;
ikey = i;
i += n;
keys.push(key);
}
if (stack.length &lt; i)
throw new ScriptError('`n` exceeds stack size.', op, ip);
m = Script.num(stack.pop(), flags).toNumber();
m = Script.num(stack.top(-i), flags).toNumber();
if (!(m >= 1 &amp;&amp; m &lt;= n))
if (!(m >= 0 &amp;&amp; m &lt;= n))
throw new ScriptError('`m` is out of bounds.', op, ip);
if (stack.length &lt; m)
i++;
isig = i;
i += m;
if (stack.length &lt; i)
throw new ScriptError('`m` exceeds stack size.', op, ip);
subscript = this.getSubscript(lastSep);
for (i = 0; i &lt; m; i++) {
sig = stack.get(stack.length - 1 - i);
for (j = 0; j &lt; m; j++) {
sig = stack.top(-isig - j);
if (version === 0)
subscript.removeData(sig);
}
succ = 0;
for (i = 0, j = 0; i &lt; m; i++) {
sig = stack.pop();
res = true;
while (res &amp;&amp; m > 0) {
sig = stack.top(-isig);
key = stack.top(-ikey);
if (!Script.isValidSignature(sig, flags))
throw new ScriptError('Signature is not valid.', op, ip);
type = sig[sig.length - 1];
if (!Script.isValidKey(key, flags))
throw new ScriptError('Key is not valid.', op, ip);
type = sig[sig.length - 1];
hash = tx.signatureHash(index, subscript, type, version);
res = false;
for (; !res &amp;&amp; j &lt; n; j++)
res = Script.checksig(hash, sig, keys[j], flags);
if (Script.checksig(hash, sig, key, flags)) {
isig++;
m--;
}
ikey++;
n--;
if (res)
succ++;
if (m > n)
res = false;
}
while (i-- > 1)
stack.pop();
if (stack.length &lt; 1)
throw new ScriptError('No dummy present.', op, ip);
val = stack.pop();
if (flags &amp; constants.flags.VERIFY_NULLDUMMY) {
if (!Script.isDummy(val))
if (!Script.isDummy(stack.top(-1)))
throw new ScriptError('Dummy did not verify.', op, ip);
}
res = succ >= m;
stack.pop();
if (op === opcodes.OP_CHECKMULTISIGVERIFY) {
if (!res)
@ -1784,6 +1798,8 @@ Script.bool = function bool(value) {
*/
Script.num = function num(value, flags, size) {
var result, n;
assert(Buffer.isBuffer(value));
if (flags == null)
@ -1810,21 +1826,20 @@ Script.num = function num(value, flags, size) {
}
}
// If we are signed, do (~num + 1) to get
// the positive counterpart and set bn's
// negative flag.
if (value.length === 0)
return new bn(0);
result = new bn(value, 'le');
// If the input vector's most significant byte is
// 0x80, remove it from the result's msb and return
// a negative.
if (value[value.length - 1] &amp; 0x80) {
if (utils.isNegZero(value, 'le')) {
value = new bn(0);
} else {
value = new bn(value, 'le');
value = value.notn(size * 8).addn(1).neg();
}
} else {
value = new bn(value, 'le');
n = new bn(0x80).ushln(8 * (value.length - 1)).notn(64);
return result.uand(n).neg();
}
return value;
return result;
};
/**
@ -1840,6 +1855,8 @@ Script.num = function num(value, flags, size) {
*/
Script.array = function(value) {
var neg, result;
if (Buffer.isBuffer(value))
return value;
@ -1848,42 +1865,115 @@ Script.array = function(value) {
assert(bn.isBN(value));
// Convert the number to the
// negative byte representation.
if (value.isNeg()) {
if (value.cmpn(0) === 0)
value = new bn(0);
else
value = value.neg().notn(value.byteLength() * 8).subn(1);
}
if (value.cmpn(0) === 0)
return STACK_FALSE;
return value.toBuffer('le');
// If the most significant byte is >= 0x80
// and the value is positive, push a new
// zero-byte to make the significant
// byte &lt; 0x80 again.
// If the most significant byte is >= 0x80
// and the value is negative, push a new
// 0x80 byte that will be popped off when
// converting to an integral.
// If the most significant byte is &lt; 0x80
// and the value is negative, add 0x80 to
// it, since it will be subtracted and
// interpreted as a negative when
// converting to an integral.
neg = value.cmpn(0) &lt; 0;
result = value.toArray('le');
if (result[result.length - 1] &amp; 0x80)
result.push(neg ? 0x80 : 0);
else if (neg)
result[result.length - 1] |= 0x80;
return new Buffer(result);
};
/**
* Remove all matched data elements from
* a script's code (used to remove signatures
* before verification).
* before verification). Note that this
* compares and removes data on the _byte level_.
* It also reserializes the data to a single
* script with minimaldata encoding beforehand.
* A signature will _not_ be removed if it is
* not minimaldata.
* @see https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2014-November/006878.html
* @see https://test.webbtc.com/tx/19aa42fee0fa57c45d3b16488198b27caaacc4ff5794510d0c17f173f05587ff
* @param {Buffer} data - Data element to match against.
* @returns {Number} Total.
*/
Script.prototype.removeData = function removeData(data) {
var total = 0;
var sig, raw, i, a, b;
if (!this.raw)
return this.removeDataFast(data);
sig = new Script([data]).encode();
raw = this.encode();
// Note that this is _faster_ than Buffer#indexOf.
for (i = 0; i &lt; raw.length; i++) {
if (raw.length - i &lt; sig.length)
break;
if (this._cmp(raw, sig, i) === 0) {
a = raw.slice(0, i);
b = raw.slice(i + sig.length);
raw = Buffer.concat([a, b]);
total++;
}
}
this.raw = raw;
return total;
};
Script.prototype._cmp = function _cmp(target, data, start) {
var i, a, b;
if (target.length - start &lt; data.length)
return -1;
for (i = 0; i &lt; data.length; i++) {
a = target[i + start];
b = data[i];
if (a &lt; b)
return -1;
if (a > b)
return 1;
}
return 0;
};
Script.prototype.removeDataFast = function removeData(data) {
var total = 0;
var i;
for (i = this.code.length - 1; i >= 0; i--) {
if (!Buffer.isBuffer(this.code[i]))
continue;
if (utils.isEqual(this.code[i], data)) {
if (!Script.checkMinimal(this.code[i]))
continue;
if (utils.equals(this.code[i], data)) {
this.code.splice(i, 1);
total++;
}
}
if (this.raw &amp;&amp; total > 0) {
this.raw = null;
this.encode();
}
return total;
};
@ -1955,7 +2045,7 @@ Script.checkMinimal = function checkMinimal(value, flags) {
if (value.length === 1 &amp;&amp; value[0] >= 1 &amp;&amp; value[0] &lt;= 16)
return false;
if (value.length === 1 &amp;&amp; value[0] === 0xff)
if (value.length === 1 &amp;&amp; value[0] === 0x81)
return false;
if (value.length &lt;= 75)
@ -2350,15 +2440,15 @@ Script.getInputHash = function getInputHash(isWitness) {
return;
if (Script.isPubkeyhashInput(code))
return utils.toHex(utils.ripesha(code[1]));
return utils.ripesha(code[1]).toString('hex');
if (Script.isMultisigInput(code, isWitness))
return;
if (Script.isScripthashInput(code, isWitness)) {
return isWitness
? utils.toHex(utils.sha256(code[code.length - 1]))
: utils.toHex(utils.ripesha(code[code.length - 1]));
? utils.sha256(code[code.length - 1]).toString('hex')
: utils.ripesha(code[code.length - 1]).toString('hex')
}
};
@ -2376,20 +2466,20 @@ Script.prototype.getHash = function getHash() {
program = this.getWitnessProgram();
if (!program.type || program.type === 'unknown')
return;
return utils.toHex(program.data);
return program.data.toString('hex');
}
if (this.isPubkey())
return utils.toHex(utils.ripesha(this.code[0]));
return utils.ripesha(this.code[0]).toString('hex');
if (this.isPubkeyhash())
return utils.toHex(this.code[2]);
return this.code[2].toString('hex');
if (this.isMultisig())
return utils.toHex(utils.ripesha(this.encode()));
return utils.ripesha(this.encode()).toString('hex');
if (this.isScripthash())
return utils.toHex(this.code[1]);
return this.code[1].toString('hex');
};
/**
@ -2436,6 +2526,9 @@ Script.prototype.isMultisig = function isMultisig() {
if (n == null)
return false;
if (n &lt; 1)
return false;
m = Script.getSmall(this.code[0]);
if (m == null)
@ -3299,7 +3392,7 @@ Script.format = function format(code) {
return Script.concat(scripts).map(function(chunk) {
if (Buffer.isBuffer(chunk))
return '[' + utils.toHex(chunk) + ']';
return '[' + chunk.toString('hex') + ']';
assert(typeof chunk === 'number');
@ -3617,7 +3710,7 @@ Script.verify = function verify(input, witness, output, tx, i, flags) {
hadWitness = true;
// Input script must be exactly one push of the redeem script.
if (!(input.code.length === 1 &amp;&amp; utils.isEqual(input.code[0], raw)))
if (!(input.code.length === 1 &amp;&amp; utils.equals(input.code[0], raw)))
return false;
// Verify the program in the redeem script
@ -3699,7 +3792,7 @@ Script.verifyProgram = function verifyProgram(witness, output, flags, tx, i) {
witnessScript = stack.pop();
if (!utils.isEqual(utils.sha256(witnessScript), program.data))
if (!utils.equals(utils.sha256(witnessScript), program.data))
return false;
redeem = new Script(witnessScript);
@ -3852,45 +3945,41 @@ Script.decode = function decode(buf) {
if (op >= 0x01 &amp;&amp; op &lt;= 0x4b) {
code.push(buf.slice(off, off + op));
off += op;
if (off > buf.length) {
utils.hidden(code[code.length - 1], 'pushdata', {
opcode: null,
size: op
});
}
// if (off > buf.length) {
utils.hidden(code[code.length - 1], 'pushdata', {
opcode: null,
size: op
});
} else if (op === opcodes.OP_PUSHDATA1) {
size = buf[off];
off += 1;
code.push(buf.slice(off, off + size));
off += size;
if (size &lt;= 0x4b || off > buf.length) {
utils.hidden(code[code.length - 1], 'pushdata', {
opcode: op,
size: size
});
}
// if (size &lt;= 0x4b || off > buf.length) {
utils.hidden(code[code.length - 1], 'pushdata', {
opcode: op,
size: size
});
} else if (op === opcodes.OP_PUSHDATA2) {
size = utils.readU16(buf, off);
off += 2;
code.push(buf.slice(off, off + size));
off += size;
if (size &lt;= 0xff || off > buf.length) {
utils.hidden(code[code.length - 1], 'pushdata', {
opcode: op,
size: size
});
}
// if (size &lt;= 0xff || off > buf.length) {
utils.hidden(code[code.length - 1], 'pushdata', {
opcode: op,
size: size
});
} else if (op === opcodes.OP_PUSHDATA4) {
size = utils.readU32(buf, off);
off += 4;
code.push(buf.slice(off, off + size));
off += size;
if (size &lt;= 0xffff || off > buf.length) {
utils.hidden(code[code.length - 1], 'pushdata', {
opcode: op,
size: size
});
}
// if (size &lt;= 0xffff || off > buf.length) {
utils.hidden(code[code.length - 1], 'pushdata', {
opcode: op,
size: size
});
} else {
code.push(op);
}
@ -3956,7 +4045,7 @@ Script.encode = function encode(code, writer) {
} else if (op[0] >= 1 &amp;&amp; op[0] &lt;= 16) {
p.writeU8(op[0] + 0x50);
continue;
} else if (op[0] === 0xff) {
} else if (op[0] === 0x81) {
p.writeU8(opcodes.OP_1NEGATE);
continue;
}
@ -4065,7 +4154,7 @@ return Script;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

2
docs/bcoin_spvnode.js.html

@ -340,7 +340,7 @@ return SPVNode;
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Sun Apr 17 2016 22:33:43 GMT-0700 (PDT)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Apr 18 2016 21:53:12 GMT-0700 (PDT)
</footer>
<script> prettyPrint(); </script>

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save