mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-06-18 04:00:03 +02:00
gui: implement support for K1 keys.
This commit is contained in:
parent
e18886e074
commit
9ed6e6ab80
6 changed files with 73 additions and 27 deletions
|
|
@ -24,16 +24,14 @@
|
|||
#include "Settings.hpp"
|
||||
|
||||
namespace priv {
|
||||
bool fio_keys = false;
|
||||
|
||||
libeosio::wif_codec_t key_format = libeosio::WIF_CODEC_K1;
|
||||
} // namespace priv
|
||||
|
||||
bool Settings::shouldGenerateFioKeys()
|
||||
{
|
||||
return priv::fio_keys;
|
||||
void Settings::setKeyCodec(const libeosio::wif_codec_t& format) {
|
||||
priv::key_format = format;
|
||||
}
|
||||
|
||||
void Settings::setGenerateFioKeys(bool value)
|
||||
{
|
||||
priv::fio_keys = value;
|
||||
const libeosio::wif_codec_t& Settings::getKeyCodec() {
|
||||
return priv::key_format;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue