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.
# If we have keys, but no one-time-pads, we send new pads to the contact
126
-
ifnotour_pads:
127
-
logger.debug("We have no pads to send message")
125
+
# We rotate keys before generating and sending new batch of pads because
126
+
# ephemeral key exchanges always get processed before messages do.
127
+
# Which means if we generate and send pads with contact's, we would be using his old key, which would get overriden by the request, even if we send pads first
128
+
# This is because of our server archiecture which prioritizes PFS requests before messages.
129
+
#
130
+
# Another note, that means after batch ends, and rotation time comes, you won't be able to send messages until other contact is online.
131
+
# This will (hopefully) change in a future update
132
+
ifrotation_counter==rotate_at:
133
+
logger.info("We are rotating our ephemeral keys for contact (%s)", contact_id)
134
+
ui_queue.put({"type": "showinfo", "title": "Perfect Forward Secrecy", "message": f"We are rotating our ephemeral keys for contact ({contact_id[:32]})"})
# We rotate keys before generating and sending new batch of pads because
131
-
# ephemeral key exchanges always get processed before messages do.
132
-
# Which means if we generate and send pads with contact's, we would be using his old key, which would get overriden by the request, even if we send pads first
133
-
# This is because of our server archiecture which prioritizes PFS requests before messages.
134
-
#
135
-
# Another note, that means after batch ends, and rotation time comes, you won't be able to send messages until other contact is online.
136
-
# This will change in a future update
137
-
ifrotation_counter==rotate_at:
138
-
logger.info("We are rotating our ephemeral keys for contact (%s)", contact_id)
139
-
ui_queue.put({"type": "showinfo", "title": "Perfect Forward Secrecy", "message": f"We are rotating our ephemeral keys for contact ({contact_id[:32]})"})
0 commit comments