You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
logger.debug("Received data message: %s", json.dumps(message, indent=2)[:5000])
36
+
35
37
# Sanity check universal message fields
36
38
if (not"sender"inmessage) or (notmessage["sender"].isdigit()) or (len(message["sender"]) !=16):
37
39
logger.error("Impossible condition, either you have discovered a bug in Coldwire, or the server is attempting to denial-of-service you. Skipping data message with no (or malformed) sender...")
"Impossible condition, either you have discovered a bug in Coldwire, or the server is attempting to denial-of-service you. Skipping data message with unknown data type (%s)...",
59
60
message["data_type"]
60
61
)
62
+
63
+
# *Sigh* I had to put this here because if we rotate before finishing reading all of the messages
64
+
# we would literally overwrite our own key.
65
+
# TODO: We need to keep the last used key and use it when decapsulation with new key gives invalid output
66
+
# because it might actually take some time for our keys to be uploaded to server + other servers and to the contact.
0 commit comments