diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-07 18:50:05 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-11-07 18:59:30 +0000 |
commit | c80f4d416d2a392dbf7c61b500672a6156b4b77d (patch) | |
tree | e826151a8a199655b37702ea3bdf0b675c0ed599 /src/crypto/crypto.h | |
parent | Merge pull request #1295 (diff) | |
download | monero-c80f4d416d2a392dbf7c61b500672a6156b4b77d.tar.xz |
wallet: fix output collision detection for view wallets
View wallets do not have the spend secret key, and are thus
unable to derive key images for incoming outputs. Moreover,
a previous patch set key images to zero as a means to mark
an output as having an unknown key image, so they could be
filled in when importing key images at a later time. That
later patch caused spurious collisions. We now use public
keys to detect duplicate outputs. Public keys obtained from
the blockchain are checked to be identical to the ones
derived locally, so can't be spoofed.
Diffstat (limited to 'src/crypto/crypto.h')
-rw-r--r-- | src/crypto/crypto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/crypto.h b/src/crypto/crypto.h index b396fc7db..9ca835d9e 100644 --- a/src/crypto/crypto.h +++ b/src/crypto/crypto.h @@ -236,6 +236,6 @@ namespace crypto { } } -CRYPTO_MAKE_COMPARABLE(public_key) +CRYPTO_MAKE_HASHABLE(public_key) CRYPTO_MAKE_HASHABLE(key_image) CRYPTO_MAKE_COMPARABLE(signature) |