diff options
Diffstat (limited to 'include/signer')
-rw-r--r-- | include/signer/signer.hpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/include/signer/signer.hpp b/include/signer/signer.hpp index e68df93..ee2673f 100644 --- a/include/signer/signer.hpp +++ b/include/signer/signer.hpp @@ -12,6 +12,16 @@ namespace signer class ISigner { public: + /** + * @brief Signs the given Nostr event. + * @param event The event to sign. + * @remark The event's `sig` field will be updated in-place with the signature. + */ + virtual void sign(std::shared_ptr<nostr::data::Event> event) = 0; +}; + +class INostrConnectSigner : public ISigner +{ virtual void receiveConnection(std::string connectionToken) = 0; virtual void initiateConnection( @@ -19,13 +29,6 @@ public: std::string name, std::string url, std::string description) = 0; - - /** - * @brief Signs the given Nostr event. - * @param event The event to sign. - * @remark The event's `sig` field will be updated in-place with the signature. - */ - virtual void sign(std::shared_ptr<nostr::data::Event> event) = 0; }; } // namespace signer } // namespace nostr |