RockOffChain
A whimsical musical duel judged by machine learning, with rewards handled via state channels.
Problem Statement
In this MVP (Minimum Viable Product), a player uses funds deposited by the game creator via Nitrolite state channels (ERC-7824) to earn rewards for completing musical tasks set by the app.The app connects to a ClearNode using the developer’s pre-funded wallet. State channels enable fast off-chain transactions and payouts.As a full fledged app it will allow use of trusted Machine Learning models to adjudicate the game between players and allow storage of states for auditing on chain making it a trusted platform.
Solution
The frontend, built with React and Vite, connects to ClearNode via custom hooks. Audio is captured and processed using Math.js for FFT (Fast Fourier Transform), with essentia.js handling signal processing. A median filter isolates frequencies within the musical range (20–20,000 Hz), and the app detects specific intervals—perfect fifths and minor chords—recognisable to experienced musicians.
Hackathon
ETHGlobal Prague
2025
Contributors
- mixmixmix
42 contributions