Expand description
Minimal JSON-LD context builder for DPP passport payloads.
Intentionally small and flat: three cohesive functions (build/frame/strip
the @context envelope), not a growing vocabulary layer. If this module
starts accumulating per-vocabulary mapping logic, split it then — until
then, one file is the right size.
Constants§
- REMOTE_
CONTEXTS - Remote contexts this passport context references.
Functions§
- context_
value - The
@contextvalue alone, for a caller that already has a passport object and needs to stamp the context onto it. - frame_
passport - Wrap a passport JSON value in a JSON-LD envelope.
- passport_
context - Build the JSON-LD context for an Odal Node passport.
- strip_
context - Extract the plain data from a JSON-LD framed passport (strip
@context).