GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - notcaliper/TruePass: Transform wallet addresses into portable, verified identity passports on HELA with multi-sig validator consensus and on-chain reputation.

BranchesTags
Open more actions menu

Latest commit

 

History

35 Commits
35 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
backend
backend
 
 
contracts
contracts
 
 
.gitignore
.gitignore
 
 
.truepass_auth.json
.truepass_auth.json
 
 
README.md
README.md
 
 
project_explanation.txt
project_explanation.txt
 
 
truepass_client.py
truepass_client.py
 
 
walkthrough.md
walkthrough.md
 
 

Repository files navigation

šŸ›”ļø TruePass

Unified On-Chain Identity Passport Protocol

A permanent, rigorously verified, and composable identity layer that transforms Web3 identity from "you are your wallet address" to "you are your verified, credential-rich, reputation-scored on-chain passport."

Built on HELA License Solidity Node.js Next.js


TruePass is a decentralized identity passport protocol built on the HELA Blockchain that provides a unified, proof-based identity — including citizenship, reputation, and XP — accessible across diverse decentralized applications. It features a 9-level progressive verification system validated by 20 independent validators per level, ensuring fraud-resistant, Sybil-proof, and recoverable digital identities.


šŸ“Œ Problem Statement

"Create an onchain identity passport that provides a unified, proof-based identity including citizenship, reputation, and XP, accessible across diverse decentralized applications."

The Web3 ecosystem suffers from a fundamental identity infrastructure gap. Despite thousands of dApps operating across finance, governance, gaming, and public services — there is no universal, rigorously verified, and portable identity layer for users. A user's entire existence is reduced to a cryptographic wallet address that carries zero verifiable information about who they are.

āŒ The Core Problems

# Problem Impact
1 Wallet ≠ Identity A wallet address reveals nothing about the person behind it — no credentials, no reputation, no proof of humanity. dApps cannot distinguish verified users from malicious actors.
2 Key Loss = Permanent Identity Loss Losing a private key means losing everything — funds, credentials, governance history, reputation, and community standing — with zero recovery path.
3 Fragmented Reputation Achievements are scattered across isolated platforms. A user's track record on one dApp is invisible to every other, making cross-platform trust impossible.
4 No Verifiable Proof Most blockchain identities are self-declared. There is no native on-chain mechanism to verify claims against trustworthy, authorized sources.
5 Sybil Vulnerability Without verified identity, governance systems, airdrops, and rewards are exploited by attackers creating thousands of fake accounts.
6 No Cross-Application Layer Each dApp operates in its own silo. Users must re-verify and re-build trust from scratch on every new platform.
7 No Verifier Accountability Existing systems lack transparency — verification authorities operate without staking, slashing, or economic accountability.

āœ… What TruePass Solves

TruePass directly addresses all seven problems by creating a permanent, rigorously verified, and composable identity layer on the HELA Blockchain:

  • šŸ” Decouples identity from wallets — your passport is you, not your key
  • šŸ”„ Guardian-based identity recovery — survives any wallet failure
  • šŸ† Unified reputation & XP — one portable trust profile across all dApps
  • āœ… Authority-issued verifiable credentials — cryptographic proof, not self-declared claims
  • šŸ›”ļø 9-level verification Ɨ 20 validators — makes Sybil attacks practically infeasible
  • 🌐 Cross-dApp identity protocol — any dApp can query your passport instantly
  • āš–ļø Validator staking & slashing — economic accountability for honest verification

🧰 Tech Stack

