Skip to main content

Module remote

Module remote 

Source
Expand description

Picking the remote a grant, epoch or visibility command talks to, the audience it signs for, and waiting for the server to finish (WP-2.14).

Structs§

Target
A Connect remote resolved from a remote name or an mkit+https:// URL.

Enums§

Driven
How drive ended.

Functions§

check_audiences
SPEC-WRITE-GRANTS §3.2: a loopback audience is refused unless the remote itself is a loopback mkit+http:// development remote. Every local deployment shares a loopback audience, so a statement signed for one would verify at all of them.
drive
Call call until it is Completion::Done, waiting the server’s Retry-After between calls. call sends the same request every time: the caller signs once and re-sends the identical statement bytes (SPEC-WRITE-GRANTS §5.2: the same epoch is a retry), never a fresh nonce.
interruptible_sleep
Sleep for duration in short slices so Ctrl-C is prompt. Returns false if the process was asked to shut down.
resolve_target
Resolve arg as a remote name, or take it as a URL if it starts with mkit+. With no arg, the user’s trusted_remote_endpoint.