chainpoint 0.0.4 → 1.0.1
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.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.rubocop.yml +12 -0
- data/.travis.yml +4 -1
- data/Gemfile +11 -3
- data/Gemfile.lock +47 -1
- data/README.md +65 -53
- data/Rakefile +7 -3
- data/bin/console +4 -3
- data/chainpoint.gemspec +17 -15
- data/docs/Chainpoint/Hash.html +636 -0
- data/docs/Chainpoint/Proof.html +567 -0
- data/docs/Chainpoint/ProofHandle.html +475 -0
- data/docs/Chainpoint.html +50 -838
- data/docs/_index.html +39 -2
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +70 -57
- data/docs/index.html +70 -57
- data/docs/method_list.html +97 -17
- data/docs/top-level-namespace.html +3 -3
- data/lib/chainpoint/hash.rb +62 -0
- data/lib/chainpoint/proof.rb +37 -0
- data/lib/chainpoint/proof_handle.rb +33 -0
- data/lib/chainpoint/version.rb +18 -18
- data/lib/chainpoint.rb +35 -130
- metadata +22 -1
@@ -0,0 +1,475 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Class: Chainpoint::ProofHandle
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.18
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
pathId = "Chainpoint::ProofHandle";
|
19
|
+
relpath = '../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../_index.html">Index (P)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../Chainpoint.html" title="Chainpoint (module)">Chainpoint</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">ProofHandle</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Class: Chainpoint::ProofHandle
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
72
|
+
<span class="inheritName">Object</span>
|
73
|
+
|
74
|
+
<ul class="fullTree">
|
75
|
+
<li>Object</li>
|
76
|
+
|
77
|
+
<li class="next">Chainpoint::ProofHandle</li>
|
78
|
+
|
79
|
+
</ul>
|
80
|
+
<a href="#" class="inheritanceTree">show all</a>
|
81
|
+
|
82
|
+
</dd>
|
83
|
+
</dl>
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<dl>
|
96
|
+
<dt>Defined in:</dt>
|
97
|
+
<dd>lib/chainpoint/proof_handle.rb</dd>
|
98
|
+
</dl>
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
107
|
+
<ul class="summary">
|
108
|
+
|
109
|
+
<li class="public ">
|
110
|
+
<span class="summary_signature">
|
111
|
+
|
112
|
+
<a href="#node_hash_id-instance_method" title="#node_hash_id (instance method)">#<strong>node_hash_id</strong> ⇒ Object </a>
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
</span>
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
<span class="note title readonly">readonly</span>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
<span class="summary_desc"><div class='inline'>
|
132
|
+
<p>Returns the value of attribute node_hash_id.</p>
|
133
|
+
</div></span>
|
134
|
+
|
135
|
+
</li>
|
136
|
+
|
137
|
+
|
138
|
+
<li class="public ">
|
139
|
+
<span class="summary_signature">
|
140
|
+
|
141
|
+
<a href="#uri-instance_method" title="#uri (instance method)">#<strong>uri</strong> ⇒ Object </a>
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
</span>
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
<span class="note title readonly">readonly</span>
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
<span class="summary_desc"><div class='inline'>
|
161
|
+
<p>Returns the value of attribute uri.</p>
|
162
|
+
</div></span>
|
163
|
+
|
164
|
+
</li>
|
165
|
+
|
166
|
+
|
167
|
+
</ul>
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
<h2>
|
174
|
+
Instance Method Summary
|
175
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
176
|
+
</h2>
|
177
|
+
|
178
|
+
<ul class="summary">
|
179
|
+
|
180
|
+
<li class="public ">
|
181
|
+
<span class="summary_signature">
|
182
|
+
|
183
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(uri, node_hash_id) ⇒ ProofHandle </a>
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
</span>
|
188
|
+
|
189
|
+
|
190
|
+
<span class="note title constructor">constructor</span>
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
<span class="summary_desc"><div class='inline'>
|
200
|
+
<p>A new instance of ProofHandle.</p>
|
201
|
+
</div></span>
|
202
|
+
|
203
|
+
</li>
|
204
|
+
|
205
|
+
|
206
|
+
<li class="public ">
|
207
|
+
<span class="summary_signature">
|
208
|
+
|
209
|
+
<a href="#proof-instance_method" title="#proof (instance method)">#<strong>proof</strong> ⇒ Object </a>
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
</span>
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
224
|
+
|
225
|
+
</li>
|
226
|
+
|
227
|
+
|
228
|
+
<li class="public ">
|
229
|
+
<span class="summary_signature">
|
230
|
+
|
231
|
+
<a href="#to_h-instance_method" title="#to_h (instance method)">#<strong>to_h</strong> ⇒ Object </a>
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
</span>
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
246
|
+
|
247
|
+
</li>
|
248
|
+
|
249
|
+
|
250
|
+
</ul>
|
251
|
+
|
252
|
+
|
253
|
+
<div id="constructor_details" class="method_details_list">
|
254
|
+
<h2>Constructor Details</h2>
|
255
|
+
|
256
|
+
<div class="method_details first">
|
257
|
+
<h3 class="signature first" id="initialize-instance_method">
|
258
|
+
|
259
|
+
#<strong>initialize</strong>(uri, node_hash_id) ⇒ <tt><span class='object_link'><a href="" title="Chainpoint::ProofHandle (class)">ProofHandle</a></span></tt>
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
</h3><div class="docstring">
|
266
|
+
<div class="discussion">
|
267
|
+
|
268
|
+
<p>Returns a new instance of ProofHandle</p>
|
269
|
+
|
270
|
+
|
271
|
+
</div>
|
272
|
+
</div>
|
273
|
+
<div class="tags">
|
274
|
+
|
275
|
+
|
276
|
+
</div><table class="source_code">
|
277
|
+
<tr>
|
278
|
+
<td>
|
279
|
+
<pre class="lines">
|
280
|
+
|
281
|
+
|
282
|
+
7
|
283
|
+
8
|
284
|
+
9
|
285
|
+
10</pre>
|
286
|
+
</td>
|
287
|
+
<td>
|
288
|
+
<pre class="code"><span class="info file"># File 'lib/chainpoint/proof_handle.rb', line 7</span>
|
289
|
+
|
290
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='comma'>,</span> <span class='id identifier rubyid_node_hash_id'>node_hash_id</span><span class='rparen'>)</span>
|
291
|
+
<span class='ivar'>@uri</span> <span class='op'>=</span> <span class='id identifier rubyid_uri'>uri</span>
|
292
|
+
<span class='ivar'>@node_hash_id</span> <span class='op'>=</span> <span class='id identifier rubyid_node_hash_id'>node_hash_id</span>
|
293
|
+
<span class='kw'>end</span></pre>
|
294
|
+
</td>
|
295
|
+
</tr>
|
296
|
+
</table>
|
297
|
+
</div>
|
298
|
+
|
299
|
+
</div>
|
300
|
+
|
301
|
+
<div id="instance_attr_details" class="attr_details">
|
302
|
+
<h2>Instance Attribute Details</h2>
|
303
|
+
|
304
|
+
|
305
|
+
<span id=""></span>
|
306
|
+
<div class="method_details first">
|
307
|
+
<h3 class="signature first" id="node_hash_id-instance_method">
|
308
|
+
|
309
|
+
#<strong>node_hash_id</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
</h3><div class="docstring">
|
316
|
+
<div class="discussion">
|
317
|
+
|
318
|
+
<p>Returns the value of attribute node_hash_id</p>
|
319
|
+
|
320
|
+
|
321
|
+
</div>
|
322
|
+
</div>
|
323
|
+
<div class="tags">
|
324
|
+
|
325
|
+
|
326
|
+
</div><table class="source_code">
|
327
|
+
<tr>
|
328
|
+
<td>
|
329
|
+
<pre class="lines">
|
330
|
+
|
331
|
+
|
332
|
+
5
|
333
|
+
6
|
334
|
+
7</pre>
|
335
|
+
</td>
|
336
|
+
<td>
|
337
|
+
<pre class="code"><span class="info file"># File 'lib/chainpoint/proof_handle.rb', line 5</span>
|
338
|
+
|
339
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_node_hash_id'>node_hash_id</span>
|
340
|
+
<span class='ivar'>@node_hash_id</span>
|
341
|
+
<span class='kw'>end</span></pre>
|
342
|
+
</td>
|
343
|
+
</tr>
|
344
|
+
</table>
|
345
|
+
</div>
|
346
|
+
|
347
|
+
|
348
|
+
<span id=""></span>
|
349
|
+
<div class="method_details ">
|
350
|
+
<h3 class="signature " id="uri-instance_method">
|
351
|
+
|
352
|
+
#<strong>uri</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
</h3><div class="docstring">
|
359
|
+
<div class="discussion">
|
360
|
+
|
361
|
+
<p>Returns the value of attribute uri</p>
|
362
|
+
|
363
|
+
|
364
|
+
</div>
|
365
|
+
</div>
|
366
|
+
<div class="tags">
|
367
|
+
|
368
|
+
|
369
|
+
</div><table class="source_code">
|
370
|
+
<tr>
|
371
|
+
<td>
|
372
|
+
<pre class="lines">
|
373
|
+
|
374
|
+
|
375
|
+
5
|
376
|
+
6
|
377
|
+
7</pre>
|
378
|
+
</td>
|
379
|
+
<td>
|
380
|
+
<pre class="code"><span class="info file"># File 'lib/chainpoint/proof_handle.rb', line 5</span>
|
381
|
+
|
382
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_uri'>uri</span>
|
383
|
+
<span class='ivar'>@uri</span>
|
384
|
+
<span class='kw'>end</span></pre>
|
385
|
+
</td>
|
386
|
+
</tr>
|
387
|
+
</table>
|
388
|
+
</div>
|
389
|
+
|
390
|
+
</div>
|
391
|
+
|
392
|
+
|
393
|
+
<div id="instance_method_details" class="method_details_list">
|
394
|
+
<h2>Instance Method Details</h2>
|
395
|
+
|
396
|
+
|
397
|
+
<div class="method_details first">
|
398
|
+
<h3 class="signature first" id="proof-instance_method">
|
399
|
+
|
400
|
+
#<strong>proof</strong> ⇒ <tt>Object</tt>
|
401
|
+
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
</h3><table class="source_code">
|
407
|
+
<tr>
|
408
|
+
<td>
|
409
|
+
<pre class="lines">
|
410
|
+
|
411
|
+
|
412
|
+
12
|
413
|
+
13
|
414
|
+
14
|
415
|
+
15
|
416
|
+
16
|
417
|
+
17</pre>
|
418
|
+
</td>
|
419
|
+
<td>
|
420
|
+
<pre class="code"><span class="info file"># File 'lib/chainpoint/proof_handle.rb', line 12</span>
|
421
|
+
|
422
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_proof'>proof</span>
|
423
|
+
<span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='id identifier rubyid_request_proof'>request_proof</span>
|
424
|
+
<span class='kw'>return</span> <span class='kw'>unless</span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>proof</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
425
|
+
|
426
|
+
<span class='const'><span class='object_link'><a href="../Chainpoint.html" title="Chainpoint (module)">Chainpoint</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Proof.html" title="Chainpoint::Proof (class)">Proof</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Proof.html#initialize-instance_method" title="Chainpoint::Proof#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>proof</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>hash_id_node</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>anchors_complete</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
427
|
+
<span class='kw'>end</span></pre>
|
428
|
+
</td>
|
429
|
+
</tr>
|
430
|
+
</table>
|
431
|
+
</div>
|
432
|
+
|
433
|
+
<div class="method_details ">
|
434
|
+
<h3 class="signature " id="to_h-instance_method">
|
435
|
+
|
436
|
+
#<strong>to_h</strong> ⇒ <tt>Object</tt>
|
437
|
+
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
</h3><table class="source_code">
|
443
|
+
<tr>
|
444
|
+
<td>
|
445
|
+
<pre class="lines">
|
446
|
+
|
447
|
+
|
448
|
+
19
|
449
|
+
20
|
450
|
+
21</pre>
|
451
|
+
</td>
|
452
|
+
<td>
|
453
|
+
<pre class="code"><span class="info file"># File 'lib/chainpoint/proof_handle.rb', line 19</span>
|
454
|
+
|
455
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_to_h'>to_h</span>
|
456
|
+
<span class='lbrace'>{</span> <span class='label'>uri:</span> <span class='ivar'>@uri</span><span class='comma'>,</span> <span class='label'>node_hash_id:</span> <span class='ivar'>@node_hash_id</span> <span class='rbrace'>}</span>
|
457
|
+
<span class='kw'>end</span></pre>
|
458
|
+
</td>
|
459
|
+
</tr>
|
460
|
+
</table>
|
461
|
+
</div>
|
462
|
+
|
463
|
+
</div>
|
464
|
+
|
465
|
+
</div>
|
466
|
+
|
467
|
+
<div id="footer">
|
468
|
+
Generated on Sun Mar 31 14:30:37 2019 by
|
469
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
470
|
+
0.9.18 (ruby-2.5.1).
|
471
|
+
</div>
|
472
|
+
|
473
|
+
</div>
|
474
|
+
</body>
|
475
|
+
</html>
|