mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
dont show full private viewkey when decoding output
This commit is contained in:
parent
066a22823a
commit
bea2bb074d
1 changed files with 8 additions and 1 deletions
|
@ -1605,13 +1605,20 @@ namespace xmreg
|
||||||
+ "/" + xmr_address_str
|
+ "/" + xmr_address_str
|
||||||
+ "/" + viewkey_str;
|
+ "/" + viewkey_str;
|
||||||
|
|
||||||
|
|
||||||
|
string viewkey_str_partial = viewkey_str;
|
||||||
|
|
||||||
|
// dont show full private keys. Only file first and last letters
|
||||||
|
for (size_t i = 3; i < viewkey_str_partial.length() - 2; ++i)
|
||||||
|
viewkey_str_partial[i] = '*';
|
||||||
|
|
||||||
// initalise page tempate map with basic info about blockchain
|
// initalise page tempate map with basic info about blockchain
|
||||||
mstch::map context {
|
mstch::map context {
|
||||||
{"testnet" , testnet},
|
{"testnet" , testnet},
|
||||||
{"tx_hash" , tx_hash_str},
|
{"tx_hash" , tx_hash_str},
|
||||||
{"tx_prefix_hash" , pod_to_hex(txd.prefix_hash)},
|
{"tx_prefix_hash" , pod_to_hex(txd.prefix_hash)},
|
||||||
{"xmr_address" , xmr_address_str},
|
{"xmr_address" , xmr_address_str},
|
||||||
{"viewkey" , viewkey_str},
|
{"viewkey" , viewkey_str_partial},
|
||||||
{"tx_pub_key" , pod_to_hex(txd.pk)},
|
{"tx_pub_key" , pod_to_hex(txd.pk)},
|
||||||
{"blk_height" , tx_blk_height_str},
|
{"blk_height" , tx_blk_height_str},
|
||||||
{"tx_size" , fmt::format("{:0.4f}",
|
{"tx_size" , fmt::format("{:0.4f}",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue