Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
yubihsm_wallet.hpp
Go to the documentation of this file.
1#pragma once
2
5
6using namespace std;
7using namespace sysio::chain;
8
9namespace sysio { namespace wallet {
10
11namespace detail {
12struct yubihsm_wallet_impl;
13}
14
15class yubihsm_wallet final : public wallet_api {
16 public:
17 yubihsm_wallet(const string& connector, const uint16_t authkey);
19
21
22 bool is_locked() const override;
23 void lock() override;
24 void unlock(string password) override;
25 void check_password(string password) override;
26 void set_password(string password) override;
27
28 map<public_key_type, private_key_type> list_keys() override;
29 flat_set<public_key_type> list_public_keys() override;
30
31 bool import_key(string wif_key) override;
32 string create_key(string key_type) override;
33 bool remove_key(string key) override;
34
35 std::optional<signature_type> try_sign_digest(const digest_type digest, const public_key_type public_key) override;
36
37 private:
38 std::unique_ptr<detail::yubihsm_wallet_impl> my;
39};
40
41}}
contains only the public point of an elliptic curve key.
bool remove_key(string key) override
void check_password(string password) override
map< public_key_type, private_key_type > list_keys() override
void unlock(string password) override
void set_password(string password) override
yubihsm_wallet(const string &connector, const uint16_t authkey)
std::optional< signature_type > try_sign_digest(const digest_type digest, const public_key_type public_key) override
flat_set< public_key_type > list_public_keys() override
bool import_key(string wif_key) override
bool is_locked() const override
string create_key(string key_type) override
private_key_type get_private_key(public_key_type pubkey) const override
fc::sha256 digest(const T &value)
Definition digest.hpp:9
Definition name.hpp:106
unsigned short uint16_t
Definition stdint.h:125
CK_BYTE_PTR pubkey
struct @108 key_type