Skip to content

chore: set up standalone crate (CI, release-plz publishing) - #1

Merged
stormer78 merged 2 commits into
mainfrom
standalone-crate-setup
Sep 28, 2026
Merged

stormer78 merged 2 commits into
mainfrom
standalone-crate-setup

Conversation

@stormer78

Copy link
Copy Markdown
Contributor

Summary

This repository is a fork of etairi/predicate-credential-system by @etairi — full credit to them for the original research implementation of the predicate credential system (PCS) this crate is built on. This PR brings that work over and gets the repository ready to stand on its own:

  • Preserves the original commit history (aa57efd and earlier, authored by @etairi) plus the application-context patch that was developed on top of it for OpenVTC's use (previously carried as a vendored patch inside the openvtc monorepo).
  • Merges in this repository's initial commit so the two histories share a base.
  • Cargo.toml: adds the repository field, drops publish = false now that this is its permanent, standalone home.
  • Adds CI (.github/workflows/ci.yml): fmt, clippy, tests (all features), a no-default-features build, docs, MSRV (1.95.0) and cargo package.
  • Adds release-plz-based publishing (.github/workflows/publish.yml, release-plz.toml, RELEASING.md): merging a Release PR tags and publishes to crates.io via Trusted Publishing (OIDC, no long-lived token in the repo).

Follow-up (manual, outside this PR)

  • One-time crates.io Trusted Publishing setup, described in RELEASING.md: owner OpenVTC, repo predicate-credential-system, workflow publish.yml, environment crates-io.
  • Once published, openvtc switches its vendored copy over to this crate as a normal dependency.

Test plan

  • cargo package --locked
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo fmt --all -- --check
  • CI green on this PR

@stormer78

Copy link
Copy Markdown
Contributor Author

Added the demo that used to live in a separate throwaway repo:

  • demo/ — the pcs-vetting-prototype end-to-end demo (hidden-vetter admission on top of this crate), merged in with its original history preserved. It's a workspace member so the repo is self-contained and shares one lockfile, but stays publish = false and excluded from release-plz's semver check (release-plz.toml) — only the root predicate-credential-system crate publishes to crates.io.
  • Bumped demo's vta-sdk pin from 0.48.0 to the current 0.56.1; all 14 of its end-to-end tests still pass. Everything else in the workspace was already on its latest compatible version (cargo update was a no-op) — the two versions pinned with a MUST stay comment (sha2 = "0.10", rand = "0.8") are left alone; they're tied to ark-ff's DefaultFieldHasher and ark_std::rand respectively, not just stale.
  • CI (ci.yml) updated so test/clippy run --workspace, while package/docs/msrv/no-default-features stay scoped to -p predicate-credential-system, since that's the only crate with a release/API contract to hold to.

Forked from https://github.com/etairi/predicate-credential-system by
Erkan Tairi (base commit aa57efd, "Add serialization support"), plus an
application-context patch (attest_in_context, prove_in_context,
check_attestation_in_context, check_proof_in_context, issue_in_context)
developed for OpenVTC's vetting use case on top of it. Full credit to
Erkan Tairi for the original research implementation; see the PR
description and Cargo.toml/LICENSE for attribution. Squashed into one
commit (rather than carrying per-commit history) because this repo's DCO
check requires every commit to carry a Signed-off-by matching its author,
which cannot be added on someone else's behalf.

Also folds in the throwaway pcs-vetting-prototype demo as demo/, a
workspace member that stays publish = false and out of release-plz's
semver check — only the root crate ships to crates.io. Bumps demo's
vta-sdk pin from 0.48.0 to 0.56.1; everything else in the workspace was
already at its latest compatible version.

Adds CI (fmt, clippy, tests, no-default-features, docs, MSRV, package)
and release-plz-based publishing to crates.io via Trusted Publishing.

Signed-off-by: Glenn Gore <glenn.g@affinidi.com>
@stormer78
stormer78 force-pushed the standalone-crate-setup branch from 41450a4 to 76f2657 Compare September 28, 2026 19:24
cargo test --workspace pulled in demo/'s vta-sdk dependency (trust-tasks-rs,
dtg-credentials, affinidi-data-integrity, reqwest/rustls, ...) on every PR,
turning a change to the library alone into a full Affinidi-ecosystem build.
demo/ stays a workspace member for a shared lockfile, but is now an optional
harness developers run locally (see demo/README.md), not a CI gate.

Signed-off-by: Glenn Gore <glenn.g@affinidi.com>
@stormer78
stormer78 merged commit 4f4edf5 into main Sep 28, 2026
8 checks passed
@stormer78
stormer78 deleted the standalone-crate-setup branch September 28, 2026 19:42
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