Loops HouseMaskbid

NEAR HACKATHON
Team
1 member- YOOwner
Yoga Bayu Kusuma
Overview
Open auctions leak information. Once bidders can see each other’s prices, they copy, snipe and game the outcome. Sealed bid auctions fix that, but normally you have to trust the operator not to peek at or tamper with the bids. MaskBid takes that trust out of the process.
MaskBid is a sealed-bid auction platform for verified assets, settled on NEAR. Sellers register an asset, a verifier approves it, and it is listed as a lot (each lot is a NEP-171 token). Bidders verify their identity and place bids. The browser encrypts the bid amount with AES-256-GCM, wraps a fresh per-bid key with RSA-OAEP-2048, and binds it to that auction. Identical bids therefore produce envelopes that can’t be linked, and the plaintext never leaves the tab.
How NEAR fits in: one near-sdk (Rust) contract acts as the escrow and the source of truth. The deposit (NEP-141 mUSDC) and the sealed bid go in one transaction, and the contract checks that the on-chain commitment matches the one the browser computed. Every accepted bid extends an ordered keccak-256 digest, so the full bid set is frozen on chain before anyone ranks it. After the auction closes, the contract hands the complete set to a solver running in an OutLayer TEE worker, which decrypts and ranks the bids inside the enclave. If any bid is missing or altered against the digest, the run stops and no partial winner is produced. Settlement is atomic: the winner pays and receives the asset token, and every losing deposit is refunded in the same transaction.
Only the winner and the winning amount are ever revealed. Losing bids stay sealed for good. Execution and output hashes are published on an evidence page so anyone can audit the result. Live demo on NEAR testnet: https://maskbid.vercel.app