Loops HouseMidge

NEAR HACKATHON
Links
Team
1 member- JAOwner
Jason Jude
Overview
Problem: a group that pools money on a public chain has two bad choices. Decide in public and every bid, vote or salary can be seen and traded against. Hand the money to an operator and the operator can lose it or take it.
What we built: Midge, private rooms with public rules on NEAR. Members deposit into a contract whose rules they accept up front: who may be paid, how much may leave per period, a deadline. They send sealed, signed bids, votes or amounts to a room in secure hardware. The room works out one result and signs it; it holds no money and can only propose. The contract pays only what fits the rules, and if the room stalls, any member takes back their own share alone (hatch_out).
Programs run on real hardware: pay runs with signed invoices and private receipts, sealed quotes, ballots, pools and block trades. Every claim has a command to re-run (make verify, no keys) with its limits beside it.
How NEAR fits in:
-
NEAR contract (Rust, testnet): holds the escrow, checks every settlement (room key, round, payees, caps, deadline) and the exit.
-
NEAR AI Cloud: an attested model on Intel TDX reviews each pay run before money moves, seeing only ratios and rates; the browser verifies its signed receipt. It caught 47 of 47 planted mistakes in testing.
-
The room is our own deterministic program, so it runs where NEAR AI Cloud does not offer hosting: a Phala dstack TDX VM with a pinned, attested image (12 of 12 dstack-verifier checks).
-
Chain Signatures: the contract checked a group's rules before NEAR's signer paid on Solana devnet and Ethereum Sepolia, and refused three out-of-rule requests.
-
Private Receipts and Subtransaction View(Public&Private) for auditing.
Try it: midge.vercel.app runs a real pay run on testnet: the model reviews, the room signs, you approve with your own key and open your own payslip.
Limits: no external audit, and our deploy key can still upgrade the contract and amounts are public with confidential transfers coming soon