@leocuvee/turtlecoin-utils 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/.github/workflows/ci.yml +27 -0
  2. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  3. package/.idea/inspectionProfiles/Project_Default.xml +7 -0
  4. package/.idea/misc.xml +6 -0
  5. package/.idea/modules.xml +8 -0
  6. package/.idea/turtlecoin-utils.iml +12 -0
  7. package/.idea/vcs.xml +6 -0
  8. package/.travis.yml +11 -0
  9. package/CONTRIBUTING.md +3 -0
  10. package/LICENSE +674 -0
  11. package/README.md +203 -0
  12. package/config.json +7 -0
  13. package/docs/.nojekyll +0 -0
  14. package/docs/CNAME +1 -0
  15. package/docs/assets/css/main.css +2321 -0
  16. package/docs/assets/images/icons.png +0 -0
  17. package/docs/assets/images/icons@2x.png +0 -0
  18. package/docs/assets/images/widgets.png +0 -0
  19. package/docs/assets/images/widgets@2x.png +0 -0
  20. package/docs/assets/js/main.js +1 -0
  21. package/docs/assets/js/search.js +3 -0
  22. package/docs/classes/address.html +964 -0
  23. package/docs/classes/addressprefix.html +431 -0
  24. package/docs/classes/block.html +965 -0
  25. package/docs/classes/blocktemplate.html +695 -0
  26. package/docs/classes/cryptonote.html +1137 -0
  27. package/docs/classes/ed25519.keypair.html +400 -0
  28. package/docs/classes/ed25519.keys.html +373 -0
  29. package/docs/classes/extranoncetag.extranoncedata.html +454 -0
  30. package/docs/classes/extranoncetag.extranoncepaymentid.html +453 -0
  31. package/docs/classes/extranoncetag.iextranonce.html +347 -0
  32. package/docs/classes/extratag.extramergedmining.html +494 -0
  33. package/docs/classes/extratag.extranonce.html +530 -0
  34. package/docs/classes/extratag.extrapadding.html +456 -0
  35. package/docs/classes/extratag.extrapublickey.html +460 -0
  36. package/docs/classes/extratag.iextratag.html +355 -0
  37. package/docs/classes/levinpacket.html +674 -0
  38. package/docs/classes/levinpayloads.handshake.html +731 -0
  39. package/docs/classes/levinpayloads.ilevinpayload.html +318 -0
  40. package/docs/classes/levinpayloads.liteblock.html +494 -0
  41. package/docs/classes/levinpayloads.missingtransactions.html +494 -0
  42. package/docs/classes/levinpayloads.newblock.html +540 -0
  43. package/docs/classes/levinpayloads.newtransactions.html +402 -0
  44. package/docs/classes/levinpayloads.peerentry.html +610 -0
  45. package/docs/classes/levinpayloads.ping.html +450 -0
  46. package/docs/classes/levinpayloads.rawblock.html +344 -0
  47. package/docs/classes/levinpayloads.requestchain.html +402 -0
  48. package/docs/classes/levinpayloads.requestgetobjects.html +448 -0
  49. package/docs/classes/levinpayloads.requesttxpool.html +402 -0
  50. package/docs/classes/levinpayloads.responsechain.html +494 -0
  51. package/docs/classes/levinpayloads.responsegetobjects.html +540 -0
  52. package/docs/classes/levinpayloads.timedsync.html +540 -0
  53. package/docs/classes/multisig.html +930 -0
  54. package/docs/classes/multisigmessage.html +694 -0
  55. package/docs/classes/parentblock.html +347 -0
  56. package/docs/classes/transaction.html +925 -0
  57. package/docs/classes/transactioninputs.coinbaseinput.html +390 -0
  58. package/docs/classes/transactioninputs.itransactioninput.html +321 -0
  59. package/docs/classes/transactioninputs.keyinput.html +459 -0
  60. package/docs/classes/transactionoutputs.itransactionoutput.html +317 -0
  61. package/docs/classes/transactionoutputs.keyoutput.html +422 -0
  62. package/docs/enums/extranoncetag.noncetagtype.html +246 -0
  63. package/docs/enums/extratag.extratagtype.html +280 -0
  64. package/docs/enums/levinprotocol.commandtype.html +391 -0
  65. package/docs/enums/transactioninputs.inputtype.html +246 -0
  66. package/docs/enums/transactionoutputs.outputtype.html +229 -0
  67. package/docs/globals.html +238 -0
  68. package/docs/index.html +271 -0
  69. package/docs/interfaces/interfaces.config.html +590 -0
  70. package/docs/interfaces/interfaces.daemonblocktemplateresponse.html +323 -0
  71. package/docs/interfaces/interfaces.generatedinput.html +304 -0
  72. package/docs/interfaces/interfaces.generatedoutput.html +285 -0
  73. package/docs/interfaces/interfaces.inputkeys.html +304 -0
  74. package/docs/interfaces/interfaces.ipreparedtransaction.html +268 -0
  75. package/docs/interfaces/interfaces.output.html +399 -0
  76. package/docs/interfaces/interfaces.preparedringsignature.html +377 -0
  77. package/docs/interfaces/interfaces.preparedtransaction.html +329 -0
  78. package/docs/interfaces/interfaces.randomoutput.html +285 -0
  79. package/docs/interfaces/interfaces.transactionrecipient.html +285 -0
  80. package/docs/interfaces/multisiginterfaces.partialkeyimage.html +277 -0
  81. package/docs/interfaces/multisiginterfaces.partialsigningkey.html +277 -0
  82. package/docs/modules/ed25519.html +195 -0
  83. package/docs/modules/extranoncetag.html +208 -0
  84. package/docs/modules/extratag.html +216 -0
  85. package/docs/modules/interfaces.html +231 -0
  86. package/docs/modules/levinpayloads.html +247 -0
  87. package/docs/modules/levinprotocol.html +191 -0
  88. package/docs/modules/multisiginterfaces.html +195 -0
  89. package/docs/modules/transactioninputs.html +208 -0
  90. package/docs/modules/transactionoutputs.html +204 -0
  91. package/index.d.ts +417 -0
  92. package/index.js +1508 -0
  93. package/lib/base58.js +220 -0
  94. package/lib/biginteger.js +1591 -0
  95. package/lib/blocktemplate.js +408 -0
  96. package/lib/crypto.js +19698 -0
  97. package/lib/mnemonic.js +1204 -0
  98. package/lib/nacl-fast-cn.js +608 -0
  99. package/lib/ringsigs.js +24262 -0
  100. package/lib/sha3.js +477 -0
  101. package/package.json +58 -0
  102. package/src/Address.ts +433 -0
  103. package/src/AddressPrefix.ts +117 -0
  104. package/src/Block.ts +556 -0
  105. package/src/BlockTemplate.ts +289 -0
  106. package/src/Common.ts +105 -0
  107. package/src/Config.ts +66 -0
  108. package/src/CryptoNote.ts +1072 -0
  109. package/src/LevinPacket.ts +366 -0
  110. package/src/Multisig.ts +600 -0
  111. package/src/MultisigMessage.ts +374 -0
  112. package/src/ParentBlock.ts +39 -0
  113. package/src/Transaction.ts +628 -0
  114. package/src/Types/ED25519.ts +187 -0
  115. package/src/Types/IExtraNonce.ts +225 -0
  116. package/src/Types/IExtraTag.ts +507 -0
  117. package/src/Types/ITransaction.ts +230 -0
  118. package/src/Types/ITransactionInput.ts +190 -0
  119. package/src/Types/ITransactionOutput.ts +108 -0
  120. package/src/Types/LevinPayloads.ts +1576 -0
  121. package/src/Types/MultisigInterfaces.ts +65 -0
  122. package/src/Types/PortableStorage.ts +289 -0
  123. package/src/Types.ts +36 -0
  124. package/src/index.ts +36 -0
  125. package/test/template.json +6 -0
  126. package/test/test.js +1457 -0
  127. package/tests/blocktemplate.json +6 -0
  128. package/tests/tests.js +215 -0
  129. package/tsconfig.json +15 -0
  130. package/tslint.json +36 -0
  131. package/typedoc.json +10 -0
  132. package/webpack.config.js +15 -0
