From 09ebdf37c9a85d70283090faeddcb6637c093ff3 Mon Sep 17 00:00:00 2001 From: peg Date: Mon, 26 Aug 2024 10:19:38 +0200 Subject: [PATCH] Update error message for unexpected participant --- .../src/signing_client/protocol_transport.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/threshold-signature-server/src/signing_client/protocol_transport.rs b/crates/threshold-signature-server/src/signing_client/protocol_transport.rs index 635d8814d..992e777f2 100644 --- a/crates/threshold-signature-server/src/signing_client/protocol_transport.rs +++ b/crates/threshold-signature-server/src/signing_client/protocol_transport.rs @@ -170,8 +170,7 @@ async fn handle_initial_incoming_ws_message( }; { - // Check that the given public key matches the public key we got in the - // UserTransactionRequest or register transaction + // Check that the given public key is of the ones we are expecting for this protocol session let mut listeners = app_state .listener_state .listeners @@ -186,8 +185,7 @@ async fn handle_initial_incoming_ws_message( // Make the signing process fail, since one of the commitee has misbehaved listeners.remove(&msg.session_id); return Err(SubscribeErr::Decryption( - "Public key does not match that given in UserTransactionRequest or register \ - transaction" + "Public key does not match any of those expected for this protocol session" .to_string(), )); }