-
Notifications
You must be signed in to change notification settings - Fork 269
/
my_outputs.html
168 lines (150 loc) · 6.39 KB
/
my_outputs.html
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
<div>
<H4 style="margin:5px">Tx hash: <a href="/tx/{{tx_hash}}">{{tx_hash}}</a></H4>
<H5 style="margin:5px">Tx public key: {{tx_pub_key}}</H5>
{{#has_payment_id}}
<H5 style="margin:5px">Payment id: {{payment_id}}</H5>
{{/has_payment_id}}
{{#has_payment_id8}}
{{^decrypted_payment_id8}}
<H5 style="margin:5px">Payment id (encrypted): {{payment_id8}}</H5>
{{/decrypted_payment_id8}}
{{#decrypted_payment_id8}}
<H5 style="margin:5px">Payment id (decrypted): {{decrypted_payment_id8}}
(value incorrect if you are not the recipient of the tx)</H5>
{{/decrypted_payment_id8}}
{{/has_payment_id8}}
<table class="center" style="width: 80%; margin-top:10px">
<tr>
<td>Block: {{blk_height}}</td>
<td>Timestamp [UCT]: {{blk_timestamp}}</td>
<td>Age [y:d:h:m:s]: {{delta_time}}</td>
<td>Fee: {{tx_fee}}</td>
<td>Tx size: {{tx_size}} kB</td>
</tr>
</table>
{{^tx_prove}}
<h3>Checking which outputs belong to the given address and viewkey</h3>
<h5>address: {{xmr_address}}</h5>
<h5>viewkey: {{viewkey}}</h5>
{{/tx_prove}}
{{#tx_prove}}
<h3>Prove that you send this tx to the given address</h3>
<h5>address: {{xmr_address}}</h5>
<h5>Tx private key: {{viewkey}}</h5>
{{/tx_prove}}
<h3>Outputs ({{outputs_no}})</h3>
<div class="center">
<table class="center" >
<tr>
<td>output public key</td>
<td>amount</td>
<td>output match?</td>
</tr>
{{#outputs}}
<tr>
<td>{{output_idx}}: {{out_pub_key}}</td>
<td>{{amount}}</td>
{{#mine_output}}
<td>
<span style="color: #008009;font-weight: bold">
{{mine_output}}
</span>
</td>
{{/mine_output}}
{{^mine_output}}
<td>{{mine_output}}</td>
{{/mine_output}}
</tr>
{{/outputs}}
</table>
<h3>
Sum XMR from matched outputs (i.e., incoming XMR):
{{#found_our_outputs}}
{{sum_xmr}}
{{/found_our_outputs}}
{{^found_our_outputs}}
0.000000000000
{{/found_our_outputs}}
</h3>
<h4>
<a href="{{domain_url}}{{shortcut_url}}" target="_blank">link to this page</a>
</h4>
</div>
{{#show_inputs}}
<br/>
<label id="show-decoded-inputs" for="toggle-1">Show decoded inputs</label>
<input type="checkbox" id="toggle-1">
<div id="decoded-inputs">
<h3>Inputs ({{inputs_no}})</h3>
<div class="center">
{{#inputs}}
<h4>Key image: {{key_image}}, amount {{key_image_amount}}</h4>
{{#mixins}}
{{#has_mixin_outputs}}
{{#mixin_outputs}}
<div class="center">
<table class="center">
<tr>
<td style="text-align: center;">
Ring member {{mixin_pub_key}} might use your outputs
<br/>
from tx of hash: <a href="/tx/{{mix_tx_hash}}">{{mix_tx_hash}}</a>
<br/>(tx public key: {{mix_tx_pub_key}})
</td>
</tr>
{{#has_found_outputs}}
<tr><td>
<div class="center">
<table class="center">
<tr>
<td>output public key</td>
<td>amount</td>
<td>output match?</td>
</tr>
{{#found_outputs}}
<tr>
<td>{{my_public_key}}</td>
<td>{{amount}}</td>
<td>
{{#mine_output}}
<span style="color: #008009;font-weight: bold">{{mine_output}}</span>{{#out_in_match}}*{{/out_in_match}}
{{/mine_output}}
{{^mine_output}}
{{mine_output}}
{{/mine_output}}
</td>
</tr>
{{/found_outputs}}
</table>
</div>
</td></tr>
{{/has_found_outputs}}
</table>
</div>
{{/mixin_outputs}}
{{/has_mixin_outputs}}
{{/mixins}}
{{/inputs}}
</div>
<h3>
Sum XMR from matched and marked by * ring member's outputs: {{sum_mixin_xmr}}
<br/>
<span style="font-size: 16px"> Possible spending is:
{{possible_spending}} (tx fee included)
</span>
<br/>
<span style="font-size: 14px">Note: without private spendkey,
it is impossible to know whether this is your real spending. <br/>
So do not take this number seriously.
It is probably totally wrong anyway.</span>
<br/>
<span style="font-size: 14px">
Number of possible our mixins is {{no_all_possible_mixins}}
for {{all_possible_mixins_amount}} xmr
(amount as uint64).
</span>
</h3>
</div>
{{/show_inputs}}
</div>
<br/>