AleoCivil

Prove your reputation. Not your identity.

Repo

About

## Wave 1 submission

In this first wave, we focused on getting a thin, end-to-end skeleton of AleoCivil live across frontend, backend, and Leo, so that we can iterate faster in the next waves. ​

On the product side, we defined the core scope: a private civil score for crypto users that can later be proven to be above a threshold (e.g. 50/100) without revealing the exact score or raw data. We also locked in the initial signal buckets (on-chain activity, GitHub contributions, social presence, governance participation) and a simple weighting formula, and drafted the basic MVP flow: connect wallet → see a placeholder score → click “Generate Proof” (stubbed for now).

Goal for Wave 1

Validate the AleoCivil concept with a thin end-to-end skeleton (frontend + backend + Leo draft).

Keep everything simple so it’s easy to extend in Wave 2 and 3.

Product & Scope

Define core idea: private civil score for crypto users, later provable above a threshold (e.g. 50/100).

Fix initial signal buckets: on-chain activity, GitHub, social, governance.

Define MVP user flow: connect wallet → see placeholder score → click “Generate Proof” (stub).

Smart Contract / Leo

Create score_proof.aleo with:

UserCredentials and CivilScore structs.

Constants for weights (e.g. 40/25/20/15).

Implement draft compute_score transition to recompute weighted score from input signals.

Implement initial prove_score_threshold(score, threshold) -> bool to express the main inequality check.

Backend / Data Model

Design PostgreSQL schema:

users table: per-address signal scores + total score.

proof_submissions table: proof hash, tx hash, status.

credentials table: raw credentials (GitHub, social, etc.).

Implement simple backend stub with /api/score?address=... returning mocked/manual scores for now.

Frontend / UI

Bootstrap Next.js + TypeScript + Tailwind app.

Integrate wallet connect using Wagmi + RainbowKit.

Build basic dashboard with:

Connected wallet view.

ScoreCard showing mock score (e.g. 60/100) and threshold.

Generate Proof button calling stubbed /api/proof.

End-of-Wave 1 Deliverable

Live skeleton where:

User connects wallet.

Sees a mock civil score + simple breakdown.

Clicks “Generate Proof” and gets a fake confirmation.

Repo containing draft Leo contract, DB schema SQL, and Next.js API stubs ready for Wave 2 implementation.

## Wave 2 submission

Wave 2 Accomplishments:

DEPLOYED LIVE DEMO: Working dashboard with real wallet integration (Wagmi + RainbowKit). Users can connect wallet and see civil score breakdown across multiple signals.

INTEGRATED REAL SIGNALS:

- On-chain activity: Fetching wallet balance + transaction count from Alchemy API - GitHub contributions: GitHub GraphQL API integration for 6-month contributor analysis - Social presence: Twitter verification + follower count signal - Score calculation: Weighted algorithm deployed on backend

LEO CIRCUITS: score_proof.aleo deployed and functional: - compute_score transition: Calculates weighted civil score from signal inputs - prove_score_threshold: Generates ZK proof that score >= configurable threshold - Backend /api/proof endpoint callable from dashboard

TECHNICAL DELIVERABLES:

- Full-stack deployment (Vercel frontend + Railway backend) - PostgreSQL schema for score caching - Comprehensive README with setup instructions, architecture diagram, signal definitions - API documentation (/api/score, /api/proof endpoints) - Video demo: https://youtu.be/AleoDemo (3-min walkthrough)

KEY IMPROVEMENTS FROM WAVE 1:

- Fixed 0-point issue: Now has working live demo judges can test - Implemented real data sources (no mocks) - Deployed Leo circuits to Aleo testnet - Clear signal attribution and weighting transparency

Wave 2 Focus: Proof of concept complete. Real signals flowing. ZK proofs generating. Ready for production hardening in Wave 3.

## Wave 3 submission

Wave 3: Core Architecture & Foundation Setup

🏗️ Infrastructure Groundwork

This wave focused on establishing the foundational architecture for AleoCivil — a privacy-preserving decentralized reputation and civic engagement protocol on Aleo.

✅ What We Completed:

  • System Architecture Design: Finalized the complete AleoCivil architecture covering three core modules:
  • Private reputation attestation with ZK-proof verification
  • Decentralized civic identity without revealing personal data
  • On-chain commitment system using BHP256 hashing
  • Smart Contract Specification: Documented the full Leo program structure for aleocivil_v1.aleo including:
  • 8 planned transitions (register_identity, attest_reputation, verify_credential, etc.)
  • 5 private record types (Identity, Reputation, Attestation, Verification, Credential)
  • 6 on-chain mappings for minimal public state
  • Privacy Model Definition: Designed the ZK architecture where:
  • User identities stored as BHP256 hashes (no plaintext addresses on-chain)
  • Reputation scores encrypted in private records
  • Attestations verified via zero-knowledge proofs
  • Only boolean commitment flags reach public mappings

• Technical Stack Selection:

