Decoding of key images and outputs files fixed

https://github.com/moneroexamples/onion-monero-blockchain-explorer/issues/115
This commit is contained in:
moneroexamples 2018-05-13 13:33:03 +08:00
parent 6625ae6c65
commit 1b6c8b2bbf
2 changed files with 4 additions and 4 deletions

View file

@ -3440,12 +3440,11 @@ public:
reinterpret_cast<const account_public_address*>(
decoded_raw_data.data());
address_parse_info address_info {*xmr_address, false};
address_parse_info address_info {*xmr_address, false, false, crypto::null_hash8};
context.insert({"address" , REMOVE_HASH_BRAKETS(
xmreg::print_address(address_info, nettype))});
context.insert({"viewkey" , REMOVE_HASH_BRAKETS(
fmt::format("{:s}", prv_view_key))});
context.insert({"viewkey" , pod_to_hex(prv_view_key)});
context.insert({"has_total_xmr" , false});
context.insert({"total_xmr" , string{}});
context.insert({"output_keys" , mstch::array{}});
@ -3461,6 +3460,7 @@ public:
std::stringstream iss;
iss << body;
boost::archive::portable_binary_iarchive ar(iss);
//boost::archive::binary_iarchive ar(iss);
ar >> outputs;

View file

@ -1075,7 +1075,7 @@ decrypt(const std::string &ciphertext,
}
crypto::chacha8(ciphertext.data() + sizeof(iv),
crypto::chacha20(ciphertext.data() + sizeof(iv),
ciphertext.size() - prefix_size,
key, iv, &plaintext[0]);