Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
wallet_api.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
12{
13 public:
14 virtual ~wallet_api() {}
15
21
28 virtual bool is_locked() const = 0;
29
33 virtual void lock() = 0;
34
42 virtual void unlock(string password) = 0;
43
51 virtual void check_password(string password) = 0;
52
59 virtual void set_password(string password) = 0;
60
67 virtual map<public_key_type, private_key_type> list_keys() = 0;
68
72 virtual flat_set<public_key_type> list_public_keys() = 0;
73
80 virtual bool import_key( string wif_key ) = 0;
81
88 virtual bool remove_key( string key ) = 0;
89
96 virtual string create_key( string key_type ) = 0;
97
100 virtual std::optional<signature_type> try_sign_digest( const digest_type digest, const public_key_type public_key ) = 0;
101};
102
103}}
contains only the public point of an elliptic curve key.
virtual void lock()=0
virtual void check_password(string password)=0
virtual bool import_key(string wif_key)=0
virtual std::optional< signature_type > try_sign_digest(const digest_type digest, const public_key_type public_key)=0
virtual void unlock(string password)=0
virtual map< public_key_type, private_key_type > list_keys()=0
virtual bool is_locked() const =0
virtual bool remove_key(string key)=0
virtual void set_password(string password)=0
virtual private_key_type get_private_key(public_key_type pubkey) const =0
virtual string create_key(string key_type)=0
virtual flat_set< public_key_type > list_public_keys()=0
fc::sha256 digest(const T &value)
Definition digest.hpp:9
Definition name.hpp:106
CK_BYTE_PTR pubkey
struct @108 key_type