FastATP

PrivateChannel

A class in fastatp.peerapp (source).

PrivateChannel(
    handle: RepoHandle,
    ephemeral_did: str,
    wg_public_key: str,
    wg_private_key: str,
    endpoint_host: str | None,
    expires_at: str,
    issuer_did: str,
)

A live ephemeral private-response repo.

A fresh did:key + repo + WG identity, hosted gated with a TTL, admitting exactly one counterpart by public key. The reply is written into it and a signed Attestation points at it; when the TTL passes the host makes it unroutable and cuts subscribers (producer-authoritative lifetime, ADR 0015). Writes go only through this handle — never emit(did=...).

Attributes

Methods

put_record

async put_record(collection: str, rkey: str, record: RecordLike) -> CommitEvent | None

close

async close() -> None

Retire the channel now (before its TTL).