About
## Wave 4 submission
In this wave, we developed DecryptPay, a decentralized pay-per-download platform fully powered by the OG Chain and 0G Stack. The goal: empower creators to encrypt, store, and sell digital content directly to buyers — trustlessly, transparently, and permanently.
🔹 1. 0G Storage Integration
Integrated @0glabs/0g-ts-sdk to handle encrypted uploads and retrievals. Files are encrypted locally, uploaded to 0G Storage, and return a content hash for permanent on-chain reference. Added secure decryption flow — only verified buyers (on-chain check) can decrypt and access files. Ensures tamper-proof, censorship-resistant content storage.
🔹 2. Smart Contract Payments (OG Chain) Built a new DecryptPayRegistry.sol contract to manage: File listings (creator, price, content hash, and metadata). Native OG token payments for content purchases. Automatic event emission for purchase verification. Eliminated intermediaries — all payments and access control occur directly on-chain.
3. End-to-End Creator & Buyer Workflow
Creators: Encrypt file → upload to 0G → publish listing on OG chain. Buyers: Connect wallet → purchase with OG tokens → unlock file after payment validation. Completed the full cycle from upload to decryption — 100% OG-native.
4. Modern Frontend & UX
Built with Next.js + Tailwind CSS + RainbowKit + Wagmi (connected to OG RPC). Added dynamic content cards with thumbnail, title, description, price, and creator info. Integrated toasts and progress UI for every step (encrypt → upload → publish → purchase). Achieved a clean interface optimized for creators and buyers.
## Wave 5 submission
⚙️ Infrastructure & Deployment Update
✅ OG Chain Compatibility
Achieved full compatibility with the OG Mainnet environment
Successfully upgraded OG Storage from testnet to mainnet for stable, production-ready performance
🔗 Contract Verification
Verified smart contract successfully on ChainScan: View Contract on Explorer
📘 Documentation
Published a comprehensive README covering:
Complete system flow and architecture
Integration guide for developers
Post-hackathon roadmap outlining next milestones and feature rollouts
Prizes
- Wave 5 grant · 288 USDT
From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.





