Skip to content

Add VC status server functions, and @vocab#24

Open
makew0rld wants to merge 2 commits into
mainfrom
gov-223
Open

Add VC status server functions, and @vocab#24
makew0rld wants to merge 2 commits into
mainfrom
gov-223

Conversation

@makew0rld
Copy link
Copy Markdown
Contributor

@makew0rld makew0rld commented Jun 2, 2026

Once this is merged and tagged it can be used in https://github.com/eqtylab/integrity-monorepo/pull/1651

makew0rld and others added 2 commits June 2, 2026 13:30
Expose a lower-level `allocate_credential_status` that takes an
already-built unsigned VC, reserves status-list slots on a
vc-status-server, and returns the augmented unsigned credential for the
caller to sign. Refactor `issue_revocable_vc` to delegate to it
(behavior and error strings unchanged).

Add a write side to complement read-only `check_credential_status`:
`update_credential_status` plus `revoke_vc` / `suspend_vc` /
`unsuspend_vc` convenience wrappers, against the server's
`POST /credentials/status` endpoint.

Extend the revocable-vc example to exercise the full issue -> check ->
revoke -> check lifecycle, and add wiremock tests for the new helpers.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
`build_unsigned_with_eqty_contexts` now attaches
`{"@vocab": "https://eqtylab.io/terms/"}` as the third @context entry
instead of the urn:cid: link to integrity-jsonld's common context. The
VC becomes self-describing: EQTY-namespaced terms (EqtyVComp*Evidence,
report, certificateChain, policy, statements, ...) expand under that
namespace with no fetched/CID-pinned context document required.

Verification is unchanged and the JSON-LD loader still ships the old CID
context, so previously-issued VCs that reference it continue to verify;
add test_verify_vc_with_ig_common_cid_context to guard that. Also assert
the new @vocab array shape in the vcomp-shape test.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@makew0rld makew0rld requested review from cameronfyfe and captjt June 2, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant