-
Notifications
You must be signed in to change notification settings - Fork 4
/
merkle_test.go
586 lines (502 loc) · 18.4 KB
/
merkle_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
package merkle_test
import (
"encoding/binary"
"encoding/hex"
"fmt"
"testing"
"time"
"github.com/stretchr/testify/require"
"github.com/spacemeshos/merkle-tree"
"github.com/spacemeshos/merkle-tree/cache"
)
var (
NewTree = merkle.NewTree
NewTreeBuilder = merkle.NewTreeBuilder
NewProvingTree = merkle.NewProvingTree
NewCachingTree = merkle.NewCachingTree
GenerateProof = merkle.GenerateProof
ValidatePartialTree = merkle.ValidatePartialTree
ValidatePartialTreeWithParkingSnapshots = merkle.ValidatePartialTreeWithParkingSnapshots
GetSha256Parent = merkle.GetSha256Parent
GetNode = merkle.GetNode
setOf = merkle.SetOf
newSparseBoolStack = merkle.NewSparseBoolStack
emptyNode = merkle.EmptyNode
NodeSize = merkle.NodeSize
)
type (
set = merkle.Set
position = merkle.Position
validator = merkle.Validator
leafIterator = merkle.LeafIterator
CacheReader = cache.CacheReader
)
/*
8-leaf tree (1st 2 bytes of each node):
+--------------------------------------------------+
| 89a0 |
| ba94 633b |
| cb59 0094 bd50 fa67 |
| 0000 0100 0200 0300 0400 0500 0600 0700 |
+--------------------------------------------------+
*/
func TestNewTree(t *testing.T) {
r := require.New(t)
tree, err := NewTree()
r.NoError(err)
for i := uint64(0); i < 8; i++ {
err := tree.AddLeaf(NewNodeFromUint64(i))
r.NoError(err)
}
expectedRoot, _ := NewNodeFromHex("89a0f1577268cc19b0a39c7a69f804fd140640c699585eb635ebb03c06154cce")
root := tree.Root()
r.Equal(expectedRoot, root)
}
func concatLeaves(_, lChild, rChild []byte) []byte {
if len(lChild) == NodeSize {
lChild = lChild[:1]
}
if len(rChild) == NodeSize {
rChild = rChild[:1]
}
return append(lChild, rChild...)
}
func TestNewTreeWithMinHeightEqual(t *testing.T) {
r := require.New(t)
tree, err := NewTreeBuilder().WithHashFunc(concatLeaves).WithMinHeight(3).Build()
r.NoError(err)
for i := uint64(0); i < 8; i++ {
err := tree.AddLeaf(NewNodeFromUint64(i))
r.NoError(err)
}
expectedRoot, _ := NewNodeFromHex("0001020304050607")
root := tree.Root()
r.Equal(expectedRoot, root)
}
func TestNewTreeWithMinHeightGreater(t *testing.T) {
r := require.New(t)
tree, err := NewTreeBuilder().WithHashFunc(concatLeaves).WithMinHeight(4).Build()
r.NoError(err)
for i := uint64(0); i < 8; i++ {
err := tree.AddLeaf(NewNodeFromUint64(i))
r.NoError(err)
}
// An 8-leaf tree is 3 layers high, so setting a minHeight of 4 means we need to add a "padding node" to the root.
expectedRoot, _ := NewNodeFromHex("000102030405060700")
root := tree.Root()
r.Equal(expectedRoot, root)
}
func TestNewTreeWithMinHeightGreater2(t *testing.T) {
r := require.New(t)
tree, err := NewTreeBuilder().WithHashFunc(concatLeaves).WithMinHeight(5).Build()
r.NoError(err)
for i := uint64(0); i < 8; i++ {
err := tree.AddLeaf(NewNodeFromUint64(i))
r.NoError(err)
}
// An 8-leaf tree is 3 layers high, so setting a minHeight of 5 requires to add two "padding nodes" to the root.
expectedRoot, _ := NewNodeFromHex("00010203040506070000")
root := tree.Root()
r.Equal(expectedRoot, root)
}
func TestNewTreeUnbalanced(t *testing.T) {
r := require.New(t)
tree, err := NewTree()
r.NoError(err)
for i := uint64(0); i < 9; i++ {
err := tree.AddLeaf(NewNodeFromUint64(i))
r.NoError(err)
}
expectedRoot, _ := NewNodeFromHex("cb71c80ee780788eedb819ec125a41e0cde57bd0955cdd3157ca363193ab5ff1")
root := tree.Root()
r.Equal(expectedRoot, root)
}
func TestNewTreeUnbalanced2(t *testing.T) {
r := require.New(t)
tree, err := NewTree()
r.NoError(err)
for i := uint64(0); i < 10; i++ {
err := tree.AddLeaf(NewNodeFromUint64(i))
r.NoError(err)
}
expectedRoot, _ := NewNodeFromHex("59f32a43534fe4c4c0966421aef624267cdf65bd11f74998c60f27c7caccb12d")
root := tree.Root()
r.Equal(expectedRoot, root)
}
func TestNewTreeUnbalanced3(t *testing.T) {
r := require.New(t)
tree, err := NewTree()
r.NoError(err)
for i := uint64(0); i < 15; i++ {
err := tree.AddLeaf(NewNodeFromUint64(i))
r.NoError(err)
}
expectedRoot, _ := NewNodeFromHex("b9746fb884ed07041c5cbb3bb5526e1383928e832a8385e08db995966889b5a8")
root := tree.Root()
r.Equal(expectedRoot, root)
}
func TestNewTreeUnbalancedProof(t *testing.T) {
r := require.New(t)
leavesToProve := setOf(0, 4, 7)
cacheWriter := cache.NewWriter(cache.MinHeightPolicy(0), cache.MakeSliceReadWriterFactory())
tree, err := NewTreeBuilder().
WithLeavesToProve(leavesToProve).
WithCacheWriter(cacheWriter).
Build()
r.NoError(err)
for i := uint64(0); i < 10; i++ {
err := tree.AddLeaf(NewNodeFromUint64(i))
r.NoError(err)
}
expectedRoot, _ := NewNodeFromHex("59f32a43534fe4c4c0966421aef624267cdf65bd11f74998c60f27c7caccb12d")
root := tree.Root()
r.Equal(expectedRoot, root)
cacheReader, err := cacheWriter.GetReader()
r.NoError(err)
assertWidth(r, 10, cacheReader.GetLayerReader(0))
assertWidth(r, 5, cacheReader.GetLayerReader(1))
assertWidth(r, 2, cacheReader.GetLayerReader(2))
assertWidth(r, 1, cacheReader.GetLayerReader(3))
cacheRoot, err := cacheReader.GetLayerReader(3).ReadNext()
r.NoError(err)
r.NotEqual(expectedRoot, cacheRoot)
expectedProof := make([][]byte, 5)
expectedProof[0], _ = NewNodeFromHex("0100000000000000000000000000000000000000000000000000000000000000")
expectedProof[1], _ = NewNodeFromHex("0094579cfc7b716038d416a311465309bea202baa922b224a7b08f01599642fb")
expectedProof[2], _ = NewNodeFromHex("0500000000000000000000000000000000000000000000000000000000000000")
expectedProof[3], _ = NewNodeFromHex("0600000000000000000000000000000000000000000000000000000000000000")
expectedProof[4], _ = NewNodeFromHex("bc68417a8495de6e22d95b980fca5a1183f29eff0e2a9b7ddde91ed5bcbea952")
proof := tree.Proof()
r.EqualValues(expectedProof, proof)
}
func assertWidth(r *require.Assertions, expectedWidth int, layerReader cache.LayerReader) {
r.NotNil(layerReader)
width, err := layerReader.Width()
r.NoError(err)
r.Equal(uint64(expectedWidth), width)
}
func BenchmarkNewTree(b *testing.B) {
var size uint64 = 1 << 28
tree, _ := NewTree()
for i := uint64(0); i < size; i++ {
_ = tree.AddLeaf(NewNodeFromUint64(i))
}
/*
goos: darwin
goarch: amd64
pkg: github.com/spacemeshos/merkle-tree
BenchmarkNewTree-8 1 125055682774 ns/op
PASS
*/
}
func BenchmarkNewTreeSmall(b *testing.B) {
var size uint64 = 1 << 23
start := time.Now()
tree, _ := NewTree()
for i := uint64(0); i < size; i++ {
_ = tree.AddLeaf(NewNodeFromUint64(i))
}
b.Log(time.Since(start))
/*
merkle_test.go:72: 3.700763631s
*/
}
func BenchmarkNewTreeNoHashing(b *testing.B) {
var size uint64 = 1 << 28
tree, _ := NewTree()
for i := uint64(0); i < size; i++ {
_ = tree.AddLeaf(NewNodeFromUint64(i))
}
/*
goos: darwin
goarch: amd64
pkg: github.com/spacemeshos/merkle-tree
BenchmarkNewTreeNoHashing-8 1 14668889972 ns/op
BenchmarkNewTreeNoHashing-8 1 15791579912 ns/op
PASS
*/
}
/*
28 layer tree takes 125 seconds to construct. Overhead (no hashing) is 15.5 seconds. Net: 109.5 seconds.
(8.5GB @ 32b leaves) => x30 256GB => 55 minutes for hashing, 8 minutes overhead.
Reading 256GB from a magnetic disk should take ~30 minutes.
*/
// Proving tree tests
func TestNewProvingTree(t *testing.T) {
r := require.New(t)
tree, err := NewProvingTree(setOf(4))
r.NoError(err)
for i := uint64(0); i < 8; i++ {
err := tree.AddLeaf(NewNodeFromUint64(i))
r.NoError(err)
}
expectedRoot, _ := NewNodeFromHex("89a0f1577268cc19b0a39c7a69f804fd140640c699585eb635ebb03c06154cce")
root := tree.Root()
r.Equal(expectedRoot, root)
expectedProof := make([][]byte, 3)
expectedProof[0], _ = NewNodeFromHex("0500000000000000000000000000000000000000000000000000000000000000")
expectedProof[1], _ = NewNodeFromHex("fa670379e5c2212ed93ff09769622f81f98a91e1ec8fb114d607dd25220b9088")
expectedProof[2], _ = NewNodeFromHex("ba94ffe7edabf26ef12736f8eb5ce74d15bedb6af61444ae2906e926b1a95084")
proof := tree.Proof()
r.EqualValues(expectedProof, proof)
/***************************************************
| 89a0 |
| .ba94. 633b |
| cb59 0094 bd50 .fa67. |
| 0000 0100 0200 0300 =0400=.0500. 0600 0700 |
***************************************************/
}
func TestNewProvingTreeMultiProof(t *testing.T) {
r := require.New(t)
tree, err := NewProvingTree(setOf(1, 4))
r.NoError(err)
for i := uint64(0); i < 8; i++ {
err := tree.AddLeaf(NewNodeFromUint64(i))
r.NoError(err)
}
expectedRoot, _ := NewNodeFromHex("89a0f1577268cc19b0a39c7a69f804fd140640c699585eb635ebb03c06154cce")
root := tree.Root()
r.Equal(expectedRoot, root)
expectedProof := make([][]byte, 4)
expectedProof[0], _ = NewNodeFromHex("0000000000000000000000000000000000000000000000000000000000000000")
expectedProof[1], _ = NewNodeFromHex("0094579cfc7b716038d416a311465309bea202baa922b224a7b08f01599642fb")
expectedProof[2], _ = NewNodeFromHex("0500000000000000000000000000000000000000000000000000000000000000")
expectedProof[3], _ = NewNodeFromHex("fa670379e5c2212ed93ff09769622f81f98a91e1ec8fb114d607dd25220b9088")
proof := tree.Proof()
r.EqualValues(expectedProof, proof)
/***************************************************
| 89a0 |
| ba94 633b |
| cb59 .0094. bd50 .fa67. |
| .0000.=0100= 0200 0300 =0400=.0500. 0600 0700 |
***************************************************/
}
// TestNewProvingTreeMultiProofReuseLeafBytes verifies if the user of Tree
// can safely reuse the memory passed into Tree::AddLeaf.
func TestNewProvingTreeMultiProofReuseLeafBytes(t *testing.T) {
r := require.New(t)
tree, err := NewProvingTree(setOf(1, 4))
r.NoError(err)
var leaf [32]byte
for i := uint64(0); i < 8; i++ {
binary.LittleEndian.PutUint64(leaf[:], i)
r.NoError(tree.AddLeaf(leaf[:]))
}
expectedRoot, _ := NewNodeFromHex("89a0f1577268cc19b0a39c7a69f804fd140640c699585eb635ebb03c06154cce")
root := tree.Root()
r.Equal(expectedRoot, root)
expectedProof := make([][]byte, 4)
expectedProof[0], _ = NewNodeFromHex("0000000000000000000000000000000000000000000000000000000000000000")
expectedProof[1], _ = NewNodeFromHex("0094579cfc7b716038d416a311465309bea202baa922b224a7b08f01599642fb")
expectedProof[2], _ = NewNodeFromHex("0500000000000000000000000000000000000000000000000000000000000000")
expectedProof[3], _ = NewNodeFromHex("fa670379e5c2212ed93ff09769622f81f98a91e1ec8fb114d607dd25220b9088")
proof := tree.Proof()
r.EqualValues(expectedProof, proof)
/***************************************************
| 89a0 |
| ba94 633b |
| cb59 .0094. bd50 .fa67. |
| .0000.=0100= 0200 0300 =0400=.0500. 0600 0700 |
***************************************************/
}
func TestNewProvingTreeMultiProof2(t *testing.T) {
r := require.New(t)
tree, err := NewProvingTree(setOf(0, 1, 4))
r.NoError(err)
for i := uint64(0); i < 8; i++ {
err := tree.AddLeaf(NewNodeFromUint64(i))
r.NoError(err)
}
expectedRoot, _ := NewNodeFromHex("89a0f1577268cc19b0a39c7a69f804fd140640c699585eb635ebb03c06154cce")
root := tree.Root()
r.Equal(expectedRoot, root)
expectedProof := make([][]byte, 3)
expectedProof[0], _ = NewNodeFromHex("0094579cfc7b716038d416a311465309bea202baa922b224a7b08f01599642fb")
expectedProof[1], _ = NewNodeFromHex("0500000000000000000000000000000000000000000000000000000000000000")
expectedProof[2], _ = NewNodeFromHex("fa670379e5c2212ed93ff09769622f81f98a91e1ec8fb114d607dd25220b9088")
proof := tree.Proof()
r.EqualValues(expectedProof, proof)
/***************************************************
| 89a0 |
| ba94 633b |
| cb59 .0094. bd50 .fa67. |
| =0000==0100= 0200 0300 =0400=.0500. 0600 0700 |
***************************************************/
}
func NewNodeFromUint64(i uint64) []byte {
b := make([]byte, NodeSize)
binary.LittleEndian.PutUint64(b, i)
return b
}
func NewNodeFromHex(s string) ([]byte, error) {
return hex.DecodeString(s)
}
// Caching tests:
func TestNewCachingTree(t *testing.T) {
r := require.New(t)
cacheWriter := cache.NewWriter(cache.MinHeightPolicy(0), cache.MakeSliceReadWriterFactory())
tree, err := NewCachingTree(cacheWriter)
r.NoError(err)
for i := uint64(0); i < 8; i++ {
err := tree.AddLeaf(NewNodeFromUint64(i))
r.NoError(err)
}
expectedRoot, _ := NewNodeFromHex("89a0f1577268cc19b0a39c7a69f804fd140640c699585eb635ebb03c06154cce")
root := tree.Root()
r.Equal(expectedRoot, root)
cacheReader, err := cacheWriter.GetReader()
r.NoError(err)
assertWidth(r, 8, cacheReader.GetLayerReader(0))
assertWidth(r, 4, cacheReader.GetLayerReader(1))
assertWidth(r, 2, cacheReader.GetLayerReader(2))
assertWidth(r, 1, cacheReader.GetLayerReader(3))
cacheRoot, err := cacheReader.GetLayerReader(3).ReadNext()
r.NoError(err)
r.Equal(expectedRoot, cacheRoot)
// cacheWriter.Print(0 , 3)
}
func BenchmarkNewCachingTreeSmall(b *testing.B) {
var size uint64 = 1 << 23
cacheWriter := cache.NewWriter(cache.MinHeightPolicy(7), cache.MakeSliceReadWriterFactory())
start := time.Now()
tree, _ := NewCachingTree(cacheWriter)
for i := uint64(0); i < size; i++ {
_ = tree.AddLeaf(NewNodeFromUint64(i))
}
b.Log(time.Since(start))
/*
merkle_test.go:242: 3.054842184s
*/
}
func TestSparseBoolStack(t *testing.T) {
r := require.New(t)
allFalse := newSparseBoolStack(make(set))
for i := 0; i < 1000; i++ {
r.False(allFalse.Pop())
}
allTrue := newSparseBoolStack(setOf(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))
for i := 0; i < 10; i++ {
r.True(allTrue.Pop())
}
rounds := make(set)
for i := uint64(0); i < 1000; i += 10 {
rounds[i] = true
}
roundsTrue := newSparseBoolStack(rounds)
for i := 0; i < 1000; i++ {
if i%10 == 0 {
r.True(roundsTrue.Pop())
} else {
r.False(roundsTrue.Pop())
}
}
}
func TestEmptyNode(t *testing.T) {
r := require.New(t)
r.True(emptyNode.IsEmpty())
r.False(emptyNode.OnProvenPath)
}
func TestTree_GetParkedNodes(t *testing.T) {
r := require.New(t)
tree, err := NewTreeBuilder().Build()
r.NoError(err)
r.NoError(tree.AddLeaf([]byte{0}))
r.EqualValues(
[][]byte{{0}},
tree.GetParkedNodes(nil),
)
r.NoError(tree.AddLeaf([]byte{1}))
r.EqualValues(
[][]byte{{}, decode("b413f47d13ee2fe6c845b2ee141af81de858df4ec549a58b7970bb96645bc8d2")},
tree.GetParkedNodes(nil),
)
r.NoError(tree.AddLeaf([]byte{2}))
r.EqualValues(
[][]byte{{2}, decode("b413f47d13ee2fe6c845b2ee141af81de858df4ec549a58b7970bb96645bc8d2")},
tree.GetParkedNodes(nil),
)
r.NoError(tree.AddLeaf([]byte{3}))
r.EqualValues(
[][]byte{{}, {}, decode("7699a4fdd6b8b6908a344f73b8f05c8e1400f7253f544602c442ff5c65504b24")},
tree.GetParkedNodes(nil),
)
}
func TestTree_SetParkedNodes(t *testing.T) {
r := require.New(t)
tree, err := NewTreeBuilder().Build()
r.NoError(err)
r.NoError(tree.SetParkedNodes([][]byte{{0}}))
r.NoError(tree.AddLeaf([]byte{1}))
parkedNodes := [][]byte{{}, decode("b413f47d13ee2fe6c845b2ee141af81de858df4ec549a58b7970bb96645bc8d2")}
r.EqualValues(parkedNodes, tree.GetParkedNodes(nil))
tree, err = NewTreeBuilder().Build()
r.NoError(err)
r.NoError(tree.SetParkedNodes(parkedNodes))
r.NoError(tree.AddLeaf([]byte{2}))
parkedNodes = [][]byte{{2}, decode("b413f47d13ee2fe6c845b2ee141af81de858df4ec549a58b7970bb96645bc8d2")}
tree, err = NewTreeBuilder().Build()
r.NoError(err)
r.NoError(tree.SetParkedNodes(parkedNodes))
r.NoError(tree.AddLeaf([]byte{3}))
parkedNodes = [][]byte{{}, {}, decode("7699a4fdd6b8b6908a344f73b8f05c8e1400f7253f544602c442ff5c65504b24")}
r.EqualValues(parkedNodes, tree.GetParkedNodes(nil))
}
func decode(hexString string) []byte {
hash, err := hex.DecodeString(hexString)
if err != nil {
panic(err)
}
return hash
}
// Annotated example explaining how to use this package.
func ExampleTree() {
// First, we create a cache writer with caching policy and layer read-writer factory:
cacheWriter := cache.NewWriter(cache.MinHeightPolicy(0), cache.MakeSliceReadWriterFactory())
// We then initialize the tree:
tree, err := NewTreeBuilder().WithCacheWriter(cacheWriter).Build()
if err != nil {
fmt.Println("Error while building the tree:", err.Error())
return
}
// We add the leaves one-by-one:
for i := uint64(0); i < 8; i++ {
err := tree.AddLeaf(NewNodeFromUint64(i))
if err != nil {
fmt.Println("Error while adding a leaf:", err.Error())
return
}
}
// After adding some leaves we can access the root of the tree:
fmt.Println(tree.Root()) // 89a0f1577268cc19b0a39c7a69f804fd140640c699585eb635ebb03c06154cce
// If we need to generate a proof, we could derive the proven leaves from the root. Here we create a static set:
leavesToProve := setOf(0, 4, 7)
// We get a cache reader from the cache writer:
cacheReader, err := cacheWriter.GetReader()
if err != nil {
fmt.Println("Error while getting cache reader:", err.Error())
return
}
// We pass the cache into GenerateProof along with the set of leaves to prove:
sortedProvenLeafIndices, provenLeaves, proof, err := GenerateProof(leavesToProve, cacheReader)
if err != nil {
fmt.Println("Error while getting generating proof:", err.Error())
return
}
// We now have access to a sorted list of proven leaves, the values of those leaves and the Merkle proof for them:
fmt.Println(sortedProvenLeafIndices) // 0 4 7
fmt.Println(nodes(provenLeaves)) // 0000 0400 0700
fmt.Println(nodes(proof)) // 0100 0094 0500 0600
// We can validate these values using ValidatePartialTree:
valid, err := ValidatePartialTree(sortedProvenLeafIndices, provenLeaves, proof, tree.Root(), GetSha256Parent)
if err != nil {
fmt.Println("Error while validating proof:", err.Error())
return
}
fmt.Println(valid) // true
/***************************************************
| 89a0 |
| ba94 633b |
| cb59 .0094. bd50 fa67 |
| =0000=.0100. 0200 0300 =0400=.0500..0600.=0700= |
***************************************************/
}