key images file magick numbers updated and viewkey input filed added to key images checker

master
moneroexamples 8 years ago
parent fe5a7443b4
commit 2d2ba48b7d

@ -9,9 +9,10 @@
#define BLOCKCHAIN_DB DB_LMDB
#define KEY_IMAGE_EXPORT_FILE_MAGIC "Monero key image export\001"
#define UNSIGNED_TX_PREFIX "Monero unsigned tx set\002"
#define SIGNED_TX_PREFIX "Monero signed tx set\002"
#define KEY_IMAGE_EXPORT_FILE_MAGIC "Monero key image export\002"
#define OUTPUT_EXPORT_FILE_MAGIC "Monero output export\002"
#include "net/http_base.h"

@ -2018,7 +2018,7 @@ namespace xmreg {
}
// header is magic + public spend and keys
const size_t header_lenght = magiclen + 2 * sizeof(crypto::public_key);
const size_t header_lenght = 2 * sizeof(crypto::public_key);
const size_t key_img_size = sizeof(crypto::key_image);
const size_t record_lenght = key_img_size + sizeof(crypto::signature);
@ -2035,11 +2035,11 @@ namespace xmreg {
// initalize page template context map
mstch::map context {
{"testnet" , testnet},
{"address" , xmreg::print_address(*xmr_address, testnet)},
{"testnet" , testnet},
{"address" , xmreg::print_address(*xmr_address, testnet)},
{"has_total_xmr" , false},
{"total_xmr" , string{}},
{"key_imgs" , mstch::array{}}
{"key_imgs" , mstch::array{}}
};
unique_ptr<xmreg::MyLMDB> mylmdb;

@ -25,7 +25,10 @@
<form action="/checkrawkeyimgs" method="post" style="width:100%; margin-top:15px" class="style-1">
Paste base64 encoded, signed key images data here<br/>
(In Linux, can get base64 signed raw tx data: <i>base64 signed_key_images | xclip -selection clipboard</i>)<br/>
<textarea name="rawkeyimgsdata" rows="20" cols="80"></textarea>
<textarea name="rawkeyimgsdata" rows="20" cols="80"></textarea><br/><br/>
Viewkey (<i>key image file data is encoded using your viewkey. Thus is needed for decryption</i>)
<br/>
<input type="text" name="viewkey" size="80">
<br/>
<input type="submit" name="action" value="check">
</form>

Loading…
Cancel
Save