-
Notifications
You must be signed in to change notification settings - Fork 0
/
tokimark.puml
78 lines (77 loc) · 1.47 KB
/
tokimark.puml
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
@startuml
skinparam BackgroundColor transparent
skinparam componentStyle rectangle
skinparam component {
borderColor Blue
borderThickness 5
}
left to right direction
frame "Block" {
[PeerHash1]
[PeerHash2]
[PeerHash3]
[Timestamp]
[AnchorBlockHash]
rectangle DataHash
[PeriodHash]
}
[PeerHash1] -[hidden]left-> [PeerHash2]
[PeerHash2] -[hidden]left-> [PeerHash3]
[PeerHash3] -[hidden]left-> [Timestamp]
[Timestamp] -[hidden]left-> [AnchorBlockHash]
[AnchorBlockHash] -[hidden]left-> DataHash
DataHash -[hidden]left-> [PeriodHash]
frame FromClient1 {
[DocHash1]
[Salt1]
}
[DocHash1] -[hidden]left-> [Salt1]
frame FromClient2 {
rectangle DocHash2
rectangle Salt2
}
DocHash2 -[hidden]left-> Salt2
frame {
rectangle H1
[H2]
rectangle H3
}
H1 -[hidden]left-> [H2]
[DocHash1] --> H1
[Salt1] --> H1
DocHash2 --> [H2]
Salt2 --> [H2]
H1 --> H3
[H2] --> H3
H3 --> DataHash
FromClient1 -[hidden]> FromClient2
frame {
rectangle H4
rectangle H5
rectangle H6
rectangle H7
rectangle H8
rectangle H9
}
H4 -[hidden]left-> H5
H5 -[hidden]left-> H6
H7 -[hidden]left-> H8
[PeerHash1] --> H4
[PeerHash2] --> H4
[PeerHash3] --> H5
[Timestamp] --> H5
[AnchorBlockHash] --> H6
DataHash --> H6
[PeriodHash] --> H8
H4 --> H7
H5 --> H7
H6 --> H8
H7 --> H9
H8 --> H9
rectangle TokimarkHash1
H9 --> TokimarkHash1
legend
Graph of hash operations, showing how to construct DataHash.
Blue boxes are hashes that appear in Tokimark.
end legend
@enduml