Conversation
Replaces the join VP stub with a real presentation that embeds an invitation credential (VIC) the operator supplies at launch, so a VTC can auto-admit the applicant without manual review. - openvtc-core::join::build_join_vp: build the holder VP, embedding the VIC in verifiableCredential when present (no VP proof needed — DIDComm authcrypt authenticates the sender). Unit-tested. - --invitation <file> CLI flag: load + parse the VIC JSON at launch (fails fast on a bad path / malformed JSON), threaded through State/StateHandler into the join flow and injected at submit. - TUI: entry-page "invitation loaded" indicator + a submit-time progress line. Signed-off-by: Glenn Gore <glenn.g@affinidi.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the join VP stub with a real presentation that embeds an invitation credential (VIC) the operator supplies at launch, so a VTC can auto-admit the applicant with no manual review.
Companion PR (community side): verifiable-trust-infrastructure #522 —
feat: automatic VTC join via Verifiable Invitation Credential (VIC).What's included
openvtc_core::join::build_join_vp— builds the holder VP, embedding the VIC inverifiableCredentialwhen present (no VP proof needed — DIDComm authcrypt authenticates the sender). Unit-tested.--invitation <file>CLI flag — load + parse the VIC JSON at launch (fails fast on a bad path / malformed JSON), threaded throughState/StateHandlerinto the join flow and injected at submit (replacing thejoin_flow.rsstub).Tests
openvtc_core::join::tests(VP builder with/without invitation); fullopenvtc-corelib suite: 197 passing; binary compiles; fmt clean.Notes
credentialSubject.id== presented DID). The join flow mints a fresh persona by default, so for the demo use the reuse-persona path so the presented DID matches the VIC subject. Pre-binding a mint-fresh persona to a VIC subject is a follow-up.🤖 Generated with Claude Code