integrating openmonero's fix for mymonero-app-js#240 for spending rct coinbase outs

pull/12/head
Paul Shapiro 6 years ago
parent 6f11fff141
commit 13b943d580

@ -153,6 +153,11 @@ bool _rct_hex_to_decrypted_mask(
THROW_WALLET_EXCEPTION_IF(!string_tools::validate_hex(64, encrypted_mask_str), error::wallet_internal_error, "Invalid rct mask: " + encrypted_mask_str);
string_tools::hex_to_pod(encrypted_mask_str, encrypted_mask);
//
if (encrypted_mask == rct::identity()) { // NOTE: ringct coinbase txs have the identity mask manually provided unencrypted in the rct field by the hosted lightwallet backend
decrypted_mask = encrypted_mask;
return true;
}
//
// Decrypt the mask
crypto::key_derivation derivation;
bool r = generate_key_derivation(tx_pub_key, view_secret_key, derivation);

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save