mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-08-13 06:00:29 +02:00
fix: cross-node gate decryption, UI text scaling, aircraft zoom
- Derive gate envelope AES key from gate ID via HKDF so all nodes sharing a gate can decrypt each other's messages (was node-local) - Preserve gate_envelope/reply_to in chain payload normalization - Bump Wormhole modal text from 9-10px to 12-13px - Add aircraft icon zoom interpolation (0.8→2.0 across zoom 5-12) - Reduce Mesh Chat panel text sizes for tighter layout
This commit is contained in:
@@ -49,6 +49,15 @@ def normalize_gate_message_payload(payload: dict[str, Any]) -> dict[str, Any]:
|
||||
epoch = _safe_int(payload.get("epoch", 0), 0)
|
||||
if epoch > 0:
|
||||
normalized["epoch"] = epoch
|
||||
# gate_envelope carries cross-node decryptable ciphertext — preserve it
|
||||
# on-chain so receiving nodes can decrypt without MLS key exchange.
|
||||
gate_envelope = str(payload.get("gate_envelope", "") or "").strip()
|
||||
if gate_envelope:
|
||||
normalized["gate_envelope"] = gate_envelope
|
||||
# reply_to is a display-only parent message reference.
|
||||
reply_to = str(payload.get("reply_to", "") or "").strip()
|
||||
if reply_to:
|
||||
normalized["reply_to"] = reply_to
|
||||
return normalized
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user