MedYield

Your health data has value. Now it can earn without being exposed.

Repo

About

## Wave 1 submission

Research, and Architecture Desgin - Problem validation and market research. - ReineiraOS evaluation — selected as escrow and stablecoin payment infrastructure. - System architecture design — factory pattern (MedYieldHub → DataVault), TemplateRegistry for computation governance, ReineiraOS for escrow lifecycle - Security threat modeling - Design documentation and technical specification

## Wave 2 submission

Wave 2 delivered a working end-to-end MVP: a factory-deployed FHE protocol, three pluggable encrypted computation templates, confidential stablecoin payouts wired through ReineiraOS, and a Next.js frontend with a live client-side encrypted submission flow https://med-yield.vercel.app/

## What Wave 2 Shipped

**Protocol (`packages/foundry/src/`)** - `MedYieldHub.sol` — factory and registry; deploys a dedicated `DataVault` per bounty via CREATE2 - `DataVault.sol` — per-bounty encrypted submission escrow with OPEN → COMPUTING → COMPLETED state machine - `VaultDeployer.sol` — split out from Hub to stay inside the 24 KB contract-size limit - `TemplateRegistry.sol` — owner-curated whitelist of approved computation contracts - `MedYieldConditionResolver.sol` — ReineiraOS `IConditionResolver` implementation gating escrow release on validated submissions **Computation templates** (all operate on ciphertexts end-to-end) - `AggregateStats` — per-field sum, min, max, mean + valid count - `EligibilityScreening` — encrypted AND-combined criteria (gte / lte / eq) → eligible count - `RiskScoring` — weighted composite index with encrypted divisor **Validation** - `DataValidator` library — `FHE.gte`/`FHE.lte`/`FHE.and` across all fields, returning a publicly-decryptable `ebool` so the relayer can confirm validity without seeing any value **Payouts** - ReineiraOS `ConfidentialEscrow` integrated as the sole payment path; escrow releases encrypted `cUSDC` only when `DataVault.isSubmissionValidated(id) == true` **Frontend (`packages/nextjs/`)** - Next.js 16 App Router, TypeScript, Tailwind + DaisyUI, design tokens matching the handoff spec - Routes: `/` landing, `/marketplace`, `/earnings`, `/org` - Wallet: RainbowKit + wagmi 2 + viem 2 (MetaMask, WalletConnect, Rainbow, Trust, Rabby) - State: Zustand (persisted) + React Query **Submission UX** - 4-step encrypted submission drawer (`components/submit/SubmitDrawer.tsx`): overview → form → encrypt → confirm - `@cofhe/sdk` 0.4.0 integrated for client-side encryption — plaintext never leaves the browser **Testing** (1,243 LoC Foundry) - Unit tests for every contract - Template-level tests for each of the three computations - `test/integration/FullFlow.t.sol` — end-to-end: deploy → create bounty → fund escrow → submit → validate → batch-compute → finalize → read encrypted result ---

## Wave 3 submission

Wave 3 turns the MedYield MVP into a live product on Arbitrum Sepolia. The submission flow runs real Fhenix CoFHE encryption end-to-end (no more `randomHex` placeholders); the org dashboard is fully wired through `MedYieldHub` from create-bounty through finalize-and-decrypt; an off-chain relayer daemon listens for `DataSubmitted` events and confirms encrypted validity bits; **patient reputation** with a per-bounty threshold gate. The protocol, frontend, relayer, and three seeded demo bounties are deployed on Arbitrum Sepolia

## Wave 4 submission

- Security Review and hardening - Structural fixes and changes - Invariant test

## Wave 5 submission

MedYield from a working encrypted-data prototype into a fuller privacy-native protocol stack. - Deployed subgraph that indexes MedYieldHub and dynamic per-bounty DataVault contracts, including Bounty, BountyField, and Submission entities. -ReineiraOS / Privara payment integration. MedYield now settles validated contributor payouts through ReineiraOS ConfidentialUSDC on Arbitrum Sepolia. During this wave the earlier per-submission ConfidentialEscrow + ConditionResolver payment path was replaced with a stronger MedYieldBountyPool design: organizations pre-fund the whole bounty budget once, the pool shields USDC into cUSDC, and validated contributors claim permissionlessly.

Deliverables:

Live demo: https://med-yield.vercel.app/ Subgraph: https://api.studio.thegraph.com/query/1754368/medyield/0.0.5

Key live contracts:

MedYieldHub: 0xB56e253084a9bB74fB7e87227e144d292246437A MedYieldBountyPool: 0xBD360cc999f420d8A85D00CC13Ea46783daD073C ReineiraOS cUSDC: 0x42E47f9bA89712C317f60A72C81A610A2b68c48a

From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.