@@ -0,0 +1,965 @@
1
+ <!doctype html>
2
+ <html class="default no-js">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <title>Block | TurtleCoin-Utils</title>
7
+ <meta name="description" content="">
8
+ <meta name="viewport" content="width=device-width, initial-scale=1">
9
+ <link rel="stylesheet" href="../assets/css/main.css">
10
+ </head>
11
+ <body>
12
+ <header>
13
+ <div class="tsd-page-toolbar">
14
+ <div class="container">
15
+ <div class="table-wrap">
16
+ <div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base="..">
17
+ <div class="field">
18
+ <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
19
+ <input id="tsd-search-field" type="text" />
20
+ </div>
21
+ <ul class="results">
22
+ <li class="state loading">Preparing search index...</li>
23
+ <li class="state failure">The search index is not available</li>
24
+ </ul>
25
+ <a href="../index.html" class="title">TurtleCoin-Utils</a>
26
+ </div>
27
+ <div class="table-cell" id="tsd-widgets">
28
+ <div id="tsd-filter">
29
+ <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
30
+ <div class="tsd-filter-group">
31
+ <div class="tsd-select" id="tsd-filter-visibility">
32
+ <span class="tsd-select-label">All</span>
33
+ <ul class="tsd-select-list">
34
+ <li data-value="public">Public</li>
35
+ <li data-value="protected">Public/Protected</li>
36
+ <li data-value="private" class="selected">All</li>
37
+ </ul>
38
+ </div>
39
+ <input type="checkbox" id="tsd-filter-inherited" checked />
40
+ <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
41
+ </div>
42
+ </div>
43
+ <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ </div>
48
+ <div class="tsd-page-title">
49
+ <div class="container">
50
+ <ul class="tsd-breadcrumb">
51
+ <li>
52
+ <a href="../globals.html">Globals</a>
53
+ </li>
54
+ <li>
55
+ <a href="block.html">Block</a>
56
+ </li>
57
+ </ul>
58
+ <h1>Class Block</h1>
59
+ </div>
60
+ </div>
61
+ </header>
62
+ <div class="container container-main">
63
+ <div class="row">
64
+ <div class="col-8 col-content">
65
+ <section class="tsd-panel tsd-comment">
66
+ <div class="tsd-comment tsd-typography">
67
+ <div class="lead">
68
+ <p>Represents a TurtleCoin Block</p>
69
+ </div>
70
+ </div>
71
+ </section>
72
+ <section class="tsd-panel tsd-hierarchy">
73
+ <h3>Hierarchy</h3>
74
+ <ul class="tsd-hierarchy">
75
+ <li>
76
+ <span class="target">Block</span>
77
+ </li>
78
+ </ul>
79
+ </section>
80
+ <section class="tsd-panel-group tsd-index-group">
81
+ <h2>Index</h2>
82
+ <section class="tsd-panel tsd-index-panel">
83
+ <div class="tsd-index-content">
84
+ <section class="tsd-index-section ">
85
+ <h3>Accessors</h3>
86
+ <ul class="tsd-index-list">
87
+ <li class="tsd-kind-accessor tsd-parent-kind-class"><a href="block.html#activateparentblockversion" class="tsd-kind-icon">activate<wbr>Parent<wbr>Block<wbr>Version</a></li>
88
+ <li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="block.html#basetransactionbranch" class="tsd-kind-icon">base<wbr>Transaction<wbr>Branch</a></li>
89
+ <li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="block.html#hash" class="tsd-kind-icon">hash</a></li>
90
+ <li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="block.html#height" class="tsd-kind-icon">height</a></li>
91
+ <li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="block.html#longhash" class="tsd-kind-icon">long<wbr>Hash</a></li>
92
+ <li class="tsd-kind-accessor tsd-parent-kind-class"><a href="block.html#majorversion" class="tsd-kind-icon">major<wbr>Version</a></li>
93
+ <li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="block.html#merkleroot" class="tsd-kind-icon">merkle<wbr>Root</a></li>
94
+ <li class="tsd-kind-accessor tsd-parent-kind-class"><a href="block.html#minertransaction" class="tsd-kind-icon">miner<wbr>Transaction</a></li>
95
+ <li class="tsd-kind-accessor tsd-parent-kind-class"><a href="block.html#minorversion" class="tsd-kind-icon">minor<wbr>Version</a></li>
96
+ <li class="tsd-kind-accessor tsd-parent-kind-class"><a href="block.html#nonce" class="tsd-kind-icon">nonce</a></li>
97
+ <li class="tsd-kind-accessor tsd-parent-kind-class"><a href="block.html#parentblock" class="tsd-kind-icon">parent<wbr>Block</a></li>
98
+ <li class="tsd-kind-accessor tsd-parent-kind-class"><a href="block.html#previousblockhash" class="tsd-kind-icon">previous<wbr>Block<wbr>Hash</a></li>
99
+ <li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="block.html#size" class="tsd-kind-icon">size</a></li>
100
+ <li class="tsd-kind-accessor tsd-parent-kind-class"><a href="block.html#timestamp" class="tsd-kind-icon">timestamp</a></li>
101
+ <li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="block.html#transactiontreehash" class="tsd-kind-icon">transaction<wbr>Tree<wbr>Hash</a></li>
102
+ <li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="block.html#transactions" class="tsd-kind-icon">transactions</a></li>
103
+ </ul>
104
+ </section>
105
+ <section class="tsd-index-section ">
106
+ <h3>Methods</h3>
107
+ <ul class="tsd-index-list">
108
+ <li class="tsd-kind-method tsd-parent-kind-class"><a href="block.html#tobuffer" class="tsd-kind-icon">to<wbr>Buffer</a></li>
109
+ <li class="tsd-kind-method tsd-parent-kind-class"><a href="block.html#tohashingbuffer" class="tsd-kind-icon">to<wbr>Hashing<wbr>Buffer</a></li>
110
+ <li class="tsd-kind-method tsd-parent-kind-class"><a href="block.html#tohashingstring" class="tsd-kind-icon">to<wbr>Hashing<wbr>String</a></li>
111
+ <li class="tsd-kind-method tsd-parent-kind-class"><a href="block.html#tostring" class="tsd-kind-icon">to<wbr>String</a></li>
112
+ <li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="block.html#from" class="tsd-kind-icon">from</a></li>
113
+ </ul>
114
+ </section>
115
+ </div>
116
+ </section>
117
+ </section>
118
+ <section class="tsd-panel-group tsd-member-group ">
119
+ <h2>Accessors</h2>
120
+ <section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class">
121
+ <a name="activateparentblockversion" class="tsd-anchor"></a>
122
+ <h3>activate<wbr>Parent<wbr>Block<wbr>Version</h3>
123
+ <ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
124
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> activateParentBlockVersion<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
125
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">set</span> activateParentBlockVersion<span class="tsd-signature-symbol">(</span>activateParentBlockVersion<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
126
+ </ul>
127
+ <ul class="tsd-descriptions">
128
+ <li class="tsd-description">
129
+ <aside class="tsd-sources">
130
+ <ul>
131
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L222">Block.ts:222</a></li>
132
+ </ul>
133
+ </aside>
134
+ <div class="tsd-comment tsd-typography">
135
+ <div class="lead">
136
+ <p>Defines what major block version activates the use of parent blocks</p>
137
+ </div>
138
+ </div>
139
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
140
+ </li>
141
+ <li class="tsd-description">
142
+ <aside class="tsd-sources">
143
+ <ul>
144
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L226">Block.ts:226</a></li>
145
+ </ul>
146
+ </aside>
147
+ <div class="tsd-comment tsd-typography">
148
+ <div class="lead">
149
+ <p>Defines what major block version activates the use of parent blocks</p>
150
+ </div>
151
+ </div>
152
+ <h4 class="tsd-parameters-title">Parameters</h4>
153
+ <ul class="tsd-parameters">
154
+ <li>
155
+ <h5>activateParentBlockVersion: <span class="tsd-signature-type">number</span></h5>
156
+ </li>
157
+ </ul>
158
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
159
+ </li>
160
+ </ul>
161
+ </section>
162
+ <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
163
+ <a name="basetransactionbranch" class="tsd-anchor"></a>
164
+ <h3>base<wbr>Transaction<wbr>Branch</h3>
165
+ <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
166
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> baseTransactionBranch<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></li>
167
+ </ul>
168
+ <ul class="tsd-descriptions">
169
+ <li class="tsd-description">
170
+ <aside class="tsd-sources">
171
+ <ul>
172
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L77">Block.ts:77</a></li>
173
+ </ul>
174
+ </aside>
175
+ <div class="tsd-comment tsd-typography">
176
+ <div class="lead">
177
+ <p>The base transaction branch of the block</p>
178
+ </div>
179
+ </div>
180
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h4>
181
+ </li>
182
+ </ul>
183
+ </section>
184
+ <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
185
+ <a name="hash" class="tsd-anchor"></a>
186
+ <h3>hash</h3>
187
+ <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
188
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> hash<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
189
+ </ul>
190
+ <ul class="tsd-descriptions">
191
+ <li class="tsd-description">
192
+ <aside class="tsd-sources">
193
+ <ul>
194
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L144">Block.ts:144</a></li>
195
+ </ul>
196
+ </aside>
197
+ <div class="tsd-comment tsd-typography">
198
+ <div class="lead">
199
+ <p>The block hash (id)</p>
200
+ </div>
201
+ </div>
202
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
203
+ </li>
204
+ </ul>
205
+ </section>
206
+ <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
207
+ <a name="height" class="tsd-anchor"></a>
208
+ <h3>height</h3>
209
+ <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
210
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> height<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
211
+ </ul>
212
+ <ul class="tsd-descriptions">
213
+ <li class="tsd-description">
214
+ <aside class="tsd-sources">
215
+ <ul>
216
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L38">Block.ts:38</a></li>
217
+ </ul>
218
+ </aside>
219
+ <div class="tsd-comment tsd-typography">
220
+ <div class="lead">
221
+ <p>The height of the block</p>
222
+ </div>
223
+ </div>
224
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
225
+ </li>
226
+ </ul>
227
+ </section>
228
+ <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
229
+ <a name="longhash" class="tsd-anchor"></a>
230
+ <h3>long<wbr>Hash</h3>
231
+ <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
232
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> longHash<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
233
+ </ul>
234
+ <ul class="tsd-descriptions">
235
+ <li class="tsd-description">
236
+ <aside class="tsd-sources">
237
+ <ul>
238
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L161">Block.ts:161</a></li>
239
+ </ul>
240
+ </aside>
241
+ <div class="tsd-comment tsd-typography">
242
+ <div class="lead">
243
+ <p>The block PoW hash</p>
244
+ </div>
245
+ </div>
246
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
247
+ </li>
248
+ </ul>
249
+ </section>
250
+ <section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class">
251
+ <a name="majorversion" class="tsd-anchor"></a>
252
+ <h3>major<wbr>Version</h3>
253
+ <ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
254
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> majorVersion<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
255
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">set</span> majorVersion<span class="tsd-signature-symbol">(</span>majorVersion<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
256
+ </ul>
257
+ <ul class="tsd-descriptions">
258
+ <li class="tsd-description">
259
+ <aside class="tsd-sources">
260
+ <ul>
261
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L122">Block.ts:122</a></li>
262
+ </ul>
263
+ </aside>
264
+ <div class="tsd-comment tsd-typography">
265
+ <div class="lead">
266
+ <p>The major block version</p>
267
+ </div>
268
+ </div>
269
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
270
+ </li>
271
+ <li class="tsd-description">
272
+ <aside class="tsd-sources">
273
+ <ul>
274
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L126">Block.ts:126</a></li>
275
+ </ul>
276
+ </aside>
277
+ <div class="tsd-comment tsd-typography">
278
+ <div class="lead">
279
+ <p>The major block version</p>
280
+ </div>
281
+ </div>
282
+ <h4 class="tsd-parameters-title">Parameters</h4>
283
+ <ul class="tsd-parameters">
284
+ <li>
285
+ <h5>majorVersion: <span class="tsd-signature-type">number</span></h5>
286
+ </li>
287
+ </ul>
288
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
289
+ </li>
290
+ </ul>
291
+ </section>
292
+ <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
293
+ <a name="merkleroot" class="tsd-anchor"></a>
294
+ <h3>merkle<wbr>Root</h3>
295
+ <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
296
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> merkleRoot<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
297
+ </ul>
298
+ <ul class="tsd-descriptions">
299
+ <li class="tsd-description">
300
+ <aside class="tsd-sources">
301
+ <ul>
302
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L97">Block.ts:97</a></li>
303
+ </ul>
304
+ </aside>
305
+ <div class="tsd-comment tsd-typography">
306
+ <div class="lead">
307
+ <p>The merkle root of the block</p>
308
+ </div>
309
+ </div>
310
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
311
+ </li>
312
+ </ul>
313
+ </section>
314
+ <section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class">
315
+ <a name="minertransaction" class="tsd-anchor"></a>
316
+ <h3>miner<wbr>Transaction</h3>
317
+ <ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
318
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> minerTransaction<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="transaction.html" class="tsd-signature-type">Transaction</a></li>
319
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">set</span> minerTransaction<span class="tsd-signature-symbol">(</span>minerTransaction<span class="tsd-signature-symbol">: </span><a href="transaction.html" class="tsd-signature-type">Transaction</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
320
+ </ul>
321
+ <ul class="tsd-descriptions">
322
+ <li class="tsd-description">
323
+ <aside class="tsd-sources">
324
+ <ul>
325
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L200">Block.ts:200</a></li>
326
+ </ul>
327
+ </aside>
328
+ <div class="tsd-comment tsd-typography">
329
+ <div class="lead">
330
+ <p>The miner (coinbase) transaction of the block</p>
331
+ </div>
332
+ </div>
333
+ <h4 class="tsd-returns-title">Returns <a href="transaction.html" class="tsd-signature-type">Transaction</a></h4>
334
+ </li>
335
+ <li class="tsd-description">
336
+ <aside class="tsd-sources">
337
+ <ul>
338
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L204">Block.ts:204</a></li>
339
+ </ul>
340
+ </aside>
341
+ <div class="tsd-comment tsd-typography">
342
+ <div class="lead">
343
+ <p>The miner (coinbase) transaction of the block</p>
344
+ </div>
345
+ </div>
346
+ <h4 class="tsd-parameters-title">Parameters</h4>
347
+ <ul class="tsd-parameters">
348
+ <li>
349
+ <h5>minerTransaction: <a href="transaction.html" class="tsd-signature-type">Transaction</a></h5>
350
+ </li>
351
+ </ul>
352
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
353
+ </li>
354
+ </ul>
355
+ </section>
356
+ <section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class">
357
+ <a name="minorversion" class="tsd-anchor"></a>
358
+ <h3>minor<wbr>Version</h3>
359
+ <ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
360
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> minorVersion<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
361
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">set</span> minorVersion<span class="tsd-signature-symbol">(</span>minorVersion<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
362
+ </ul>
363
+ <ul class="tsd-descriptions">
364
+ <li class="tsd-description">
365
+ <aside class="tsd-sources">
366
+ <ul>
367
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L133">Block.ts:133</a></li>
368
+ </ul>
369
+ </aside>
370
+ <div class="tsd-comment tsd-typography">
371
+ <div class="lead">
372
+ <p>The minor block version</p>
373
+ </div>
374
+ </div>
375
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
376
+ </li>
377
+ <li class="tsd-description">
378
+ <aside class="tsd-sources">
379
+ <ul>
380
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L137">Block.ts:137</a></li>
381
+ </ul>
382
+ </aside>
383
+ <div class="tsd-comment tsd-typography">
384
+ <div class="lead">
385
+ <p>The minor block version</p>
386
+ </div>
387
+ </div>
388
+ <h4 class="tsd-parameters-title">Parameters</h4>
389
+ <ul class="tsd-parameters">
390
+ <li>
391
+ <h5>minorVersion: <span class="tsd-signature-type">number</span></h5>
392
+ </li>
393
+ </ul>
394
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
395
+ </li>
396
+ </ul>
397
+ </section>
398
+ <section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class">
399
+ <a name="nonce" class="tsd-anchor"></a>
400
+ <h3>nonce</h3>
401
+ <ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
402
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> nonce<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
403
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">set</span> nonce<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
404
+ </ul>
405
+ <ul class="tsd-descriptions">
406
+ <li class="tsd-description">
407
+ <aside class="tsd-sources">
408
+ <ul>
409
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L49">Block.ts:49</a></li>
410
+ </ul>
411
+ </aside>
412
+ <div class="tsd-comment tsd-typography">
413
+ <div class="lead">
414
+ <p>The nonce of the block</p>
415
+ </div>
416
+ </div>
417
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
418
+ </li>
419
+ <li class="tsd-description">
420
+ <aside class="tsd-sources">
421
+ <ul>
422
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L56">Block.ts:56</a></li>
423
+ </ul>
424
+ </aside>
425
+ <div class="tsd-comment tsd-typography">
426
+ <div class="lead">
427
+ <p>The nonce of the block</p>
428
+ </div>
429
+ </div>
430
+ <h4 class="tsd-parameters-title">Parameters</h4>
431
+ <ul class="tsd-parameters">
432
+ <li>
433
+ <h5>value: <span class="tsd-signature-type">number</span></h5>
434
+ </li>
435
+ </ul>
436
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
437
+ </li>
438
+ </ul>
439
+ </section>
440
+ <section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class">
441
+ <a name="parentblock" class="tsd-anchor"></a>
442
+ <h3>parent<wbr>Block</h3>
443
+ <ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
444
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> parentBlock<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="parentblock.html" class="tsd-signature-type">ParentBlock</a></li>
445
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">set</span> parentBlock<span class="tsd-signature-symbol">(</span>parentBlock<span class="tsd-signature-symbol">: </span><a href="parentblock.html" class="tsd-signature-type">ParentBlock</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
446
+ </ul>
447
+ <ul class="tsd-descriptions">
448
+ <li class="tsd-description">
449
+ <aside class="tsd-sources">
450
+ <ul>
451
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L211">Block.ts:211</a></li>
452
+ </ul>
453
+ </aside>
454
+ <div class="tsd-comment tsd-typography">
455
+ <div class="lead">
456
+ <p>The parent block of the block</p>
457
+ </div>
458
+ </div>
459
+ <h4 class="tsd-returns-title">Returns <a href="parentblock.html" class="tsd-signature-type">ParentBlock</a></h4>
460
+ </li>
461
+ <li class="tsd-description">
462
+ <aside class="tsd-sources">
463
+ <ul>
464
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L215">Block.ts:215</a></li>
465
+ </ul>
466
+ </aside>
467
+ <div class="tsd-comment tsd-typography">
468
+ <div class="lead">
469
+ <p>The parent block of the block</p>
470
+ </div>
471
+ </div>
472
+ <h4 class="tsd-parameters-title">Parameters</h4>
473
+ <ul class="tsd-parameters">
474
+ <li>
475
+ <h5>parentBlock: <a href="parentblock.html" class="tsd-signature-type">ParentBlock</a></h5>
476
+ </li>
477
+ </ul>
478
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
479
+ </li>
480
+ </ul>
481
+ </section>
482
+ <section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class">
483
+ <a name="previousblockhash" class="tsd-anchor"></a>
484
+ <h3>previous<wbr>Block<wbr>Hash</h3>
485
+ <ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
486
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> previousBlockHash<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
487
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">set</span> previousBlockHash<span class="tsd-signature-symbol">(</span>previousBlockHash<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
488
+ </ul>
489
+ <ul class="tsd-descriptions">
490
+ <li class="tsd-description">
491
+ <aside class="tsd-sources">
492
+ <ul>
493
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L189">Block.ts:189</a></li>
494
+ </ul>
495
+ </aside>
496
+ <div class="tsd-comment tsd-typography">
497
+ <div class="lead">
498
+ <p>The previous block hash of the block</p>
499
+ </div>
500
+ </div>
501
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
502
+ </li>
503
+ <li class="tsd-description">
504
+ <aside class="tsd-sources">
505
+ <ul>
506
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L193">Block.ts:193</a></li>
507
+ </ul>
508
+ </aside>
509
+ <div class="tsd-comment tsd-typography">
510
+ <div class="lead">
511
+ <p>The previous block hash of the block</p>
512
+ </div>
513
+ </div>
514
+ <h4 class="tsd-parameters-title">Parameters</h4>
515
+ <ul class="tsd-parameters">
516
+ <li>
517
+ <h5>previousBlockHash: <span class="tsd-signature-type">string</span></h5>
518
+ </li>
519
+ </ul>
520
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
521
+ </li>
522
+ </ul>
523
+ </section>
524
+ <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
525
+ <a name="size" class="tsd-anchor"></a>
526
+ <h3>size</h3>
527
+ <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
528
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> size<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
529
+ </ul>
530
+ <ul class="tsd-descriptions">
531
+ <li class="tsd-description">
532
+ <aside class="tsd-sources">
533
+ <ul>
534
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L31">Block.ts:31</a></li>
535
+ </ul>
536
+ </aside>
537
+ <div class="tsd-comment tsd-typography">
538
+ <div class="lead">
539
+ <p>The size of the block in bytes</p>
540
+ </div>
541
+ </div>
542
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
543
+ </li>
544
+ </ul>
545
+ </section>
546
+ <section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class">
547
+ <a name="timestamp" class="tsd-anchor"></a>
548
+ <h3>timestamp</h3>
549
+ <ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
550
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> timestamp<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Date</span></li>
551
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">set</span> timestamp<span class="tsd-signature-symbol">(</span>timestamp<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Date</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
552
+ </ul>
553
+ <ul class="tsd-descriptions">
554
+ <li class="tsd-description">
555
+ <aside class="tsd-sources">
556
+ <ul>
557
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L178">Block.ts:178</a></li>
558
+ </ul>
559
+ </aside>
560
+ <div class="tsd-comment tsd-typography">
561
+ <div class="lead">
562
+ <p>The timestamp of the block</p>
563
+ </div>
564
+ </div>
565
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Date</span></h4>
566
+ </li>
567
+ <li class="tsd-description">
568
+ <aside class="tsd-sources">
569
+ <ul>
570
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L182">Block.ts:182</a></li>
571
+ </ul>
572
+ </aside>
573
+ <div class="tsd-comment tsd-typography">
574
+ <div class="lead">
575
+ <p>The timestamp of the block</p>
576
+ </div>
577
+ </div>
578
+ <h4 class="tsd-parameters-title">Parameters</h4>
579
+ <ul class="tsd-parameters">
580
+ <li>
581
+ <h5>timestamp: <span class="tsd-signature-type">Date</span></h5>
582
+ </li>
583
+ </ul>
584
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
585
+ </li>
586
+ </ul>
587
+ </section>
588
+ <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
589
+ <a name="transactiontreehash" class="tsd-anchor"></a>
590
+ <h3>transaction<wbr>Tree<wbr>Hash</h3>
591
+ <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
592
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> transactionTreeHash<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>count<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>hash<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></li>
593
+ </ul>
594
+ <ul class="tsd-descriptions">
595
+ <li class="tsd-description">
596
+ <aside class="tsd-sources">
597
+ <ul>
598
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L86">Block.ts:86</a></li>
599
+ </ul>
600
+ </aside>
601
+ <div class="tsd-comment tsd-typography">
602
+ <div class="lead">
603
+ <p>The transaction tree hash of the block</p>
604
+ </div>
605
+ </div>
606
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">{ </span>count<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>hash<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></h4>
607
+ <ul class="tsd-parameters">
608
+ <li class="tsd-parameter">
609
+ <h5>count<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5>
610
+ </li>
611
+ <li class="tsd-parameter">
612
+ <h5>hash<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
613
+ </li>
614
+ </ul>
615
+ </li>
616
+ </ul>
617
+ </section>
618
+ <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
619
+ <a name="transactions" class="tsd-anchor"></a>
620
+ <h3>transactions</h3>
621
+ <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
622
+ <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> transactions<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></li>
623
+ </ul>
624
+ <ul class="tsd-descriptions">
625
+ <li class="tsd-description">
626
+ <aside class="tsd-sources">
627
+ <ul>
628
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L70">Block.ts:70</a></li>
629
+ </ul>
630
+ </aside>
631
+ <div class="tsd-comment tsd-typography">
632
+ <div class="lead">
633
+ <p>The transactions hashes (non-coinbase) included in the block</p>
634
+ </div>
635
+ </div>
636
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h4>
637
+ </li>
638
+ </ul>
639
+ </section>
640
+ </section>
641
+ <section class="tsd-panel-group tsd-member-group ">
642
+ <h2>Methods</h2>
643
+ <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
644
+ <a name="tobuffer" class="tsd-anchor"></a>
645
+ <h3>to<wbr>Buffer</h3>
646
+ <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
647
+ <li class="tsd-signature tsd-kind-icon">to<wbr>Buffer<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span></li>
648
+ </ul>
649
+ <ul class="tsd-descriptions">
650
+ <li class="tsd-description">
651
+ <aside class="tsd-sources">
652
+ <ul>
653
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L389">Block.ts:389</a></li>
654
+ </ul>
655
+ </aside>
656
+ <div class="tsd-comment tsd-typography">
657
+ <div class="lead">
658
+ <p>Returns a Buffer representation of the block</p>
659
+ </div>
660
+ </div>
661
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Buffer</span></h4>
662
+ <p>the resulting Buffer</p>
663
+ </li>
664
+ </ul>
665
+ </section>
666
+ <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
667
+ <a name="tohashingbuffer" class="tsd-anchor"></a>
668
+ <h3>to<wbr>Hashing<wbr>Buffer</h3>
669
+ <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
670
+ <li class="tsd-signature tsd-kind-icon">to<wbr>Hashing<wbr>Buffer<span class="tsd-signature-symbol">(</span>headerOnly<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span></li>
671
+ </ul>
672
+ <ul class="tsd-descriptions">
673
+ <li class="tsd-description">
674
+ <aside class="tsd-sources">
675
+ <ul>
676
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L457">Block.ts:457</a></li>
677
+ </ul>
678
+ </aside>
679
+ <div class="tsd-comment tsd-typography">
680
+ <div class="lead">
681
+ <p>Returns a Buffer representation of the data for hashing (mining) the block</p>
682
+ </div>
683
+ </div>
684
+ <h4 class="tsd-parameters-title">Parameters</h4>
685
+ <ul class="tsd-parameters">
686
+ <li>
687
+ <h5><span class="tsd-flag ts-flagDefault value">Default value</span> headerOnly: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5>
688
+ </li>
689
+ </ul>
690
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Buffer</span></h4>
691
+ <p>the hashing buffer</p>
692
+ </li>
693
+ </ul>
694
+ </section>
695
+ <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
696
+ <a name="tohashingstring" class="tsd-anchor"></a>
697
+ <h3>to<wbr>Hashing<wbr>String</h3>
698
+ <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
699
+ <li class="tsd-signature tsd-kind-icon">to<wbr>Hashing<wbr>String<span class="tsd-signature-symbol">(</span>headerOnly<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
700
+ </ul>
701
+ <ul class="tsd-descriptions">
702
+ <li class="tsd-description">
703
+ <aside class="tsd-sources">
704
+ <ul>
705
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L523">Block.ts:523</a></li>
706
+ </ul>
707
+ </aside>
708
+ <div class="tsd-comment tsd-typography">
709
+ <div class="lead">
710
+ <p>Returns a hexadecimal (blob) representation of the data for hashing (mining) the block</p>
711
+ </div>
712
+ </div>
713
+ <h4 class="tsd-parameters-title">Parameters</h4>
714
+ <ul class="tsd-parameters">
715
+ <li>
716
+ <h5><span class="tsd-flag ts-flagDefault value">Default value</span> headerOnly: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5>
717
+ </li>
718
+ </ul>
719
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
720
+ <p>the hexadecimal (blob) representation of the hashing buffer</p>
721
+ </li>
722
+ </ul>
723
+ </section>
724
+ <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
725
+ <a name="tostring" class="tsd-anchor"></a>
726
+ <h3>to<wbr>String</h3>
727
+ <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
728
+ <li class="tsd-signature tsd-kind-icon">to<wbr>String<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
729
+ </ul>
730
+ <ul class="tsd-descriptions">
731
+ <li class="tsd-description">
732
+ <aside class="tsd-sources">
733
+ <ul>
734
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L448">Block.ts:448</a></li>
735
+ </ul>
736
+ </aside>
737
+ <div class="tsd-comment tsd-typography">
738
+ <div class="lead">
739
+ <p>Returns a hexadecimal (blob) representation of the block</p>
740
+ </div>
741
+ </div>
742
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
743
+ <p>the hexadecimal representation of the block</p>
744
+ </li>
745
+ </ul>
746
+ </section>
747
+ <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
748
+ <a name="from" class="tsd-anchor"></a>
749
+ <h3><span class="tsd-flag ts-flagStatic">Static</span> from</h3>
750
+ <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
751
+ <li class="tsd-signature tsd-kind-icon">from<span class="tsd-signature-symbol">(</span>data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span>, config<span class="tsd-signature-symbol">?: </span><a href="../interfaces/interfaces.config.html" class="tsd-signature-type">Config</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="block.html" class="tsd-signature-type">Block</a></li>
752
+ </ul>
753
+ <ul class="tsd-descriptions">
754
+ <li class="tsd-description">
755
+ <aside class="tsd-sources">
756
+ <ul>
757
+ <li>Defined in <a href="https://github.com/turtlecoin/turtlecoin-utils/blob/847858e/src/Block.ts#L236">Block.ts:236</a></li>
758
+ </ul>
759
+ </aside>
760
+ <div class="tsd-comment tsd-typography">
761
+ <div class="lead">
762
+ <p>Creates a new instance of a block from the data supplied</p>
763
+ </div>
764
+ </div>
765
+ <h4 class="tsd-parameters-title">Parameters</h4>
766
+ <ul class="tsd-parameters">
767
+ <li>
768
+ <h5>data: <span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5>
769
+ <div class="tsd-comment tsd-typography">
770
+ <p>the raw block data to decode</p>
771
+ </div>
772
+ </li>
773
+ <li>
774
+ <h5><span class="tsd-flag ts-flagOptional">Optional</span> config: <a href="../interfaces/interfaces.config.html" class="tsd-signature-type">Config</a></h5>
775
+ </li>
776
+ </ul>
777
+ <h4 class="tsd-returns-title">Returns <a href="block.html" class="tsd-signature-type">Block</a></h4>
778
+ <p>the new block object</p>
779
+ </li>
780
+ </ul>
781
+ </section>
782
+ </section>
783
+ </div>
784
+ <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
785
+ <nav class="tsd-navigation primary">
786
+ <ul>
787
+ <li class="globals ">
788
+ <a href="../globals.html"><em>Globals</em></a>
789
+ </li>
790
+ </ul>
791
+ </nav>
792
+ <nav class="tsd-navigation secondary menu-sticky">
793
+ <ul class="before-current">
794
+ <li class=" tsd-kind-class">
795
+ <a href="address.html" class="tsd-kind-icon">Address</a>
796
+ </li>
797
+ <li class=" tsd-kind-class">
798
+ <a href="addressprefix.html" class="tsd-kind-icon">Address<wbr>Prefix</a>
799
+ </li>
800
+ </ul>
801
+ <ul class="current">
802
+ <li class="current tsd-kind-class">
803
+ <a href="block.html" class="tsd-kind-icon">Block</a>
804
+ <ul>
805
+ <li class=" tsd-kind-accessor tsd-parent-kind-class">
806
+ <a href="block.html#activateparentblockversion" class="tsd-kind-icon">activate<wbr>Parent<wbr>Block<wbr>Version</a>
807
+ </li>
808
+ <li class=" tsd-kind-get-signature tsd-parent-kind-class">
809
+ <a href="block.html#basetransactionbranch" class="tsd-kind-icon">base<wbr>Transaction<wbr>Branch</a>
810
+ </li>
811
+ <li class=" tsd-kind-get-signature tsd-parent-kind-class">
812
+ <a href="block.html#hash" class="tsd-kind-icon">hash</a>
813
+ </li>
814
+ <li class=" tsd-kind-get-signature tsd-parent-kind-class">
815
+ <a href="block.html#height" class="tsd-kind-icon">height</a>
816
+ </li>
817
+ <li class=" tsd-kind-get-signature tsd-parent-kind-class">
818
+ <a href="block.html#longhash" class="tsd-kind-icon">long<wbr>Hash</a>
819
+ </li>
820
+ <li class=" tsd-kind-accessor tsd-parent-kind-class">
821
+ <a href="block.html#majorversion" class="tsd-kind-icon">major<wbr>Version</a>
822
+ </li>
823
+ <li class=" tsd-kind-get-signature tsd-parent-kind-class">
824
+ <a href="block.html#merkleroot" class="tsd-kind-icon">merkle<wbr>Root</a>
825
+ </li>
826
+ <li class=" tsd-kind-accessor tsd-parent-kind-class">
827
+ <a href="block.html#minertransaction" class="tsd-kind-icon">miner<wbr>Transaction</a>
828
+ </li>
829
+ <li class=" tsd-kind-accessor tsd-parent-kind-class">
830
+ <a href="block.html#minorversion" class="tsd-kind-icon">minor<wbr>Version</a>
831
+ </li>
832
+ <li class=" tsd-kind-accessor tsd-parent-kind-class">
833
+ <a href="block.html#nonce" class="tsd-kind-icon">nonce</a>
834
+ </li>
835
+ <li class=" tsd-kind-accessor tsd-parent-kind-class">
836
+ <a href="block.html#parentblock" class="tsd-kind-icon">parent<wbr>Block</a>
837
+ </li>
838
+ <li class=" tsd-kind-accessor tsd-parent-kind-class">
839
+ <a href="block.html#previousblockhash" class="tsd-kind-icon">previous<wbr>Block<wbr>Hash</a>
840
+ </li>
841
+ <li class=" tsd-kind-get-signature tsd-parent-kind-class">
842
+ <a href="block.html#size" class="tsd-kind-icon">size</a>
843
+ </li>
844
+ <li class=" tsd-kind-accessor tsd-parent-kind-class">
845
+ <a href="block.html#timestamp" class="tsd-kind-icon">timestamp</a>
846
+ </li>
847
+ <li class=" tsd-kind-get-signature tsd-parent-kind-class">
848
+ <a href="block.html#transactiontreehash" class="tsd-kind-icon">transaction<wbr>Tree<wbr>Hash</a>
849
+ </li>
850
+ <li class=" tsd-kind-get-signature tsd-parent-kind-class">
851
+ <a href="block.html#transactions" class="tsd-kind-icon">transactions</a>
852
+ </li>
853
+ <li class=" tsd-kind-method tsd-parent-kind-class">
854
+ <a href="block.html#tobuffer" class="tsd-kind-icon">to<wbr>Buffer</a>
855
+ </li>
856
+ <li class=" tsd-kind-method tsd-parent-kind-class">
857
+ <a href="block.html#tohashingbuffer" class="tsd-kind-icon">to<wbr>Hashing<wbr>Buffer</a>
858
+ </li>
859
+ <li class=" tsd-kind-method tsd-parent-kind-class">
860
+ <a href="block.html#tohashingstring" class="tsd-kind-icon">to<wbr>Hashing<wbr>String</a>
861
+ </li>
862
+ <li class=" tsd-kind-method tsd-parent-kind-class">
863
+ <a href="block.html#tostring" class="tsd-kind-icon">to<wbr>String</a>
864
+ </li>
865
+ <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
866
+ <a href="block.html#from" class="tsd-kind-icon">from</a>
867
+ </li>
868
+ </ul>
869
+ </li>
870
+ </ul>
871
+ <ul class="after-current">
872
+ <li class=" tsd-kind-class">
873
+ <a href="blocktemplate.html" class="tsd-kind-icon">Block<wbr>Template</a>
874
+ </li>
875
+ <li class=" tsd-kind-class">
876
+ <a href="cryptonote.html" class="tsd-kind-icon">Crypto<wbr>Note</a>
877
+ </li>
878
+ <li class=" tsd-kind-class">
879
+ <a href="levinpacket.html" class="tsd-kind-icon">Levin<wbr>Packet</a>
880
+ </li>
881
+ <li class=" tsd-kind-class">
882
+ <a href="multisig.html" class="tsd-kind-icon">Multisig</a>
883
+ </li>
884
+ <li class=" tsd-kind-class">
885
+ <a href="multisigmessage.html" class="tsd-kind-icon">Multisig<wbr>Message</a>
886
+ </li>
887
+ <li class=" tsd-kind-class">
888
+ <a href="parentblock.html" class="tsd-kind-icon">Parent<wbr>Block</a>
889
+ </li>
890
+ <li class=" tsd-kind-class">
891
+ <a href="transaction.html" class="tsd-kind-icon">Transaction</a>
892
+ </li>
893
+ </ul>
894
+ </nav>
895
+ </div>
896
+ </div>
897
+ </div>
898
+ <footer class="with-border-bottom">
899
+ <div class="container">
900
+ <h2>Legend</h2>
901
+ <div class="tsd-legend-group">
902
+ <ul class="tsd-legend">
903
+ <li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
904
+ <li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
905
+ <li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
906
+ <li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
907
+ <li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
908
+ <li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
909
+ <li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
910
+ <li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li>
911
+ </ul>
912
+ <ul class="tsd-legend">
913
+ <li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
914
+ <li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
915
+ <li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
916
+ <li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
917
+ </ul>
918
+ <ul class="tsd-legend">
919
+ <li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
920
+ <li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
921
+ <li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
922
+ <li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
923
+ <li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
924
+ <li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
925
+ </ul>
926
+ <ul class="tsd-legend">
927
+ <li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
928
+ <li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
929
+ <li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
930
+ <li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
931
+ <li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
932
+ <li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
933
+ <li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
934
+ </ul>
935
+ <ul class="tsd-legend">
936
+ <li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
937
+ <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
938
+ <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
939
+ <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
940
+ </ul>
941
+ <ul class="tsd-legend">
942
+ <li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
943
+ <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
944
+ <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
945
+ </ul>
946
+ <ul class="tsd-legend">
947
+ <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
948
+ <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
949
+ <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
950
+ </ul>
951
+ <ul class="tsd-legend">
952
+ <li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
953
+ <li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
954
+ </ul>
955
+ </div>
956
+ </div>
957
+ </footer>
958
+ <div class="container tsd-generator">
959
+ <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
960
+ </div>
961
+ <div class="overlay"></div>
962
+ <script src="../assets/js/main.js"></script>
963
+ <script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
964
+ </body>
965
+ </html>