From 8926f163dad9d32dc06c3a142658a4e11d9c12c1 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Wed, 30 Sep 2026 15:48:51 +0200 Subject: refactor(hub): the transport holds an identity, never a private key Two public keys, sign() and shared(); the apps take transport.signFn. What holds the keys (this page, or the desktop main process) is the identity's business alone. Co-Authored-By: Claude Opus 5.5 --- packages/meshbay-hub/src/meshbay_hub/static/video-app.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'packages/meshbay-hub/src/meshbay_hub/static/video-app.js') diff --git a/packages/meshbay-hub/src/meshbay_hub/static/video-app.js b/packages/meshbay-hub/src/meshbay_hub/static/video-app.js index 9e2db1c..4757395 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/video-app.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/video-app.js @@ -493,10 +493,7 @@ function SeasonMenu({ seasons, selected, selectedYear, onSelect }) { // each caller builds one from the connection it already has. function buildSignFn(transportRef) { const transport = transportRef.current; - const sk = transport && transport.sessionKeys && transport.sessionKeys.skEdB64; - return (sk && window.MeshBayKeys) - ? (transcript) => window.MeshBayKeys.signBytes(sk, transcript) - : null; + return (transport && transport.signFn) || null; } function TmdbSearchOverlay({ -- cgit v1.2.3