Loops HousePari

NEAR HACKATHON
Team
1 member- MAOwner
Martin Machiebe
Overview
Pari is the administrative agent's books for a syndicated loan, on NEAR.
In 2020, Citibank, as Revlon's loan agent, meant to pay $7.8M of interest and wired $900M instead. Loans still run on email and spreadsheets. They can't simply move to a public chain either, because the chain would publish every lender's position, every trade price and the borrower's list of banned buyers.
Pari splits the job in two. A NEAR contract holds the rules: who may do what, one action at a time, and a cap on every payout. The books themselves (positions, cash, trade prices, the banned-buyer list) live in encrypted storage inside an Intel TDX enclave on OutLayer, which the contract calls and resumes from. After every action the enclave returns a fingerprint of the books and one sealed envelope per party. The public chain sees one total and a fingerprint. Each lender opens only its own envelope.
Working on testnet today:
- interest paid to three lenders in one step, to the cent;
- a mistyped $900,000,000 total refused by the enclave, with a second, independent cap in the contract;
- a loan trade settled cash against loan at a sealed price;
- a banned buyer refused without learning why;
- a short payment shared pro rata, the rest paid with the next period;
- the agent as a two-of-three Sputnik DAO: one approval moves nothing;
- an auditor who sees every payment and no price;
- a lender proving one fact from its sealed view to anyone, and nothing else.
Anyone can check the privacy claim with no keys: one command downloads every transaction of a recorded run and the contract's whole storage from NEAR, and finds none of the deal's secrets. There are 54 Rust tests; the deal's rules keep the names and numbers of the original test suite.
Pari was first built for Canton, where the ledger itself is private. The NEAR version is a new build made during the hackathon: a new contract, a new enclave program and a new data layer. The README discloses the earlier build and links the diff.