Kapsula protocol overview
/request
POST to the server, sending her public key, Bob’s public key, and any AES-GCM encrypted information in the POST body that helps Bob understand who is trying to contact him./request
POST again. This time, Alice’s invitation to Bob will be created and a push message will be sent to Bob. This message contains a random nonce value that Bob must present in the next step./accept
POST to the server, using the timestamp and nonce values he received in the previous step.On platforms where push notifications are not available, KAPSULA provides its own push infrastructure based on the KAPSULA Push Server System (PSS).
/messages
endpoint.GET /state-backup?pubkey={hash}
.{"type": "state_changed", "version": N, "hint_server": "server.example.com"}
.hint_server
field suggests which server to query first for the updated state.