Category Technology Purpose
Blockchain HELA Core infrastructure — passport storage, verification tracking, credential registry, validator signatures, DAO governance
Smart Contracts Solidity 10 core protocol contracts — Identity, Verification, Credentials, Reputation, Recovery, Validators, Fraud, DAO, Endorsements, Authority
Contract Framework Hardhat Compiling, testing, deploying, and debugging smart contracts with TypeScript support and local blockchain simulation
Backend Express.js Node.js REST API, reputation computation engine, fraud detection, blockchain event listener, IPFS interaction, validator notification service
Frontend Next.js React Dashboard, verification flow, issuer portal, recovery UI, validator panel, public profile viewer
Styling TailwindCSS Utility-first responsive styling with JIT compiler for rapid, consistent UI development
Wallet Integration Web3Modal Ethers.js Universal wallet connection (MetaMask, WalletConnect, 300+ wallets), transaction signing, contract interaction
Decentralized Storage IPFS Pinata Content-addressed, tamper-resistant storage for passport metadata, credential content, and verification evidence
Database PostgreSQL Off-chain relational data storage for sessions, caching, and event indexing
Queue Redis BullMQ Background job processing — validator timeouts, session expiration, event-driven tasks
Testing Mocha Jest Smart contract unit/integration tests (Hardhat), backend API tests, frontend component tests
Deployment Vercel HELA Testnet Zero-config Next.js hosting (Vercel) + contract deployment on HELA Testnet
Version Control Git GitHub Source code management, collaboration, and hackathon submission

šŸ—ļø System Architecture

A layered architecture separating users, frontend, backend services, on-chain smart contracts, and decentralized storage.

graph TB
    %% ──────────────── USER LAYER ────────────────
    subgraph USERS["šŸ‘¤ User Layer"]
        direction LR
        U1["šŸ”‘ Passport Holder"]
        U2["šŸ›ļø Credential Authority"]
        U3["šŸ›”ļø Guardian"]
        U4["āœ… Validator"]
        U5["🌐 External dApp"]
    end

    %% ──────────────── FRONTEND LAYER ────────────────
    subgraph FRONTEND["šŸ–„ļø Frontend Layer — Next.js 14 + React + TailwindCSS"]
        direction LR
        F1["šŸ“Š Passport Dashboard"]
        F2["šŸ“ˆ Verification Progress"]
        F3["šŸŽ« Issuer Portal"]
        F4["šŸ”„ Recovery Interface"]
        F5["āš–ļø Validator Panel"]
        F6["šŸ‘ļø Public Profile"]
        F7["šŸ”— Web3Modal + Ethers.js"]
    end

    %% ──────────────── BACKEND LAYER ────────────────
    subgraph BACKEND["āš™ļø Backend Layer — Express.js + Node.js"]
        direction LR
        B1["šŸ† Reputation Engine"]
        B2["šŸ” Fraud Detection"]
        B3["šŸ“” Event Listener"]
        B4["šŸ“¦ IPFS Service"]
        B5["šŸ”¢ XP Calculator"]
        B6["🌐 REST API + WebSocket"]
        B7["šŸ‘„ Validator Assignment"]
        B8["šŸ”” Notification Service"]
        B9["ā° BullMQ Job Queue"]
    end

    %% ──────────────── SMART CONTRACT LAYER ────────────────
    subgraph CONTRACTS["šŸ“œ Smart Contract Layer — HELA Blockchain"]
        direction TB
        subgraph CORE["Core Contracts"]
            C1["🪪 TruePassIdentity<br/><i>Soulbound Passport NFT</i>"]
            C2["āœ… VerificationManager<br/><i>9 Levels Ɨ 20 Validators</i>"]
            C3["šŸ“œ CredentialRegistry<br/><i>Issue / Verify / Revoke</i>"]
        end
        subgraph TRUST["Trust & Reputation"]
            C4["⭐ ReputationEngine<br/><i>Score 0-1000 + XP</i>"]
            C5["šŸ¤ EndorsementManager<br/><i>Weighted Endorsements</i>"]
            C6["šŸ” FraudDetection<br/><i>Penalties + Freezing</i>"]
        end
        subgraph GOVERNANCE["Governance & Recovery"]
            C7["šŸ”„ RecoveryManager<br/><i>Guardian-based Recovery</i>"]
            C8["šŸ›ļø AuthorityRegistry<br/><i>DAO-Approved Issuers</i>"]
            C9["āš–ļø ValidatorRegistry<br/><i>Staking + Slashing</i>"]
            C10["šŸ—³ļø DAOGovernance<br/><i>Proposals + Voting</i>"]
        end
    end

    %% ──────────────── STORAGE LAYER ────────────────
    subgraph STORAGE["šŸ’¾ Storage Layer"]
        direction LR
        S1["🌐 IPFS via Pinata<br/><i>Metadata, Credentials, Evidence</i>"]
        S2["🐘 PostgreSQL<br/><i>Sessions, Cache, Index</i>"]
        S3["šŸ”“ Redis + BullMQ<br/><i>Jobs, Queues, Pub/Sub</i>"]
    end

    %% ──────────────── CONNECTIONS ────────────────
    U1 & U2 & U3 & U4 & U5 --> FRONTEND
    FRONTEND <--> |"REST API + WebSocket"| BACKEND
    FRONTEND <--> |"Ethers.js RPC"| CONTRACTS
    BACKEND <--> |"Event Listening + Tx Submission"| CONTRACTS
    BACKEND <--> STORAGE
    CONTRACTS --> |"CID References"| S1

    %% ──────────────── CONTRACT INTERACTIONS ────────────────
    C10 --> |"governs"| C8
    C10 --> |"governs"| C9
    C10 --> |"governs"| C6
    C9 --> |"assigns"| C2
    C2 --> |"updates level"| C1
    C8 --> |"authorizes"| C3
    C3 --> |"triggers"| C4
    C6 --> |"penalizes"| C4
    C5 --> |"boosts"| C4
    C7 --> |"transfers control"| C1

    %% ──────────────── STYLES ────────────────
    classDef userStyle fill:#EDE9FE,stroke:#7C3AED,stroke-width:2px,color:#1F2937
    classDef frontStyle fill:#DBEAFE,stroke:#2563EB,stroke-width:2px,color:#1F2937
    classDef backStyle fill:#D1FAE5,stroke:#059669,stroke-width:2px,color:#1F2937
    classDef contractStyle fill:#FEF3C7,stroke:#D97706,stroke-width:2px,color:#1F2937
    classDef storageStyle fill:#FCE7F3,stroke:#DB2777,stroke-width:2px,color:#1F2937

    class U1,U2,U3,U4,U5 userStyle
    class F1,F2,F3,F4,F5,F6,F7 frontStyle
    class B1,B2,B3,B4,B5,B6,B7,B8,B9 backStyle
    class C1,C2,C3,C4,C5,C6,C7,C8,C9,C10 contractStyle
    class S1,S2,S3 storageStyle
