trustmesh

The dual-stream FHE trust protocol. Encrypted credentials + sealed peer feedback.

Repo

About

## Wave 1 submission

TrustMesh Wave 2 — Dual-Stream Vault Contract + Compound Query Demo

We built and deployed the core FHE vault contract on Arbitrum Sepolia (Fhenix CoFHE), implementing the dual-stream architecture described in our whitepaper.

**What was built:**

  • TrustMesh Vault Contract (Solidity / FHE.sol)
  • Credential stream: issuer-attested fields stored as FHE ciphertext — euint32 (birth year, issuer timestamp), euint8 (income tier, accreditation level), ebool (KYC verified), euint16 (jurisdiction code)
  • Feedback stream: sealed peer ratings aggregated entirely on ciphertext — encTotalScore, encRatingCount, encOnTimePct, encLastActive
  • Mock issuer registry with on-chain signature verification
  • Structural sybil resistance: only wallets with encIsKYCVerified = true may submit peer ratings

2. Runtime Compound Query Engine

- Verifiers pass encrypted threshold parameters at query time — no pre-built circuits required - Contract computes logic across both credential AND feedback streams simultaneously - Returns a single ebool — zero data leakage to any party including the protocol itself

3. Live 2-Wallet Demo

- Wallet A: vault holder with encrypted credential fields + peer feedback aggregate - Wallet B: employer/verifier sets encrypted thresholds (min KYC = true, min income tier = 3, min peer score = 70) - Contract crosses both streams, returns ebool result - Neither wallet sees the other's raw data at any point

4. SDK Scaffold — @trustmesh/sdk

- Wraps @cofhe/sdk with two clean functions: vault.store(fields) and vault.query(address, logic) - Designed to feel identical to wagmi — days to integration, not months

Deliverable: github.com/oracles/trustmesh

## Wave 3 submission

🔐 TrustMesh — React Frontend Live + Multi-Issuer Registry TrustMesh is the only protocol that lets any verifier run arbitrary compound queries across two trust streams — issuer-attested credentials AND sealed peer feedback — receiving a single encrypted boolean. Zero data leakage to any party, including the protocol itself. 🔗 GitHub: https://github.com/arpit2222/trustmesh 📦 Contracts on Arbitrum Sepolia (carried from Wave 2, extended this wave): TrustVault.sol — dual-stream vault with extended multi-issuer support. Credential stream: euint32 (birth year, timestamp), euint8 (income tier, accreditation), ebool (KYC status), euint16 (jurisdiction). Feedback stream: encTotalScore, encRatingCount, encOnTimePct — all FHE.add() aggregated on ciphertext.

Wave 3 addition: IssuerRegistry now accepts 3 verified issuer types (KYC provider, university, compliance oracle) with independent ACL scoping per issuer. CompoundQuery.sol (Wave 3) — verifiers submit encrypted threshold parameters at query time. No pre-compiled circuits. Contract crosses credential AND feedback streams simultaneously, returns single ebool. Verifier's threshold parameters remain encrypted — neither the vault holder nor any observer sees what thresholds were checked. 🛠 Wave 3 — What We Built: React frontend live: wallet connect → vault.store(fields) encrypts credentials client-side via @cofhe/sdk → on-chain submission → verifier calls vault.query(address, logic) with encrypted thresholds → ebool result decrypts locally via permit. Full flow working end-to-end. @trustmesh/sdk alpha: vault.store(fields) and vault.query(address, encLogic) wrappers over @cofhe/sdk. API designed to feel identical to wagmi — any protocol can integrate credential + reputation verification in a day, not months. Multi-issuer credential verification demo: university issuer attests encrypted degree level, KYC provider attests encrypted verification status, compliance oracle attests encrypted jurisdiction code. Compound query crosses all three in one FHE computation. ACL model finalized: FHE.allowSender() for vault holder decrypt, FHE.allow(handle, verifierAddr) for scoped verifier access, FHE.allowThis() for contract-internal stream crossing. 📈 Why This Is FHE-Native: TrustMesh removes the data re-submission problem: users encrypt credentials once, any protocol verifies without receiving any underlying data. ZK can prove a single field value — it cannot aggregate a live peer feedback stream across counterparties. FHE.add() on ciphertext is the only primitive that enables this. Remove FHE and the cross-stream compound query becomes impossible — not less private, architecturally impossible.

## Wave 4 submission

What We Shipped: → Enterprise Credential Hub (Live): 5+ issuer types now integrate (university degree, bank income verification, compliance certification, professional credentials, government ID). Each issuer stores encrypted attributes on-chain. Verifiers set encrypted thresholds at query time. → Cross-Credential Compound Logic: Contract now aggregates 5+ encrypted criteria in a single FHE computation. Examples: "degree level >= 3 AND income >= $50k AND jurisdiction verified" — all checked on ciphertext. Returns single eboOl. Zero attribute exposure to any observer. → Time-Locked Credential Rotation: Credentials auto-expire via encrypted timestamp checks. FHE.lt() compares current block time to encrypted expiry on-chain. Expired credentials trigger eboOl = false without revealing what credential triggered expiry. → Production ACL Model: FHE.allowSender() for issuer-only updates. FHE.allow(handle, verifierAddr) for scoped query access. FHE.allowThis() for contract-internal stream crossing. Three-role model: issuer, vault holder, verifier. No plaintext ever visible cross-role. Testing & Validation:

35+ Hardhat tests: credential storage, multi-issuer issuance, compound query logic, timestamp checks, role-based access control, edge cases (expired creds, false thresholds, malformed queries) Live deployment on Arbitrum Sepolia with 6 simulated issuers + 10 verifiers Full end-to-end flow: issuer encrypts → vault holder holds → verifier queries → contract returns eboOl result → verifier decrypts locally via CoFHE permit

Deliverables:

🔗 GitHub: https://github.com/arpit2222/trustmesh 🎯 Live Demo: https://vercel.com/arpit-projects-297ad7e9/lex-crypt/deployments Why This Matters: $2T annual spend on identity verification, background checks, and credential verification. Existing solutions expose raw data: universities publish grades, banks publish income statements, governments publish verification tokens. TrustMesh is the only protocol where credentials verify without revealing. Employers can check "degree + experience + security clearance" encrypted. Banking can verify "income + credit score + jurisdiction" on ciphertext. This unlocks private verification at enterprise scale — critical for Web3 protocols, institutional onboarding, and cross-border trust networks where data sovereignty is non-negotiable.

KEY DIFFERENTIATOR FOR TRUSTMESH

Unlike the other three projects (TrialVault, GhostPool, LexCrypt) which focus on data privacy for specific verticals, TrustMesh solves the "credential verification without exposure" problem that impacts every enterprise and Web3 protocol:

TrialVault = Healthcare data sharing (vertical privacy) GhostPool = Prediction markets (anonymity in finance) LexCrypt = Legal AI (sealed evidence privacy) TrustMesh = Universal credential verification (horizontal privacy infrastructure)

From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.