Cook with AI recipes and prove it on-chain—FoodGenius meets Ethereum.
FoodGenius is an AI-powered recipe generator that turns your fridge into a personal chef. Users input available ingredients, and our app generates personalized recipes with cooking instructions.
I integrated Ethereum to add a verifiable proof-of-cooking layer. Every time a user cooks a recipe, they can submit a cryptographic hash of the recipe JSON and an optional IPFS link to the Ethereum Sepolia testnet. This creates a tamper-proof, on-chain record of cooking activity, enabling social reputation, gamification, and future extensions such as badges or NFTs.
In short: AI creates the recipe, Ethereum proves you really cooked it.
The frontend is built with React Native + Expo, with a clean UI for inputting ingredients and generating recipes using AI. We added an Onchain Proof page where users can hash their recipe data locally and submit it to a relay server.
The relay server is a lightweight Node.js + Express + ethers.js backend that signs and relays attestations to the RecipeProof.sol smart contract deployed on the Ethereum Sepolia testnet. The contract emits events (RecipeCooked) with metadata including recipe hash, rating, and optional IPFS CID.
For optional decentralized storage, we integrated Web3.Storage (IPFS) so full recipe details can be pinned and linked to the on-chain event.
We kept gas costs low by storing only hashes on-chain (not full recipe data). The architecture allows future integration with WalletConnect, Ethereum Attestation Service (EAS), or NFT-based badges.
Hacky but fun: we built a dual-mode contract where attestations can be relayed by the server during the hackathon demo, but also directly self-attested by users once wallet support is added.