Skip to content
tahleho3968Public

About

Open-source infrastructure for verifiable credentials and digital trust — issue, hold, and prove claims without revealing more than necessary

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

TrustMesh

CI License: Apache-2.0

Open-source infrastructure for proving what is true, without revealing more than necessary.

TrustMesh lets organizations issue cryptographically verifiable credentials — degrees, licenses, employment records, certifications — and lets people prove claims about themselves without exposing more personal information than necessary.

Status: 🚧 Early development (pre-release). Issuance and verification of W3C Verifiable Credentials 2.0 with eddsa-jcs-2022 Data Integrity proofs work today. Contributions welcome — see CONTRIBUTING.md.


Try it

$ cargo run -p trustmesh-issuer --example quickstart
structural: true, proof: true
{
  "@context": ["https://www.w3.org/ns/credentials/v2", ...],
  "type": ["VerifiableCredential", "ExampleAlumniCredential"],
  "issuer": "did:key:z6MkrZh...",
  "credentialSubject": { "alumniOf": "Example University", ... },
  "proof": {
    "type": "DataIntegrityProof",
    "cryptosuite": "eddsa-jcs-2022",
    "proofPurpose": "assertionMethod",
    "proofValue": "z2Wkp6Rcy..."
  }
}

Run the API with Docker

One-command self-hosted verifier (builds the release binary, serves on :3000):

$ docker compose up -d
$ curl localhost:3000/health
{"status":"ok","version":"0.1.0"}

Persist the issuer identity by passing a hex-encoded 32-byte seed:

$ TRUSTMESH_SEED=$(openssl rand -hex 32) docker compose up -d

Without a seed the API generates an ephemeral key each start (and logs its DID), which is fine for testing but means credentials stop verifying on restart.

What exists today

Four small, independently auditable crates:

Crate What it does
trustmesh-crypto Ed25519 signing/verification, Multikey encoding, SHA-256
trustmesh-credentials VC 2.0 data model with serde and structural validation
trustmesh-issuer Sign credentials (eddsa-jcs-2022), verify proofs
trustmesh-verifier Staged verification pipeline: structural → proof → status → trust policy
use trustmesh_credentials::{Credential, Subject};
use trustmesh_crypto::SigningKey;
use trustmesh_issuer::{verify_credential, CredentialIssuer};

let issuer = CredentialIssuer::new(SigningKey::generate()?);

let draft = Credential::builder()
    .context("https://www.w3.org/ns/credentials/examples/v2")
    .credential_type("ExampleAlumniCredential")
    .issuer(issuer.did().to_owned())
    .subject(
        Subject::new()
            .with_id("did:example:graduate-1")
            .with_claim("alumniOf", serde_json::json!("Example University")),
    )
    .build()?;

let signed = issuer.issue(draft)?;
let outcome = verify_credential(&signed)?;   // structural + proof verdicts
assert!(outcome.proof);

Signatures follow vc-di-eddsa eddsa-jcs-2022 (JCS / RFC 8785 canonicalization) with did:key verification methods.

The vision

University ──▶ Issue credential ──▶ Holder wallet ──▶ Selective disclosure ──▶ Employer
                                                                            │
                                                                       ✓ VERIFIED

A graduate proves "I hold a bachelor's degree" to an employer. The employer verifies the issuer's signature, the credential status, and nothing else. No address. No date of birth. No transcript. No phone-home to a centralized verification company.

TrustMesh is being built as a modular trust infrastructure platform:

  • Issuers (universities, governments, employers) issue standards-based verifiable credentials.
  • Holders store credentials in their own wallet and control exactly what is disclosed.
  • Verifiers check cryptographic proof + status under their own trust policies.

Principles

  1. Standards first. Build on W3C Verifiable Credentials 2.0, Data Integrity, Bitstring Status List, and Decentralized Identifiers rather than inventing new formats.
  2. Identity ≠ Credential ≠ Trust. TrustMesh provides cryptographic evidence; each verifier's trust policy decides which issuers it accepts.
  3. Privacy by design. Minimum collection, minimum disclosure, minimum logging.
  4. Self-hostable. Organizations must never be forced onto someone else's servers.
  5. No blockchain. No token. No proprietary cryptography. Ever.

Roadmap

Phase Scope Status
Shipped Crypto core · credential model · issuer + proof verification ✅
1 — Verification Staged verifier pipeline · JCS conformance vectors · JSON Schema validation · pluggable DIDs · Bitstring Status List #6–#10
2 — Usability CLI · REST API · Docker · QR web verifier · end-to-end example #11–#15
3 — Holding Presentations · wallet core · offline verification #16–#18
4 — Ecosystem Batch issuance · PDF bridge · TS & Python SDKs · threat model #19–#23

Design decisions are recorded as lightweight RFCs in docs/rfcs/. Full details in ROADMAP.md.

Related work

Prior art in this space includes SpruceID's ssi and DIDKit. TrustMesh takes a different slice: small single-purpose crates with strict dependency vetting, built for auditability first.

Community

Good starting points: issues labeled good first issue.

License

Licensed under the Apache License 2.0 — permissive, patent-friendly, and safe for universities, governments, and companies to adopt.

About

Open-source infrastructure for verifiable credentials and digital trust — issue, hold, and prove claims without revealing more than necessary

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages