Skip to main content

Module peer

Module peer 

Source
Expand description

The single participant type of the shared unlock protocol.

Every client runs exactly one SharedUnlockPeer. A peer syncs its lock state to the peer it recognizes as its leader and to the peers that sync to it.

A web peer is scoped to the origin it was validated against: it is only ever told about the users whose vault URL is that origin, in either direction.

Structsยง

InnerPeer ๐Ÿ”’
Inner implementation of the peer, containing the actual state and logic. The outer SharedUnlockPeer is a thin wrapper around an Arc to allow for shared ownership across async tasks.
PeerStartError
Error type for failure to start a shared unlock peer.
SharedUnlockPeer
One participant in the shared unlock protocol.

Functionsยง

spawn ๐Ÿ”’