ContinuityResolver
A class in fastatp.did.resolver (source).
ContinuityResolver(
base: DIDResolver | None = None,
*,
strict: bool = False,
chain_fetch: ChainFetch | None = None,
timeout: float = 10.0,
)
Self-certifying did:web resolution.
Wraps a base resolver. When the resolved document advertises a continuity
twin (alsoKnownAs entry <did>:<slug>), the resolver fetches and
verifies the twin's append-only chain before trusting the served
document, and fails closed on any inconsistency:
- genesis hash != slug, or a page not rotation-signed (
chain.verify()); - the chain's genesis does not bind back to this DID;
- the served signing keys do not match the chain head (a domain thief who swapped keys but cannot extend the chain).
Tiers (edge policy): a vanilla did:web resolver ignores the alias
entirely (graceful degradation — never punished); this resolver verifies
if present and, if the alias is absent, returns the plain document
(adoption is opt-in); strict=True requires a continuity twin for
every resolved DID (refuse strangers without one).
Attributes
strict