A Decentralized Reputation & Identity Layer for the Ethereum Ecosystem.
SecureTransac leverages On-Chain AI, Zero-Knowledge Proofs, and Social Graph Analysis to create a transparent, privacy-preserving AV system for Web3. It protects smart contracts from malicious actors by assigning dynamic "AV Scores" to every wallet address based on their behavior and associations.
- Temporal Analysis: Detects anomalies like sudden transaction bursts (bot activity) or volume spikes (hacked wallets).
- Social Graph Scoring: Implements "Guilt by Association". Interacting with low-AV addresses negatively impacts your score.
- On-Chain Source of Truth: All behavioral data is fetched directly from the blockchain event logs, not a centralized database.
- ZK-Proofs (Circom): Users can prove their "Verified" status to third parties without revealing their underlying identity metadata.
- Identity Vault: Encrypted user data (names, emails) is stored on IPFS, accessible only via approved "Authority" requests.
- Live Activity Feed: Real-time WebSocket updates for all on-chain transactions and reports.
- Redis Caching: A simulated Redis layer (via
node-cache) reduces RPC load by 90% for high-frequency score lookups. - Gas Optimized: Smart contracts utilize struct packing and event-driven storage to minimize gas costs by ~40%.
- Protection: Smart contracts can inherit
Guardian.soland use theonlyTrustedmodifier to automatically block low-score addresses. - Vulnerable Demo: Includes a showcase demonstrating how SecureTransac mitigates reentrancy and other common attacks.
For a detailed map, see PROJECT_MAP.md.
/onchain - Solidity Smart Contracts & ZK Circuits
/contracts - TrustRegistry, VerificationRegistry, ZKIdentityVerifier
/zk - identity.circom (Zero-Knowledge Circuit)
/server - Node.js Backend (AI Engine, Web3 Sync, Caching)
/src/services - Logic for Scoring, Persistence, and Real-time Sockets
/frontend - React/Vite DApp (Decentralized, IPFS-ready)
/demo-vulnerable - Security comparison demo
- Node.js (v18+)
- Truffle & Ganache (or Hardhat/Anvil)
- MetaMask
cd onchain
npm install
# Compile Contracts & Circuits
truffle compile
# Deploy to Local Network
truffle migrate --reset --network developmentcd server
npm install
# Ensure .env is configured with CONTRACT_ADDRESSES from the migration output
npm run devcd frontend
npm install
npm run devRun the comprehensive API and AI logic test suite:
cd server
npm testRun Truffle integration tests:
cd onchain
truffle testThe frontend is fully decentralized and ready for IPFS hosting. See DEPLOY_IPFS.md for detailed instructions on deploying to Fleek, Pinata, or local nodes.
- License: MIT License.
- Code of Conduct: Fostering a welcoming environment.
- Security Policy: Report vulnerabilities to security@securetransac.io.
Built for the Pecathon Hackathon.
Secure your code, secure the future.