From 7b5319757107675ad54f38dcd916d74d6aa87772 Mon Sep 17 00:00:00 2001 From: j-berman Date: Sun, 5 Oct 2025 17:56:57 -0700 Subject: Cleaner validation (faster and saner) --- src/cryptonote_core/cryptonote_core.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cryptonote_core/cryptonote_core.cpp') diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index ee7e643a6..2df72a419 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -1041,6 +1041,8 @@ namespace cryptonote for(const auto& in: tx.vin) { CHECKED_GET_SPECIFIC_VARIANT(in, const txin_to_key, tokey_in, false); + if (rct::ki2rct(tokey_in.k_image) == rct::identity()) + return false; if (!(rct::scalarmultKey(rct::ki2rct(tokey_in.k_image), rct::curveOrder()) == rct::identity())) return false; } -- cgit v1.2.3