CAP never authorizes.
Bounded parser and verifier for attached compact JWS envelopes.
The parser accepts only canonical protected-header and payload bytes. A key identifier remains an untrusted hint until an artifact verifier resolves it against its caller-supplied verification context.
Summary
Functions
Parse one canonical attached compact JWS under caller bounds.
Verify the envelope signature with one exact raw Ed25519 public key.
Types
Functions
@spec parse(term(), binary(), CharterAgreementProtocol.Limits.t()) :: {:ok, t()} | {:error, CharterAgreementProtocol.Error.t()}
Parse one canonical attached compact JWS under caller bounds.
@spec verify_signature(t(), term()) :: :ok | {:error, CharterAgreementProtocol.Error.t()}
Verify the envelope signature with one exact raw Ed25519 public key.