Loading

šŸ”— Smart Contract Interaction Map

graph TD
    DAO["šŸ—³ļø DAOGovernance<br/><i>Protocol Control</i>"] --> |"approves"| AUTH["šŸ›ļø AuthorityRegistry<br/><i>Who can issue credentials</i>"]
    DAO --> |"manages"| VAL["āš–ļø ValidatorRegistry<br/><i>Who can verify + staking</i>"]
    DAO --> |"configures"| FRAUD["šŸ” FraudDetection<br/><i>Penalties + freezing</i>"]

    VAL --> |"assigns validators"| VER["āœ… VerificationManager<br/><i>9 Levels Ɨ 20 Signatures</i>"]
    FRAUD --> |"flags"| VER

    VER --> |"updates level + XP"| PASS["🪪 TruePassIdentity<br/><i>Soulbound Passport</i>"]

    AUTH --> |"authorizes issuance"| CRED["šŸ“œ CredentialRegistry<br/><i>Verifiable Credentials</i>"]

    CRED --> |"updates score"| REP["⭐ ReputationEngine<br/><i>Score + XP + Tier</i>"]
    FRAUD --> |"penalizes XP"| REP
    ENDORSE["šŸ¤ EndorsementManager<br/><i>Weighted Endorsements</i>"] --> |"boosts"| REP

    REC["šŸ”„ RecoveryManager<br/><i>Guardian Recovery</i>"] --> |"transfers control"| PASS

    classDef dao fill:#EDE9FE,stroke:#7C3AED,stroke-width:2px,color:#1F2937
    classDef core fill:#FEF3C7,stroke:#D97706,stroke-width:2px,color:#1F2937
    classDef trust fill:#D1FAE5,stroke:#059669,stroke-width:2px,color:#1F2937
    classDef recovery fill:#DBEAFE,stroke:#2563EB,stroke-width:2px,color:#1F2937

    class DAO dao
    class PASS,VER,CRED,AUTH core
    class REP,ENDORSE,FRAUD trust
    class REC,VAL recovery
