1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-17 03:50:03 +02:00

src/key_search_helpers.cpp: in key_contains_word() skip first 3 chars of pubkey ("EOS")

This commit is contained in:
Henrik Hautakoski 2020-01-16 08:05:53 +01:00
parent 2db52b9406
commit f6ba8a73a2

View file

@ -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) {