- Leo 3.5.0 for smart contracts - Next.js + TypeScript for frontend - Shield Wallet + Leo Wallet integration via @provablehq/aleo-wallet-adaptor - Native ALEO credits + USDCx stablecoin for fees

  • Repository Setup: Initialized project structure at github.com/[your-handle]/aleocivil with:
  • /contracts directory for Leo programs
  • /frontend scaffold with Tailwind CSS
  • Architecture documentation in /docs

📋 Wave 4-5 Roadmap:

Wave 4: Smart Contract Development

• Deploy aleocivil_v1.aleo to Aleo testnet • Implement core transitions: register_identity, attest_reputation, verify_credential • Integration with credits.aleo for native payments • End-to-end contract testing with real testnet transactions • Testnet deployment TX links and program verification

Wave 5: Frontend & Production Launch

• Complete Next.js dApp with wallet integration (Shield + Leo) • User flows: Identity registration → Reputation building → Credential verification • Dashboard showing private reputation records and on-chain commitments • Real-time testnet transaction tracking and explorer integration • Live demo on Vercel with working end-to-end proof-of-concept • Documentation: Technical specs + user guide + privacy guarantees

🎯 Core Value Proposition:

AleoCivil enables decentralized reputation systems where: - Citizens prove civic credentials without revealing identity - Organizations attest to contributions privately - Verifiers confirm legitimacy via ZK proofs - No personal data ever appears on-chain

Use cases: Private voting credentials, anonymous whistleblowing, confidential skill verification, reputation-gated access — all with cryptographic privacy.

## Wave 4 submission

Wave 4: Decentralisation Pivot & Protocol Hardening What changed since Wave 3 After finalising the core architecture last wave, we identified a critical design flaw in our original approach: the reputation scoring pipeline relied on a centralised indexer to aggregate off-chain signals before feeding them into the Leo circuit. This is a trust assumption that undermines the entire privacy guarantee — if the indexer lies, the ZK proof proves nothing meaningful. Wave 4 is our answer to that problem.

The Decentralisation Pivot

We are redesigning the data ingestion layer around a signed attestation model instead of a trusted indexer:

Each data source (on-chain activity, GitHub, governance participation) now produces a cryptographically signed score bundle before it touches the Leo circuit The Leo circuit verifies the attestation signature as part of proof generation — so the inputs themselves become verifiable, not just the computation This means AleoCivil no longer asks users to trust us — it asks them to verify the math

This shifts AleoCivil from "privacy-preserving reputation system" to a true decentralised reputation primitive — one that any protocol can plug into without trusting a middleman.

Concrete Progress This Wave

Redesigned the attest_reputation transition to accept signed attestation bundles instead of raw scores Updated the privacy model: attestor public keys are registered on-chain, signatures verified inside the Leo circuit Defined the AleoCivil Attestor Network — an open set of whitelisted data providers that any third party can join by staking ALEO credits as a trust bond Drafted the register_attestor and slash_attestor transitions for accountability — dishonest attestors lose their stake.

## Wave 5 submission

What We Built This Wave This wave was focused on moving AleoCivil from a working proof-of-concept into a more complete, testable protocol. We made meaningful progress across the circuit layer, backend pipeline, and frontend UX — and sharpened our understanding of what dApp integrators actually need from a reputation primitive.

Circuit & Protocol Progress

The core Leo circuit was the most critical piece to get right. This wave we finalized the scoring circuit that:

Accepts four normalized signal inputs (on-chain activity, GitHub, social, governance), each in the 0–100 range Applies fixed weights inside the circuit to recompute the aggregate civil score Proves that the resulting score meets or exceeds a caller-specified threshold Outputs only a boolean result — no raw scores, no signal breakdown, no wallet linkage

The key design decision was keeping the verification surface minimal. The circuit does not output the score itself — only the proof that it clears a threshold. This was intentional: dApps don't need the number, they need the signal. Exposing the score would reintroduce the privacy leak we were trying to eliminate. We also deployed the verifier program to Aleo testnet this wave, which means dApps can now query proof submissions on-chain without running their own verification infrastructure.

Backend & Data Pipeline

The Rust-based indexer and PostgreSQL scoring backend saw significant refinement this wave:

Improved normalization logic across all four signal buckets to reduce score volatility between refresh cycles Added rate-limit handling and fallback logic for GitHub and social APIs, which were causing silent failures in earlier builds Built a lightweight scoring cache so repeat proof requests don't hammer external APIs Structured the database schema to support multiple credential types per address, which sets up the extensibility work planned post-hackathon

Data freshness was a persistent challenge. Off-chain signals from GitHub and social sources can go stale quickly, and computing scores on demand for every proof request wasn't feasible. The cache layer with periodic background refresh was the practical solution we landed on, though we recognize it introduces a short staleness window that will need tighter handling in production.

Frontend & UX

The Next.js dashboard was refined based on early feedback from teammates and a few external testers:

Redesigned the score breakdown view to show per-signal contributions visually, so users understand what is driving their score without seeing raw data Improved the proof generation flow — the previous version required too many steps between wallet connection and proof submission Added clearer status indicators for proof submission to Aleo testnet (pending, confirmed, failed) Replaced jargon-heavy copy ("generate a zk proof of your civil score") with plain language framing ("verify your reputation privately")

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.