BoundedAuthorityProtocol. V2. DecodedProof
(Bounded Authority Protocol v1.0.0)
Copy Markdown
View Source
Closed bounded decoded proof with explicitly unevaluated verification.
Returned by BoundedAuthorityProtocol.V2.decode_proof/2 for diagnosis only; it is never a verified value.
Fields
version- the contract-major, always2.proof_id- thejticlaim: non-empty StringOrURI of at mostidentifier_bytes(512) UTF-8 bytes.method- thehtmclaim, byte-for-byte as signed.target_uri- thehtuclaim; decode refuses a value that is not already in normal form.issued_at- theiatclaim, integer Unix time in seconds.nonce- thenonceclaim, ornilwhen absent. Redacted byinspect/2.invocation_id- theba_invclaim, a lowercase RFC 4122 UUID.operation- theba_opclaim, the operation name.grant_hash- the decodedathclaim: the raw 32-byte SHA-256 of the grant compact the proof names.request_hash- the decodedba_reqclaim: the raw 32-byte request digest.holder_public_key- the holder's raw 32-byte Ed25519 public key, decoded from the header JWK.holder_thumbprint- the raw 32-byte RFC 7638 thumbprint of the header JWK.verification- always:not_evaluated: no signature, key or expected context was checked.
Summary
Types
@type t() :: %BoundedAuthorityProtocol.V2.DecodedProof{ grant_hash: binary(), holder_public_key: binary(), holder_thumbprint: binary(), invocation_id: binary(), issued_at: integer(), method: binary(), nonce: nil | binary(), operation: binary(), proof_id: binary(), request_hash: binary(), target_uri: binary(), verification: :not_evaluated, version: 2 }
An unverified decoded proof.