MCPcopy Create free account
hub / github.com/chatmail/core / securejoin

Function securejoin

src/securejoin.rs:248–265  ·  view source on GitHub ↗
(context: &Context, qr: &str)

Source from the content-addressed store, hash-verified

246}
247
248async fn securejoin(context: &Context, qr: &str) -> Result<ChatId> {
249 /*========================================================
250 ==== Bob - the joiner's side =====
251 ==== Step 2 in "Setup verified contact" protocol =====
252 ========================================================*/
253
254 info!(context, "Requesting secure-join ...",);
255 let qr_scan = check_qr(context, qr).await?;
256
257 let invite = QrInvite::try_from(qr_scan)?;
258
259 stats::count_securejoin_invite(context, &invite)
260 .await
261 .log_err(context)
262 .ok();
263
264 bob::start_protocol(context, invite).await
265}
266
267/// Send handshake message from Alice's device.
268async fn send_alice_handshake_msg(

Callers 1

Calls 4

check_qrFunction · 0.85
count_securejoin_inviteFunction · 0.85
start_protocolFunction · 0.85
log_errMethod · 0.80

Tested by

no test coverage detected