From f6ba8a73a2686a5a3e2c320d46c55b2aa903fe07 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 16 Jan 2020 08:05:53 +0100 Subject: [PATCH] src/key_search_helpers.cpp: in key_contains_word() skip first 3 chars of pubkey ("EOS") --- src/key_search_helpers.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/key_search_helpers.cpp b/src/key_search_helpers.cpp index 82d625e..7b6cf2c 100644 --- a/src/key_search_helpers.cpp +++ b/src/key_search_helpers.cpp @@ -12,7 +12,8 @@ void key_search_result(const std::string& word, const struct ec_keypair* pair) { bool key_contains_word(const struct ec_keypair* key, const strlist_t& word_list, std::string& word) { - std::string pubstr = wif_pub_encode(key->pub); + // skip first 3 chars, as those are always "EOS" + std::string pubstr = wif_pub_encode(key->pub).substr(3); strtolower(pubstr); for(auto const& w: word_list) {