xmr: payment ID computation fix

- typo in tail differentiating tag caused invalid short payment id encryption. was 0x8B, should have been 0x8D
- 69b646494b/src/device/device_default.cpp (L39)
- 69b646494b/src/device/device_default.cpp (L287)
pull/25/head
Dusan Klinec 6 years ago
parent dd5eba8da9
commit f810230e71
No known key found for this signature in database
GPG Key ID: 6337E118CCBCE103

@ -373,7 +373,7 @@ def _encrypt_payment_id(payment_id, public_key, secret_key):
derivation_p = crypto.generate_key_derivation(public_key, secret_key)
derivation = bytearray(33)
derivation = crypto.encodepoint_into(derivation, derivation_p)
derivation[32] = 0x8B
derivation[32] = 0x8D # ENCRYPTED_PAYMENT_ID_TAIL
hash = crypto.cn_fast_hash(derivation)
pm_copy = bytearray(payment_id)
for i in range(8):

Loading…
Cancel
Save