Miracam
Our world is filled with fake photos—AI-generated or edited. Miracam aims to Make Image Real Again (MIRA). We mint all shots as NFTs with hardware-generated signatures to prove authenticity. Private shots are encrypted and wallet-controlled, preserving privacy on-chain.
Screenshots






Problem Statement
The Problem: A World of Fake ImagesIn today's digital landscape, images are losing their authenticity. AI-generated renders and heavily edited photos are everywhere, and they’re becoming so realistic that they challenge our trust in visual media. Historically, photographs were considered absolute representations of reality, often used as evidence. But now, we’re constantly second-guessing the authenticity of the images we see.Current Anti-Fake Solutions:Anti-deepfake technologies aim to identify fake images. While effective, these solutions are often complex, requiring significant computational power and technical expertise to detect manipulated media. These barriers make it less accessible to the general public.The Solution: Proof of RealityMiracam flips the narrativeby proving an image is real rather than proving it is fake. Through hardware-enabled cryptography, Miracam generates cryptographic proofs that can only be created on a real device. These proofs, alongside the captured image, are uploaded to the blockchain, ensuring they are immutable, verifiable, and tied to ownership.The Challenges of Building a Camera On-ChainWhile the concept of on-chain cameras is promising, several hurdles need to be overcome:Privacy ConcernsBlockchains are public by nature. Without safeguards, publishing images on-chain compromises user privacy.Cost and SpeedWriting data to the blockchain incurs gas fees, which can be expensive and slow.User Experience BarriersRequiring users to set up wallets or understand blockchain-specific concepts like gas fees hinders adoption and complicates the experience.Hardware RequirementsDevices need cryptographic capabilities, like Secure Enclaves, to generate secure proofs that cannot be tampered with.To make an on-chain camera practical, it must beprivacy-preserving, fast, cost-effective, intuitive to use, and digitally authentic—and this is exactly what Miracam delivers:Miracam is a camera app that make every image real by storing them on-chain, verifiable and authentic via proofs. Most importantly, user did not require any knowledge of wallet, or even gas to use Miracam. L2 enabled transactions to be super cost-efficient, and taking a on-chain shot now cost at least 10x less than a polaroid film.Miracam makes image real again.
Solution
Miracam seamlessly integrates hardware-enabled cryptography with blockchain technology to establish the authenticity of images. Here’s how it works step-by-step:1. Assigning On-Chain IdentityEach Miracam device is assigned a uniqueEthereum address. To secure this identity:The device leveragesApple’s Secure Enclaveto generate a P256R1 key pair. The private key is stored securely within the device and cannot be extracted.Miracam establishes a trusted link between the device’s Ethereum address and its cryptographic key pair through anattestation process, which verifies the device’s identity.The attestation receipt is published on the blockchain, ensuring anyone can verify the device’s authenticity.We generate a wallet-specific content key for encrypting and decrypting images and managed via Lit Protocol.We assign the ENS subname with the user chosen username. The subname is stored in L2 base sepolia, where registry contracts are deployed using Durin.This step is completed in less than 30 seconds. Which means in less than 30 seconds, the user gets an Ethereum wallet.2. Capturing and Authenticating ImagesWhen a user takes a photo, Miracam ensures its authenticity by embedding cryptographic proofs:The captured image isdigitally signedusing two cryptographic keys:The device’s P256R1 private key.The Ethereum key tied to the device’s on-chain identity.These signatures prove that the image was captured on a verified, physical device.User pays usage with an ERC20 token, which is Permit2 enabled, making transfers completely gasless and invisible.3. Minting the Image as an NFTOnce authenticated, the image and its metadata are minted as anon-fungible token (NFT)on the blockchain. This step provides:Ownership:The NFT represents the user's ownership of the photo.Immutability:The photo and its proofs are stored securely, ensuring they cannot be altered or tampered with.The image is currently stored in Arweave via Irys. This guarantee the content is immutable and is going to be stored virtually forever at least 200 years.4. Adding Context Through MetadataTo proof of authenticity even further, Miracam collectssensor dataat the time of capture. This metadata includes:Geolocation(latitude and longitude)Environmental conditions(ambient sound levels)Battery statusCompass directionThese contextual data further supports the claim that the image is real and unaltered.5. Privacy-Preserving EncryptionInprivate mode, Miracam encrypts images to maintain user privacy:Encryption keys are managed using theLit Protocol, enabling wallet-based access control.Users can decrypt their images by connecting their wallet. Additionally, they can assign permissions to other wallets viaSign Protocol, granting decryption rights securely.Wallet connections are facilitated throughPrivy, which also supports social login for a seamless user experience.6. Verification Through the Miracam ExplorerTo make verification accessible, Miracam provides anexplorerwhere anyone can view and verify images:Data Streaming:UsingThe Graph’s Substream, image and metadata records are streamed in real-time.Real-Time Updates:Push Protocolensures that new images and updates appear instantly in the explorer.This transparent system allows users, researchers, or third parties to confirm the authenticity of any image captured with Miracam. User can share the link to their image to any interested parties concerning authenticity.Why It WorksBy combining cryptographic signatures, secure hardware, blockchain immutability, and privacy-preserving encryption, Miracam provides a robust, user-friendly solution to authenticate images in a world of increasing visual manipulation.
Hackathon
ETHGlobal Bangkok
2024
Prizes
- 🏆
Best Substream
The Graph
- 🏆
Connect the World with Chainlink
Chainlink
Contributors
- yikkai95
4 contributions