Home / Work

Brainwave Marketplace

Context. In autumn 2024 a team of four built Brainwave Marketplace for the [REDACTED] Hackathon. That is the event's real name. It was an online NEAR Protocol event. The idea was that a person records a session on a consumer EEG headset and sells the recording to researchers, with the sale settled on chain. The project was submitted on the last day and did not win a prize.

Edward's part. He started the project and owned the data path: capture, hashing, the IPFS uploader, and an earlier proof of concept that minted a token from a recording. Teammates built most of the final marketplace interface.

The problem

Sell sensitive data with on-chain settlement, without publishing the data itself.

Approach

  • Capture and proof. A Node service captured 30 seconds of EEG from a Neurosity Crown, wrote it to CSV, hashed the file with SHA-256, and minted an ERC-721 token on Polygon with the hash as metadata.
  • Hash on chain, data off chain. Only the hash went on chain. This was the best decision in the project.
  • Storage. A Python service pinned recordings to IPFS through Pinata.
  • Marketplace. A Next.js front end with NEAR wallet connection and a listing and purchase flow.

Result

The capture, hash and mint path worked end to end. NEAR wallet connection worked. Other parts were incomplete or mocks: listings lived in browser storage, the NEAR contract was never written, and the IPFS service had bugs.

The post-mortem names what the data layer needed: encryption with a key per recording and clear key custody, a schema written before the feature code, filter state recorded as provenance, consent stored as data with an expiry, and no compliance claim without a control in the code. These are the same questions a regulated fintech platform must answer.

The full post covers each part, what was a mock, and the architecture to build now: Brainwave Marketplace post-mortem.

Stack

Neurosity SDK, Node.js, Python, SHA-256, Polygon (ERC-721), IPFS (Pinata), NEAR, Next.js.

Building a product that holds sensitive data and settles on chain?

Book a 30-minute call

Ask a question