mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
hidden key images form added, but not used for now
This commit is contained in:
parent
1cd5426d94
commit
02b4e8251a
2 changed files with 49 additions and 23 deletions
14
main.cpp
14
main.cpp
|
@ -254,6 +254,20 @@ int main(int ac, const char* av[]) {
|
||||||
return xmrblocks.show_checkrawkeyimgs(raw_data);
|
return xmrblocks.show_checkrawkeyimgs(raw_data);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
CROW_ROUTE(app, "/genrawkeyimgs").methods("POST"_method)
|
||||||
|
([&](const crow::request& req) {
|
||||||
|
|
||||||
|
map<std::string, std::string> post_body = xmreg::parse_crow_post_data(req.body);
|
||||||
|
|
||||||
|
for (auto& kv: post_body)
|
||||||
|
{
|
||||||
|
cout << kv.first << ": " << kv.second << endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
return xmrblocks.show_checkrawkeyimgs(string{});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
CROW_ROUTE(app, "/search").methods("GET"_method)
|
CROW_ROUTE(app, "/search").methods("GET"_method)
|
||||||
([&](const crow::request& req) {
|
([&](const crow::request& req) {
|
||||||
|
|
|
@ -24,9 +24,17 @@
|
||||||
<h4>Key images for address: {{address}}</h4>
|
<h4>Key images for address: {{address}}</h4>
|
||||||
|
|
||||||
<div class="center">
|
<div class="center">
|
||||||
|
|
||||||
|
<form action="/genrawkeyimgs" method="post" style="width:100%; margin-top:15px" class="style-1">
|
||||||
<table class="center" style="width:80%">
|
<table class="center" style="width:80%">
|
||||||
<tr><td>Key no.</td><td>Key image</td><td>Timestamp</td></td><td>Is spent?</td></tr>
|
<tr>
|
||||||
|
<td>Key no.</td>
|
||||||
|
<td>Key image</td>
|
||||||
|
<td>Timestamp</td>
|
||||||
|
<td>Is spent?</td>
|
||||||
|
</tr>
|
||||||
{{#key_imgs}}
|
{{#key_imgs}}
|
||||||
|
<input type="hidden" id="key_img_{{key_image}}" name="key_sig_pair_{{key_image}}" value="{{signature}}">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{key_no}}</td>
|
<td>{{key_no}}</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -49,6 +57,10 @@
|
||||||
</tr>
|
</tr>
|
||||||
{{/key_imgs}}
|
{{/key_imgs}}
|
||||||
</table>
|
</table>
|
||||||
|
<br/>
|
||||||
|
<!-- <input type="submit" name="action" value="remove selected keys">-->
|
||||||
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue