Inspiration
Why should someone have to rebuild their credibility every time they join a new platform?
Qualifications, completed projects, and business relationships can help establish trust, but that evidence is often scattered across profiles, screenshots, and platform-specific badges. Someone viewing it still needs to understand who issued it, whether it was altered, and whether it remains valid.
I built TrustGraph around a simple idea: people and businesses should control their identities, carry verifiable evidence across platforms, and choose what they share.
What it does
TrustGraph is an open trust network that connects self-owned identity, signed credentials, consent-based sharing, and explorable evidence.
A student freelancer provides the demonstration:
- They create a digital identity with a key generated in their browser.
- A demo university issues a qualification credential, and a demo marketplace issues evidence of completed work.
- A client requests specific evidence.
- The holder previews and approves which credentials to share.
- The verifier checks signatures, issuer authorization, expiry, revocation, and applicable blockchain evidence.
The public graph displays deliberately published relationships with explanations of their provenance. Private credentials and sharing events do not automatically become public.
TrustGraph also detects patterns such as review bursts, similar review text, and overlapping reviewer networks. An optional LLM explains these observations using supporting evidence.
The LLM does not decrypt credentials or determine cryptographic validity. Those checks are handled separately by cryptographic code.
How I built it
The frontend uses React, TypeScript, Vite, and Tailwind CSS, with React Flow for the interactive network explorer.
The backend uses Python and FastAPI, with SQLAlchemy and Alembic for persistence and migrations. The local prototype runs with SQLite and an in-memory cache; PostgreSQL and Redis are supported options.
Browser identities use Ed25519 keys and did:key identifiers. Authentication requires signing a single-use challenge. Credential sharing uses signed presentations bound to a verifier’s audience, nonce, and expiry.
A Solidity registry, tested with Hardhat, records issuer authorization, salted credential commitments, and revocation. Credential contents and holder private keys are excluded from on-chain storage. The demonstrated blockchain environment is a local EVM.
For intelligence, NetworkX and deterministic rules measure suspicious patterns before any language model generates an explanation. Generated evidence references are validated, and a deterministic explanation remains available when the LLM is unavailable.
Challenges I ran into
Getting Python and TypeScript to agree on signed bytes
Small serialization differences can break signatures. I built cross-language checks for canonical bytes, identity derivation, signatures, and commitments.
Making single-use sharing actually single-use
Rejecting sequential replay was insufficient. Request consumption needed an atomic database update to prevent concurrent verification from accepting the same request twice.
Separating integrity from validity
A revoked credential can still have an intact signature and matching blockchain commitment. The verifier reports these checks separately instead of hiding everything behind one badge.
Protecting privacy throughout the graph
Consent must apply consistently to relationships, search, counts, and cached results—not just what the interface displays.
Accomplishments I’m proud of
- A complete identity-to-credential-to-sharing workflow with actual signatures.
- An independent verifier that runs without importing the backend.
- Demonstrations of tamper rejection, replay protection, revocation, and blockchain verification.
- Public relationships with inspectable provenance and consent withdrawal.
- Evidence-based pattern explanations that preserve human review.
What I learned
A valid signature proves who signed an intact statement; it does not prove the statement is true.
I also learned that privacy and uncertainty need to be understandable product features. Users should see what they are disclosing, while verifiers should understand the difference between accepted, rejected, and indeterminate evidence.
Selecting whole credentials is also different from selectively revealing individual claims. TrustGraph makes that limitation explicit.
What’s next for TrustGraph
The next steps are public hosting, a public-testnet deployment, and usability sessions with students and potential clients. Longer-term work includes real issuer integrations, stronger key custody, and standards interoperability testing.
The current prototype uses clearly labeled synthetic issuers, businesses, and reviews. Its pattern-detection thresholds are demonstration values, not measured real-world fraud accuracy.
Credits
AI assistance was used during development for code, tests, documentation, and debugging. Third-party libraries and tools are credited in the repository.
Built With
- fastapi
- hardhat
- postgresql
- pydantic
- python
- react
- react-flow
- redis
- sqlalchemy
- tailwind
- typescript
- vite