diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-09-28 15:48:04 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-09-28 15:48:04 +0200 |
| commit | 5330896c0e8023053d4cd15961b2ae0482686ca6 (patch) | |
| tree | e20b35069d4a7a87b1271e9063adb6a5c8e1b157 /packages/meshbay-hub/tests/test_challenge_signature_client.py | |
| parent | 0584daa4b77048712c42fa113e77efdd31fc0336 (diff) | |
| download | meshbay-5330896c0e8023053d4cd15961b2ae0482686ca6.tar.gz | |
fix: refuse an unsigned handshake challenge
Every node the 4.0 floor admits signs its challenge, and one without a
channel binding could not complete the proof anyway, so a missing
signature is refused like a wrong one (browser and QUIC client).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/tests/test_challenge_signature_client.py')
| -rw-r--r-- | packages/meshbay-hub/tests/test_challenge_signature_client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/meshbay-hub/tests/test_challenge_signature_client.py b/packages/meshbay-hub/tests/test_challenge_signature_client.py index b904698..c13c55d 100644 --- a/packages/meshbay-hub/tests/test_challenge_signature_client.py +++ b/packages/meshbay-hub/tests/test_challenge_signature_client.py @@ -85,7 +85,7 @@ def test_the_browser_holds_the_node_to_its_challenge(tmp_path): cases = { "signed over this connection": (case(), "true"), - "an older node, no signature": (case(sig=None), "false"), + "no signature": (case(sig=None), "refused"), "another key announced": (case(pk=sk_other), "refused"), "a relay's fingerprint": (case(answer=os.urandom(32)), "refused"), "a replay under another nonce": (case(nonce=os.urandom(32)), "refused"), |