use decrypt_payment_id from device class

master
moneroexamples 7 years ago
parent 4f15c6164d
commit 450ef84eca

@ -1813,7 +1813,7 @@ namespace xmreg
if (decrypted_payment_id8 != null_hash8) if (decrypted_payment_id8 != null_hash8)
{ {
if (decrypt_payment_id(decrypted_payment_id8, pub_key, prv_view_key)) if (mcore->get_device()->decrypt_payment_id(decrypted_payment_id8, pub_key, prv_view_key))
{ {
context["decrypted_payment_id8"] = pod_to_hex(decrypted_payment_id8); context["decrypted_payment_id8"] = pod_to_hex(decrypted_payment_id8);
} }
@ -5272,7 +5272,7 @@ namespace xmreg
if (decrypted_payment_id8 != null_hash8) if (decrypted_payment_id8 != null_hash8)
{ {
if (decrypt_payment_id(decrypted_payment_id8, txd.pk, prv_view_key)) if (mcore->get_device()->decrypt_payment_id(decrypted_payment_id8, txd.pk, prv_view_key))
{ {
payment_id = pod_to_hex(decrypted_payment_id8); payment_id = pod_to_hex(decrypted_payment_id8);
} }

Loading…
Cancel
Save