spec top-level constant

SpecPolicy const spec

The SPEC §7.2 policy for the request variant, taken from this specification's front matter.

Pass it to consumeInbound — items 5b, 7 and 8 are per-specification and cannot be derived from the document alone, and item 2 needs the schema it carries.

Implementation

const SpecPolicy spec = SpecPolicy(
  typeUri: typeUri,
  isBearer: false,
  isProofRequired: true,
  isRecipientRequired: true,
  isIssuedAtRequired: true,
  payloadSchema: payloadSchemaJson,
);