Skip to content

chore(deps): update to affinidi-tdk 0.8 + vta-sdk 0.17#128

Merged
stormer78 merged 1 commit into
mainfrom
worktree-tdk-vtasdk-017
Jun 17, 2026
Merged

chore(deps): update to affinidi-tdk 0.8 + vta-sdk 0.17#128
stormer78 merged 1 commit into
mainfrom
worktree-tdk-vtasdk-017

Conversation

@stormer78

Copy link
Copy Markdown
Contributor

Summary

Updates the affinidi dependency stack to the latest releases and migrates the
code to the API changes the bump brings.

  • vta-sdk 0.12 → 0.17
  • affinidi-tdk 0.7 → 0.8.3
  • affinidi-did-common 0.3.5 → 0.3.7 (+ the rest of the stack via cargo update)

Why the code change

The new releases tighten several did-common wire types to #[non_exhaustive],
which forbids downstream struct-literal construction and exhaustive match. The
existing DID-document construction in openvtc-core no longer compiles, so it's
migrated to the builders did-common now provides (behaviour is identical — the
builders set the same fields):

  • VerificationMethod { .. }VerificationMethodBuilder::from_urls(..).properties(..).build() (3 sites in create_initial_webvh_did)
  • Service { .. }ServiceBuilder::new(..).id_url(..).build()
  • mediator_from_document's Endpoint match gains a _ => None arm (Endpoint is now #[non_exhaustive])

Notes

  • Production code resolves cleanly to vta-sdk 0.17.0. The older 0.12/0.16
    entries that remain in Cargo.lock come only through dev-dependencies
    (the git-pinned VTI test harness and messaging-test-mediator), not shipped code.
  • Out of scope: the dev-dependency git pin to verifiable-trust-infrastructure
    (rev 82097382, vta-sdk 0.12.0) used for integration tests is left untouched —
    bumping it pulls a newer VTA test harness with its own potential breakage and
    is a separate decision.

Test plan

  • cargo build --all-targets — clean (lib, bins, tests/dev-deps)
  • cargo test --workspace --lib — green (openvtc-core 197, did-git-sign 46, 0 failures)
  • cargo fmt

Bumps the affinidi ecosystem to the latest releases (vta-sdk 0.12 -> 0.17,
affinidi-tdk 0.7 -> 0.8.3, affinidi-did-common 0.3.5 -> 0.3.7, plus the rest
of the stack via cargo update).

The bump tightens several did-common wire types to `#[non_exhaustive]`, so the
old struct-literal construction in openvtc-core no longer compiles. Migrate to
the builders did-common now provides (behaviour identical — same fields set):

- VerificationMethod { .. }  -> VerificationMethodBuilder::from_urls(..)
    .properties(..).build()   (3 sites in create_initial_webvh_did)
- Service { .. }             -> ServiceBuilder::new(..).id_url(..).build()
- mediator_from_document's `Endpoint` match gains a `_ => None` arm
  (Endpoint is now `#[non_exhaustive]`)

Production code resolves vta-sdk 0.17.0; the older 0.12/0.16 entries remain
only via dev-dependencies (the git-pinned VTI test harness and
messaging-test-mediator), not in shipped code.

Verified: cargo build --all-targets clean; workspace lib tests green
(openvtc-core 197, did-git-sign 46, 0 failures).

Signed-off-by: Glenn Gore <glenn.g@affinidi.com>
@stormer78 stormer78 requested a review from a team as a code owner June 17, 2026 12:37
@stormer78 stormer78 merged commit 3489d00 into main Jun 17, 2026
7 of 13 checks passed
@stormer78 stormer78 deleted the worktree-tdk-vtasdk-017 branch June 17, 2026 12:38
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