Skip to main content

pdsx._internal.identity

identity checks: bidirectional handles, record proofs, PLC history.

Functions

verify_identity

resolve a handle or DID and check the handle in both directions. a handle only counts as verified when it resolves to the DID and the DID document lists it in alsoKnownAs. either half alone can be forged: anyone can put any handle in their own DID document, and a DNS record can point at any DID.

fetch_record_proof

fetch sync.getRecord from the repo’s own PDS and verify it. the signing key and PDS come from the DID document, never from the PDS.

plc_history

the did:plc audit log, each op checked and summarized.

Classes

Identity

Methods:

to_dict