aboutsummaryrefslogtreecommitdiffstats
path: root/src/federation
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-18 11:17:17 +0000
committertv <tv@krebsco.de>2026-11-18 12:23:58 +0100
commit55f36a960a90aedcb6e899ea963cc642fd630a82 (patch)
tree62221be0b94e635a06e811d1a46c40c2dc9bfb7f /src/federation
parentac66571a87cf36e769bb8308568808e3a0c2ce31 (diff)
continuum-party: why waiting for the ssh-agent may blockecdsa
The client signs one event at a time and does nothing else meanwhile, and an agent may wait for its user as long as that takes.
Diffstat (limited to 'src/federation')
-rw-r--r--src/federation/party.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/federation/party.rs b/src/federation/party.rs
index 5d18eb8..9d9c268 100644
--- a/src/federation/party.rs
+++ b/src/federation/party.rs
@@ -429,6 +429,10 @@ impl Signer {
Ok(event::signed(key, &self.party, &line, deps, does))
}
Signing::Agent(key, socket) => {
+ // The agent's answer is waited for blocking the thread, in async code: the
+ // client signs one event at a time and does nothing else meanwhile, and an
+ // agent may wait for its user (a touch, a confirmation) as long as that
+ // takes, which nothing here should cut short.
event::signed_by(&self.party, &key.line(), deps, does, |bytes| {
keys::sign_through(socket, key, bytes)
})