1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-25 10:33:42 +02:00

cli: implement support for K1 keys (default, can be switched with --legacy flag)

This commit is contained in:
Henrik Hautakoski 2023-04-04 18:58:14 +02:00
parent cbe6902d03
commit e18886e074
3 changed files with 25 additions and 14 deletions

View file

@ -26,6 +26,7 @@
#include <string>
#include <libeosio/ec.hpp>
#include <libeosio/WIF.hpp>
#include <eoskeygen/core/string.hpp>
#include <eoskeygen/key_search.hpp>
#include <eoskeygen/key_search_result.hpp>
@ -37,7 +38,7 @@ class Dictionary;
class CliKeySearchResult : public IKeySearchResult
{
public:
CliKeySearchResult(const Dictionary& dict, const std::string& prefix);
CliKeySearchResult(const Dictionary& dict, const libeosio::wif_codec_t& codec);
virtual void onResult(const struct libeosio::ec_keypair* key, const struct KeySearch::result& result);
@ -45,7 +46,7 @@ protected :
const Dictionary& m_dict;
std::string m_prefix;
libeosio::wif_codec_t m_codec;
};
} // namespace eoskeygen