diff options
Diffstat (limited to 'src/pubkey.h')
-rw-r--r-- | src/pubkey.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pubkey.h b/src/pubkey.h index ef7e322..5cb693b 100644 --- a/src/pubkey.h +++ b/src/pubkey.h @@ -34,6 +34,9 @@ public: static SecretKey generate(const Storage & st); static optional<SecretKey> load(const Stored<PublicKey> & st); + static optional<SecretKey> fromData(const Stored<PublicKey> &, const vector<uint8_t> &); + vector<uint8_t> getData() const; + Stored<PublicKey> pub() const { return pub_; } template<class T> |