chitose.com.atproto.identity package#
Submodules#
chitose.com.atproto.identity.get_recommended_did_credentials module#
chitose.com.atproto.identity.request_plc_operation_signature module#
chitose.com.atproto.identity.resolve_handle module#
chitose.com.atproto.identity.sign_plc_operation module#
chitose.com.atproto.identity.submit_plc_operation module#
chitose.com.atproto.identity.update_handle module#
Module contents#
- class chitose.com.atproto.identity.Identity_(call: Callable[[str, list[tuple[str, str | None | int | list[str]]], bytes | dict[str, Any] | None, dict[str, str]], bytes], subscribe: Callable[[str, list[tuple[str, str | None | int | list[str]]], Callable[[str | bytes], None]], None])#
Bases:
objectWe recommend calling methods in this class via the chitose.BskyAgent class instead of creating instances of this class directly.
- get_recommended_did_credentials() bytes#
Describe the credentials that should be included in the DID doc of an account that is migrating to this service.
- request_plc_operation_signature() bytes#
Request an email with a code to in order to request a signed PLC operation. Requires Auth.
- resolve_handle(handle: str) bytes#
Resolves a handle (domain name) to a DID.
- Parameters:
handle – The handle to resolve.
- sign_plc_operation(token: str | None = None, rotation_keys: list[str] | None = None, also_known_as: list[str] | None = None, verification_methods: Any | None = None, services: Any | None = None) bytes#
Signs a PLC operation to update some value(s) in the requesting DID’s document.
- Parameters:
token – A token received through com.atproto.identity.requestPlcOperationSignature
- submit_plc_operation(operation: Any) bytes#
Validates a PLC operation to ensure that it doesn’t violate a service’s constraints or get the identity into a bad state, then submits it to the PLC registry
- update_handle(handle: str) bytes#
Updates the current account’s handle. Verifies handle validity, and updates did:plc document if necessary. Implemented by PDS, and requires auth.
- Parameters:
handle – The new handle.