Loading

šŸ”„ Analysis Workflow

End-to-end sequence diagram showing the complete TruePass identity lifecycle — from passport creation to cross-dApp usage and recovery.

%%{init: {
  "theme": "base",
  "themeVariables": {
    "primaryColor": "#000000",
    "secondaryColor": "#000000",
    "tertiaryColor": "#000000",
    "primaryTextColor": "#ffffff",
    "secondaryTextColor": "#ffffff",
    "lineColor": "#ffffff",
    "actorBorder": "#ffffff",
    "actorBkg": "#000000",
    "actorTextColor": "#ffffff",
    "activationBorderColor": "#ffffff",
    "activationBkgColor": "#000000",
    "sequenceNumberColor": "#ffffff",
    "noteTextColor": "#ffffff",
    "noteBkgColor": "#000000",
    "noteBorderColor": "#ffffff"
  }
}}%%
sequenceDiagram
    autonumber

    actor User as šŸ‘¤ User
    participant FE as šŸ–„ļø Frontend<br/>(Next.js)
    participant BE as āš™ļø Backend<br/>(Express.js)
    participant SC as šŸ“œ Smart Contracts<br/>(HELA)
    participant VAL as āœ… Validators<br/>(20 per level)
    participant IPFS as 🌐 IPFS<br/>(Pinata)
    participant dApp as šŸŒ External dApp

    %% ━━━━━━ PHASE 1: REGISTRATION ━━━━━━
    rect rgb(0,0,0)
        Note over User,IPFS: šŸ” Phase 1 — Registration & Passport Creation
        User->>FE: Connect wallet (MetaMask)
        FE->>SC: Request auth challenge nonce
        SC-->>FE: Return unique nonce
        FE->>User: Sign nonce with private key
        User-->>FE: Signed message
        FE->>BE: Verify signature
        BE-->>FE: āœ… Authenticated

        User->>FE: Enter display name, avatar, bio
        FE->>IPFS: Upload passport metadata
        IPFS-->>FE: Return CID (content hash)
        FE->>SC: mintPassport(metadataURI)
        SC-->>FE: 🪪 Passport minted (SBT) — Level 0, +10 XP
        FE-->>User: Dashboard: Passport ID, Newcomer tier
    end
Loading

⚔ Key Features

🪪 Soulbound Identity Passport

A non-transferable NFT (ERC-721 with transfers disabled) minted on HELA represents each user's permanent on-chain identity. The passport stores verification level, XP, reputation score, status, and metadata — decoupling identity from wallet ownership forever.

šŸ” 9-Level Progressive Verification

Identity trust is built through 9 independent verification stages, not a single check:

Level Type What It Proves
1 Wallet Verification User controls a valid blockchain address
2 Human Verification User is a real human, not a bot
3 Document Verification User holds legitimate government-issued ID
4 Biometric Verification User matches the submitted documents (anti-deepfake)
5 Social Trust Verification User is recognized by existing verified community members
6 Fraud Detection Analysis No fraud indicators across all prior stages
7 Validator Review Expert human review confirms all evidence
8 DAO Committee Review Governance-level policy compliance check
9 Final Passport Approval Fully verified — maximum trust achieved

āœ… 20-Validator Multi-Signature Consensus

Each verification level requires approval from 20 independent validators with a configurable threshold (e.g., 12-of-20). Validators are randomly selected, weighted by stake and reputation — making collusion exponentially harder than single-authority systems.

āš–ļø Validator Staking & Slashing

Validators must stake tokens to participate. Approving a fraudulent identity results in stake slashing and removal from the validator pool. This creates direct economic consequences for dishonesty and rewards for integrity.

šŸ“œ Verifiable Credential Registry

