pub fn is_proof_typed_credential(presented: &[u8]) -> boolExpand description
Whether presented is a request- or response-proof CWT rather than a
credential.
A proof CWT and a credential are disjoint by construction (§4.2): a
verifier MUST reject a token whose protected type does not match the slot
it was presented in. This is the credential slot’s half of that rule, and
it covers both presentations — a compact-serialization token whose header
typ names a proof media type, and a raw COSE object carrying the proof
typ header (the shape a CWT credential slot would accept).
It is a cheap, bounded structural check: it never verifies a signature and never consults an issuer key, because a proof presented as a credential must be refused before any key material is resolved.