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:
parent
cbe6902d03
commit
e18886e074
3 changed files with 25 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue