Skip to main content

Module connect

Module connect 

Source
Expand description

Connection flow: magic link → verify → SocialWebNet peer

Functions§

accept_connection
Accept a magic link: parse + verify the identifier (self-certifying), then register the sender as a SocialWebNet peer (their WireGuard peering material). Half of the mutual peering; the return handshake completes it.
generate_connection_identifier
A signed connection identifier for this node (self-certifying front-door DID + WireGuard peering).
generate_magic_link
A magic link (deep link + https + mailto) carrying this node’s connection identifier.
list_social_peers
The SocialWebNet peers (accepted connections).
mesh_dialability
Per-peer mesh dialability — which accepted peers can form a SocialWebNet tunnel now, which must wait for the peer to reach us (roaming), and which are missing key material. Pure/read-only.
set_social_peer_active
Enable/disable a peer (the socially-defined revoke).
set_social_peer_endpoint
Set peer transport endpoint for mesh dial (host:port), or clear with empty/None.