-
-
Notifications
You must be signed in to change notification settings - Fork 120
Description
Both for setup-contact and group join protocol we want to synchronize "verification" states in order to simplify securejoin code and reduce the network protocol. First we introduce two new sync messages for Alice and bob respectively:
- when Alice determines that Bob is verified, send a sync message to Alice's other devices about it
- when Bob determines Alice is verified, send a sync message to Bob's other devices about it
Once verifications are explicitely synced we can:
- remove all of the
observe_securejoin...at https://github.com/deltachat/deltachat-core-rust/blob/main/src/securejoin.rs#L531 and simplify related code and tests - avoid sending "vc-contact-confirm[-received]" and "vg-member-added-received" message at all, thus simplifying the network protocol.
Note: maybe Alice does not need to send a sync message on verified group-join because alice's "vg-member-added" message is observable on her other devices anyway. But it probably makes sense to not try too hard to avoid verification-sync here, and rather have the "verification" sync independently from vg-member-added. In the case of setup-contact the verifications need to be synced because the other device doesn't have an observable message like the in vg-member-added group-join case.