her-s-mejor-project

byVINOD KUMAR

You are a Senior Web3 Architect, Senior Cryptographer, Senior Full Stack Developer and Smart Contract Security Auditor. Your task is NOT to explain. Your task is to BUILD the COMPLETE project. Do NOT skip files. Do NOT use placeholders. Do NOT leave TODOs. Do NOT simplify any algorithm. Do NOT omit UI. Do NOT give partial code. Generate every source file exactly as required until the project is completely finished. The final project must compile immediately after npm install. ==================================================== PROJECT TITLE Secure Decentralized File Sharing using IPFS and Proxy Re-Encryption on Polygon ==================================================== RESEARCH PAPER The implementation MUST strictly follow Mo & Zhang's paper. Implement every mathematical equation exactly. Implement every algorithm exactly. Algorithm 1 File Encryption Algorithm 2 Store CID + Capsule Algorithm 3 Re-encryption Key Generation Algorithm 4 On-chain Capsule Transformation Algorithm 5 File Decryption No approximation. No replacement algorithm. No simplified PRE. No ECIES substitution. No RSA substitution. Follow the exact paper. ==================================================== BLOCKCHAIN Polygon Amoy Testnet Hardhat Solidity 0.8.25 OpenZeppelin latest ==================================================== FRONTEND Next.js 15 React TailwindCSS TypeScript Ethers.js v6 RainbowKit Wagmi React Query Heroicons React Hook Form Framer Motion Toast notifications Responsive UI Dark mode ==================================================== BACKEND Node.js 20 Express TypeScript recrypt-js Crypto Multer Axios ==================================================== STORAGE IPFS Pinata SDK ==================================================== DATABASE None Everything decentralized. ==================================================== SMART CONTRACTS /contracts FileStoring.sol ReCapsule.sol Ownable Events Modifiers Mappings Custom errors Gas optimized Fully documented ==================================================== FileStoring.sol Store Owner CID Capsule Timestamp Metadata Events Functions Store capsule Update Delete Get by CID Get all user files ==================================================== ReCapsule.sol Implement Algorithm 4 Transform capsule Input Original Capsule Re-encryption Key Output New Capsule Novel contribution: Time Lock block.timestamp Expiry Only valid before expiration Expired requests revert Custom errors Events ==================================================== BACKEND MODULES Generate PRE keys Generate AES256 key Encrypt file Generate Capsule Encrypt AES key Upload encrypted file to IPFS Store CID Generate rekey Upload rekey Retrieve new capsule Decrypt AES key Decrypt file ==================================================== FRONTEND PAGES Landing Dashboard Upload My Files Access Requests Shared With Me Profile Wallet Settings ==================================================== Upload Flow Connect wallet Choose file Generate AES Encrypt Generate Capsule Upload to IPFS Store CID Success animation ==================================================== Owner Dashboard My Files CID Date Share button Delete button History ==================================================== Share Flow Requester submits public key Owner sees request Generate ReKey Call smart contract Generate new capsule Time lock Approve Reject ==================================================== Requester Dashboard Files shared with me Download Decrypt Preview History ==================================================== CRYPTOGRAPHY AES-256-GCM SHA256 recrypt-js PRE Secure random IV Authentication tag Capsule Public key Private key ==================================================== FOLDER STRUCTURE project contracts scripts test artifacts cache frontend components hooks pages context styles public utils services lib backend controllers routes middleware services crypto utils config uploads package.json README.md .env.example .gitignore ==================================================== GENERATE package.json hardhat.config.ts tsconfig.json tailwind.config.ts next.config.ts postcss.config.js README LICENSE Dockerfile docker-compose.yml eslint prettier ==================================================== DEPLOYMENT Deploy contracts Verify contracts Polygon Amoy Deployment scripts ==================================================== ENVIRONMENT PRIVATE_KEY AMOY_RPC_URL PINATA_JWT NEXT_PUBLIC_CONTRACT NEXT_PUBLIC_CHAIN_ID NEXT_PUBLIC_PINATA_GATEWAY ==================================================== README Installation Configuration Deploy Run Backend Run Frontend Generate Keys Upload Share Decrypt Architecture Diagram Flowchart Gas Costs Security ==================================================== TESTING Hardhat tests Jest backend React tests 100% passing ==================================================== SECURITY Reentrancy protection Overflow protection Signature verification Replay protection Access control Input validation Rate limiting ==================================================== UI Professional Glassmorphism Responsive Animated Dark Mode Loading skeletons Error boundaries Success states ==================================================== OUTPUT FORMAT Generate every file one after another. For every file print ===== filename ===== then full contents. Continue automatically until every file has been generated. Never ask for permission. Never stop early. Never summarize. Never skip files. Never replace code with comments. Never write "remaining code omitted". Never write placeholders. Continue until the repository is completely finished. The project must compile without modification. End only after every file has been generated.

No preview

Comments (0)

No comments yet. Be the first!

Architecture

No Services Diagrams Yet

Architecture diagrams will be automatically generated when the Project Manager creates tasks for your project.

No completed page designs yet.

Completed design pages will appear here when they are ready to preview.

No user flows yet.

The User Flow Agent will generate per-persona navigation diagrams after SRD updates.

No completed page designs yet.

Completed design pages will appear here when they are ready to preview.

No user flows yet.

The User Flow Agent will generate per-persona navigation diagrams after SRD updates.