Expand description
Kernel-side passkey-capability verification.
The kernel sits behind the issuer surface (chio_custody_hw::IssuerService).
When a caller presents a PasskeyCapability to the kernel, the kernel
delegates to PasskeyCapabilityVerifier which:
- Refuses any capability with an empty signature (custody contract: empty signatures NEVER verify).
- Checks the audience pin matches the kernel’s configured identity.
- Checks the capability is live (
now < exp). - Reconstructs the signing message via
chio_custody_hw::mint::signing_messageand verifies the detached signature against the configured issuerchio_core_types::crypto::PublicKey.
All four gates are fail-closed: any path that does not strictly
satisfy its precondition returns a typed CustodyError with a
stable urn:chio:error:custody:* code.
§Async discipline
The verifier surface takes no &mut self.
PasskeyCapabilityVerifier::verify takes &self so it can be shared
behind an Arc<> and consumed concurrently from the async kernel.
Structs§
- Passkey
Capability Verifier - Kernel-side verifier for
PasskeyCapabilityenvelopes.