DAO-approved authorities (universities, governments, DAOs, certification bodies) issue cryptographically signed credentials to passport holders:

  • šŸ›ļø Citizenship Verification
  • šŸŽ“ Academic Degrees & Course Completions
  • šŸ† Hackathon Participations & Wins
  • šŸ’¼ Professional Certifications
  • šŸ¤ DAO Memberships & Community Contributions

Each credential includes issuer signature, timestamp, IPFS-stored content, and on-chain revocation support.

⭐ Dynamic Reputation Engine

A multi-factor reputation score (0–1000) computed from:

Component Weight Source
Verification Level 35% Progress through 9 levels
Credentials 25% Weighted sum of credential types
XP 15% Total experience points earned
Endorsements 10% Reputation-weighted peer endorsements
Activity Consistency 8% Regular participation over time
Account Age 7% Duration since passport creation

Reputation Tiers: Newcomer → Active Participant → Trusted Contributor → Established Member → Community Leader → Legendary

šŸŽ® Gamified XP System

Users earn experience points for verified activities:

  • +10 to +200 XP for completing each verification level (560 total for full verification)
  • +50 to +150 XP for credentials (hackathon wins, certifications)
  • +10 to +30 XP for governance participation
  • XP penalties for detected fraud (āˆ’20 to āˆ’200 XP)

Identity Ranks: Initiate → Explorer → Builder → Architect → Veteran → Master → Legend

šŸ”„ Guardian-Based Identity Recovery

If a wallet is lost, identity is not lost. Users assign 3–7 guardians who can authorize recovery:

  1. Recovery initiated from new wallet
  2. Guardians independently approve on-chain
  3. Threshold met → 48-hour time-lock begins
  4. Identity transfers to new wallet — all credentials, XP, reputation intact

šŸ” Active Fraud Detection

A multi-layered fraud engine monitors for:

  • 🧬 Duplicate identity — biometric/document hash cross-referencing
  • šŸ¤– Bot behavior — automated interaction pattern detection
  • šŸŒ Geographic anomalies — inconsistent location signals
  • šŸ“„ Document forgery — template and metadata validation
  • šŸ•øļø Social graph manipulation — circular vouching detection
  • āš ļø Validator collusion — abnormal approval pattern analysis

🌐 Cross-dApp Identity Protocol

Any dApp on HELA can query TruePass through standardized smart contract functions:

getVerificationLevel(address)  // → 0-9
getReputation(address)         // → 0-1000 + tier
getXP(address)                 // → total XP + rank
hasCredential(address, type)   // → bool
isVerifiedCitizen(address)     // → bool
isFullyVerified(address)       // → bool
getCredentials(address)        // → Credential[]

šŸ—³ļø DAO Governance

The protocol is governed by a DAO — not a centralized entity:

  • Authority approval — community votes on who can issue credentials
  • Validator management — add, remove, or slash validators
  • Protocol upgrades — parameter changes and feature additions
  • Dispute resolution — contested verifications and fraud cases
  • Treasury management — protocol fee allocation

šŸ¤ Reputation-Weighted Endorsements

TruePass holders can endorse each other, with endorsement weight proportional to the endorser's reputation score. A reputation-800 endorser's endorsement carries 8Ɨ the weight of a reputation-100 endorser. Circular endorsement is detected and flagged by the fraud system.


šŸ”· Why HELA Blockchain?

TruePass is built natively on HELA — and here's why it's the ideal foundation:

Advantage Benefit for TruePass
⚔ EVM Compatibility Standard Solidity development, Hardhat tooling, Ethers.js — no custom SDK required
šŸš€ Fast Block Finality Real-time verification level updates and multi-validator approvals with instant confirmation
šŸ’° Low Gas Costs Critical for TruePass — a full 9-level verification involves 180+ validator transactions. On high-gas chains this would be prohibitive; on HELA it's economically viable
šŸ“ˆ Scalability Designed for high-throughput smart contract environments, supporting thousands of concurrent verifications
šŸ”’ Security Enterprise-grade blockchain security for storing permanent identity records
šŸŒ Growing Ecosystem TruePass serves as a foundational identity primitive that other HELA dApps can build upon, driving ecosystem growth

šŸš€ Quick Start

Prerequisites

