mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-07-03 11:53:41 +02:00
src/key_search_helpers.cpp: in key_contains_word() skip first 3 chars of pubkey ("EOS")
This commit is contained in:
parent
2db52b9406
commit
f6ba8a73a2
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
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);
|
strtolower(pubstr);
|
||||||
|
|
||||||
for(auto const& w: word_list) {
|
for(auto const& w: word_list) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue