diff options
author | buttercat1791 <mjjurkoic@gmail.com> | 2024-05-27 12:09:41 -0500 |
---|---|---|
committer | buttercat1791 <mjjurkoic@gmail.com> | 2024-05-27 12:09:41 -0500 |
commit | 32bb72b527966c1b7324afcd7fae466fc84b30d6 (patch) | |
tree | b0139829be0ae63b1333a9b857bee70ab2b3b5d1 /include/signer | |
parent | 1d6b704c15ee289037447fb566e7583962496650 (diff) |
refactor so no project header imports nostr.hpp
Diffstat (limited to 'include/signer')
-rw-r--r-- | include/signer/noscrypt_signer.hpp | 10 | ||||
-rw-r--r-- | include/signer/signer.hpp | 9 |
2 files changed, 10 insertions, 9 deletions
diff --git a/include/signer/noscrypt_signer.hpp b/include/signer/noscrypt_signer.hpp index 1476303..cdee3fd 100644 --- a/include/signer/noscrypt_signer.hpp +++ b/include/signer/noscrypt_signer.hpp @@ -1,11 +1,15 @@ #pragma once +#include <plog/Init.h> +#include <plog/Log.h> + extern "C" { #include <noscrypt.h> } -#include "signer.hpp" +#include "service/nostr_service_base.hpp" +#include "signer/signer.hpp" namespace nostr { @@ -14,7 +18,9 @@ namespace signer class NoscryptSigner : public INostrConnectSigner { public: - NoscryptSigner(std::shared_ptr<plog::IAppender> appender); + NoscryptSigner( + std::shared_ptr<plog::IAppender> appender, + std::shared_ptr<nostr::service::INostrServiceBase> nostrService); ~NoscryptSigner(); diff --git a/include/signer/signer.hpp b/include/signer/signer.hpp index e16aa38..319f739 100644 --- a/include/signer/signer.hpp +++ b/include/signer/signer.hpp @@ -1,12 +1,7 @@ #pragma once -#include <algorithm> -#include <random> -#include <sstream> -#include <tuple> - -#include <plog/Init.h> -#include <plog/Log.h> +#include <memory> +#include <string> #include "data/data.hpp" |