aboutsummaryrefslogtreecommitdiff
path: root/include/signer/noscrypt_signer.hpp
diff options
context:
space:
mode:
authorLibravatar buttercat1791 <mjjurkoic@gmail.com>2024-06-15 10:04:52 -0500
committerLibravatar buttercat1791 <mjjurkoic@gmail.com>2024-06-15 10:04:52 -0500
commit5dd823a942afb9461426d2cbba9952526a22a755 (patch)
tree9815d09dba800aee3665ac42b526f965caa5b4b6 /include/signer/noscrypt_signer.hpp
parentb3854adaa0af1db6f8f7eecebf63229108608bb4 (diff)
Ping signer before asking it to sign an event
Diffstat (limited to 'include/signer/noscrypt_signer.hpp')
-rw-r--r--include/signer/noscrypt_signer.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/signer/noscrypt_signer.hpp b/include/signer/noscrypt_signer.hpp
index de8aab4..79359f3 100644
--- a/include/signer/noscrypt_signer.hpp
+++ b/include/signer/noscrypt_signer.hpp
@@ -90,10 +90,10 @@ private:
std::string _generateSignerRequestId();
/**
- * @brief Builds a wrapper event for JRPC-like signer messages.
+ * @brief Builds and signs a wrapper event for JRPC-like signer messages.
* @param jrpc The JRPC-like payload that will comprise the event content, as specified by
* NIP-46.
- * @returns A shared pointer to the wrapper event.
+ * @returns A shared pointer to the signed wrapper event.
*/
std::shared_ptr<nostr::data::Event> _wrapSignerMessage(nlohmann::json jrpc);
@@ -108,9 +108,9 @@ private:
/**
* @brief Pings the remote signer to confirm that it is online and available.
- * @returns `true` if the signer is available, `false` otherwise.
+ * @returns A promise that will be set to `true` if the signer is available, `false` otherwise.
*/
- bool _pingSigner();
+ std::promise<bool> _pingSigner();
#pragma region Cryptography