Requirement Version Purpose
Node.js v18+ Runtime for backend & frontend
PostgreSQL v14+ Primary database for off-chain data
Redis v7+ Required for BullMQ background jobs (validator timeouts, session expiry)
MetaMask Latest Wallet for HELA blockchain interaction
Git Latest Version control

1ļøāƒ£ Clone the Repository

git clone https://github.com/notcaliper/TruePass.git
cd TruePass

2ļøāƒ£ Backend Setup

cd backend
npm install

3ļøāƒ£ Environment Configuration

cp .env.example .env

Edit .env with your credentials:

# ─── Server ───
PORT=3000
NODE_ENV=development

# ─── PostgreSQL ───
DB_HOST=localhost
DB_PORT=5432
DB_NAME=truepass
DB_USER=postgres
DB_PASSWORD=your_password_here

# ─── JWT ───
JWT_SECRET=your_jwt_secret_here
JWT_EXPIRES_IN=7d

# ─── Redis ───
REDIS_HOST=localhost
REDIS_PORT=6379

# ─── Blockchain (HELA) ───
RPC_URL=https://mainnet.helachain.com
PRIVATE_KEY=your_deployer_private_key
CONTRACT_ADDRESS=0x_your_contract_address
CHAIN_ID=8668

4ļøāƒ£ Database Setup

Ensure PostgreSQL is running, then:

# Create the database
psql -U postgres -c "CREATE DATABASE truepass;"

# Apply schema
psql -U postgres -d truepass -f db/schema.sql

# OR use the sync script (development only)
npm run db:sync

5ļøāƒ£ Start the Server

# Development mode (with hot-reload)
npm run dev

# Production mode
npm start

6ļøāƒ£ Verify Installation

curl http://localhost:3000/api/v1/health

Expected response:

{ "status": "ok" }

šŸ“ Project Structure

TruePass/
ā”œā”€ā”€ backend/
│   ā”œā”€ā”€ db/                  ← Database schema and migrations
│   ā”œā”€ā”€ src/
│   │   ā”œā”€ā”€ config/          ← Database, Redis, and Blockchain config
│   │   ā”œā”€ā”€ controllers/     ← Request handlers
│   │   ā”œā”€ā”€ jobs/            ← Background workers (BullMQ)
│   │   ā”œā”€ā”€ middleware/      ← Auth, Rate Limiting, Validation, Error Handling
│   │   ā”œā”€ā”€ models/          ← Sequelize models and associations
│   │   ā”œā”€ā”€ routes/          ← API Route definitions
│   │   ā”œā”€ā”€ services/        ← Core business logic
│   │   ā”œā”€ā”€ utils/           ← Logging and helper functions
│   │   ā”œā”€ā”€ validators/      ← Joi validation schemas
│   │   └── server.js        ← Application entry point
│   ā”œā”€ā”€ .env.example         ← Environment template
│   └── package.json         ← Dependencies and scripts
└── README.md

🚦 API Reference

Method Endpoint Auth Description
POST /api/v1/auth/challenge āŒ Get wallet authentication challenge
POST /api/v1/auth/login āŒ Verify wallet signature & login
POST /api/v1/passport/create āœ… Mint a new TruePass identity passport
GET /api/v1/passport/:id āœ… Get passport details (level, XP, reputation)
POST /api/v1/verification/start āœ… Initiate a verification level
POST /api/v1/verification/vote āœ… Validator vote submission (approve/reject)
GET /api/v1/health āŒ Server health check

šŸ‘„ Team

Built with ā¤ļø for the HackJKLU v5.0 2026 hackathon.


šŸ“„ License

This project is licensed under the ISC License — see the LICENSE file for details.


šŸ›”ļø TruePass — Your Identity. Your Passport. On-Chain Forever.

Built on HELA

About

Transform wallet addresses into portable, verified identity passports on HELA with multi-sig validator consensus and on-chain reputation.

Topics

blockchaindaodecentralized-identitydidhela-blockchainidentity-managementipfskycnextjsnodejson-chain-identityprivacyreputation-systemsecuritysmart-contractssoliditysoulbound-tokenstrustlessweb3zk-proofs

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.