Prashant Chaudhari (@pandaa880) header
Prashant Chaudhari (@pandaa880) profile picture

Software engineer. Researching how money moves, building on Solana, and writing down the thinking from idea to working code.

India
Joined October 2016
Photo by Prashant Chaudhari (@pandaa880)Photo by Prashant Chaudhari (@pandaa880)Photo by Prashant Chaudhari (@pandaa880)Photo by Prashant Chaudhari (@pandaa880)Photo by Prashant Chaudhari (@pandaa880)Photo by Prashant Chaudhari (@pandaa880)Photo by Prashant Chaudhari (@pandaa880)Photo by Prashant Chaudhari (@pandaa880)Photo by Prashant Chaudhari (@pandaa880)Photo by Prashant Chaudhari (@pandaa880)
A lender shouldn't take my word that a credit tier came from an AWS enclave. So the browser checks the proof itself. TEE Income Oracle scores a borrower's bank statement inside an AWS Nitro enclave and writes a credit tier to Solana devnet. The enclave can produce proof of what it is: an attestation document, signed by AWS's hardware. I wrote a verifier that checks it in the browser. Seven checks, without trusting my server. Four places where the obvious code was wrong: 1. Re-packing the data before checking the signature. Same data, one byte shorter, and AWS's signature no longer matches. 2. A genuine AWS signature my crypto library rejected, because it applies a blockchain rule AWS has no reason to follow. 3. Checking certificates against today's date. They last about three hours, so every archived proof would fail a few hours later. 4. A code fingerprint that changes when you fix a typo in a comment. And one gap that had nothing to do with crypto: seven green checks on a tier written by the wrong account is still a fail. The post also lists what a pass doesn't prove. prashantchaudhari.dev/posts/…
1
58
Three EMIs adding up to exactly 40.01% of income. Summed with floats in one order: tier A. In another order: not tier A. Why 96 of 100 paise endings can't be stored exactly in binary, and how I parse money as integer paise instead: prashantchaudhari.dev/posts/…
3
111
My TEE Income Oracle demo was down for almost 3 days, and I only noticed after 2. The enclave host's indexer stalled on Oct 9, missed my top-up, and stopped a fully funded instance on Oct 22. It's back up, and v0.5.2 makes sure the next outage gets caught within about half n hour, not 2 days. Here is what happened: The money sat in the job's contract the whole time. I withdrew it (minus ~5 USDC billed while the instance was dead), redeployed on a new instance, and reported the stall to Marlin with a reproduction steps. What v0.5.2 ships • Restarts no longer kill past results. A TEE's signing key lives only inside its instance, so a dead instance can't sign again. Its old attestations now stay valid instead of being revoked. • A health check every 30 min: it starts a real session (gateway → enclave → bank), checks the enclave's key against the on-chain registry, reads paid-until straight from the contract, and watches the indexer. Anything off opens a GitHub issue. Demo is live again on devnet: 4 bank-statement personas → tier A/B/C/REJECT, then a tier-A borrow + repay. Next: a key that survives restarts, so a redeploy keeps the same identity. @colosseum @SuperteamIN @MarlinProtocol github.com/pandaa880/tee-inc…
1
1
78
PSA: I landed on discord looking for marlin support and accidently clicked impersonating support ticket URL & someone in that ticket said a "scam transaction triggered an RPC bug" and told me to "connect through an RPC debug browser". That's a wallet drainer. Real support never asks you to connect a wallet, share a key or sign anything.
My TEE Income Oracle demo was down for almost 3 days, and I only noticed after 2. The enclave host's indexer stalled on Oct 9, missed my top-up, and stopped a fully funded instance on Oct 22. It's back up, and v0.5.2 makes sure the next outage gets caught in 30 minutes, not 2 days. Here is what happened: The money sat in the job's contract the whole time. I withdrew it (minus ~5 USDC billed while the instance was dead), redeployed on a new instance, and reported the stall to Marlin with a reproduction steps. What v0.5.2 ships • Restarts no longer kill past results. A TEE's signing key lives only inside its instance, so a dead instance can't sign again. Its old attestations now stay valid instead of being revoked. • A health check every 30 min: it starts a real session (gateway → enclave → bank), checks the enclave's key against the on-chain registry, reads paid-until straight from the contract, and watches the indexer. Anything off opens a GitHub issue. Demo is live again on devnet: 4 bank-statement personas → tier A/B/C/REJECT, then a tier-A borrow + repay. Next: a key that survives restarts, so a redeploy keeps the same identity. @colosseum @SuperteamIN @MarlinProtocol github.com/pandaa880/tee-inc…
There's a new version of this post
1
60
0.5.1 is released on devnet. Submitted TEE Income Oracle to the @SuperteamIN track at Colosseum's World's Fair. Funders of Indian NBFCs take loan books on trust. We give every loan a receipt: bank data checked against the funder's criteria in an AWS Nitro enclave; only a tier lands on Solana. tee-income-oracle-web.vercel…
Funders of Indian NBFCs get a loan tape they can't check. I gave every loan a receipt: proof its income check ran on real bank data, against the funder's criteria, without the funder, lender or me seeing the statement. How it works: → The borrower consents through India's Account Aggregator rail → Inside an AWS Nitro enclave, the statement is decrypted, checked and wiped → The statement never leaves the enclave. On Solana: a tier, the criteria hash, the enclave build and the statement dates → Lending pools read that receipt in their own instruction and refuse stale tiers, retired builds and old criteria Don't take my word for it: paste a borrower's wallet into the verify page and seven checks run in your browser, from AWS's root certificate to the key on chain. Honest limits: Solana devnet, a simulated bank that speaks the real protocol, one admin key. A receipt proves the check ran, not that the loan gets repaid. Solo, under three weeks, open source.
2
35
Funders of Indian NBFCs get a loan tape they can't check. I gave every loan a receipt: proof its income check ran on real bank data, against the funder's criteria, without the funder, lender or me seeing the statement. How it works: → The borrower consents through India's Account Aggregator rail → Inside an AWS Nitro enclave, the statement is decrypted, checked and wiped → The statement never leaves the enclave. On Solana: a tier, the criteria hash, the enclave build and the statement dates → Lending pools read that receipt in their own instruction and refuse stale tiers, retired builds and old criteria Don't take my word for it: paste a borrower's wallet into the verify page and seven checks run in your browser, from AWS's root certificate to the key on chain. Honest limits: Solana devnet, a simulated bank that speaks the real protocol, one admin key. A receipt proves the check ran, not that the loan gets repaid. Solo, under three weeks, open source.
v0.3.0 is live on Solana devnet. A bank statement goes into a hardware enclave on @MarlinProtocol Oyster. A signed income tier comes out, lands on Solana as an attestation, and a lending pool reads it to decide how much you can borrow. The bank statement never leaves the enclave. On-chain: tier, policy hash, statement date range. What shipped: • Oracle program: checks the enclave's secp256k1 signature via Solana's precompile, writes a Solana Attestation Service record • Enclave registry: on-chain list of approved enclave builds; restart = new key, old one revoked • Demo lending pool: borrow limit set by tier (tier A can borrow more than B; REJECT gets nothing) • Reproducible enclave image: rebuild it, compare the image id with the one registered on-chain Data comes from a sandbox bank + aggregator, built to India's Account Aggregator spec. Real attestation tx: explorer.solana.com/tx/45yYt… Release + verify steps: github.com/pandaa880/tee-inc…
1
1
2
79
v0.3.0 is live on Solana devnet. A bank statement goes into a hardware enclave on @MarlinProtocol Oyster. A signed income tier comes out, lands on Solana as an attestation, and a lending pool reads it to decide how much you can borrow. The bank statement never leaves the enclave. On-chain: tier, policy hash, statement date range. What shipped: • Oracle program: checks the enclave's secp256k1 signature via Solana's precompile, writes a Solana Attestation Service record • Enclave registry: on-chain list of approved enclave builds; restart = new key, old one revoked • Demo lending pool: borrow limit set by tier (tier A can borrow more than B; REJECT gets nothing) • Reproducible enclave image: rebuild it, compare the image id with the one registered on-chain Data comes from a sandbox bank + aggregator, built to India's Account Aggregator spec. Real attestation tx: explorer.solana.com/tx/45yYt… Release + verify steps: github.com/pandaa880/tee-inc…
Update: v0.2.0: the enclave can now score. Same pipeline, 4 simulated borrowers, 4 different answers: • Steady salary → A • Trader with lumpy income → B • Income dropped in the last 3 months → C • Bounced EMIs + 178 days in overdraft → REJECT The bank statement never leaves the enclave. On-chain: just the tier, the policy hash and the statement's date range. How it decides (inside the enclave, in Rust): → parses the ReBIT bank statement → classifies transactions: income, loan EMIs, bounces, overdraft → measures FOIR (share of income going to EMIs), income stability, and the last 3 months against the full history → applies the lender's policy. Its hash goes into the signed result, so anyone can see which rules produced the tier → a REJECT produces nothing to sign The default policy is a transparent heuristic, not a trained model. Lenders can bring their own. github.com/pandaa880/tee-inc…
1
1
3
380
Update: v0.2.0: the enclave can now score. Same pipeline, 4 simulated borrowers, 4 different answers: • Steady salary → A • Trader with lumpy income → B • Income dropped in the last 3 months → C • Bounced EMIs + 178 days in overdraft → REJECT The bank statement never leaves the enclave. On-chain: just the tier, the policy hash and the statement's date range. How it decides (inside the enclave, in Rust): → parses the ReBIT bank statement → classifies transactions: income, loan EMIs, bounces, overdraft → measures FOIR (share of income going to EMIs), income stability, and the last 3 months against the full history → applies the lender's policy. Its hash goes into the signed result, so anyone can see which rules produced the tier → a REJECT produces nothing to sign The default policy is a transparent heuristic, not a trained model. Lenders can bring their own. github.com/pandaa880/tee-inc…
Building for the Colosseum World's Fair: A privacy preserving income oracle for India's Account Aggregator rail, on Solana. Bank data is decrypted and scored inside an AWS Nitro enclave. Only a risk tier goes on-chain. Nobody, including us, sees the statement. Who it's for: people with real, bank-visible income but no formal credit file. Today they get rejected, or hand a lender their full bank statement. How it works: → borrower consents via India's AA rail → encrypted statement goes into the enclave → enclave verifies, decrypts and scores it, then signs a risk tier → tier lands on Solana via the Solana Attestation Service, readable by any program Shipped so far (v0.1.0 out today): ✅ Enclave runs on Marlin Oyster, and anyone can verify its code ✅ Solana Attestation Service tested on devnet — credential, schema and a test attestation ✅ Opens the encrypted bank statement ✅ Checks every message is really signed by the bank and the AA ✅ Refuses fakes — 9 attack cases rejected, incl. alg:none, HS256 swap, tampered ciphertext, unpinned keys ✅ Simulated bank that speaks the real ReBIT protocol — test data for different borrower types, cross checked between TypeScript and Rust github.com/pandaa880/tee-inc…
1
371
Building for the Colosseum World's Fair: A privacy preserving income oracle for India's Account Aggregator rail, on Solana. Bank data is decrypted and scored inside an AWS Nitro enclave. Only a risk tier goes on-chain. Nobody, including us, sees the statement. Who it's for: people with real, bank-visible income but no formal credit file. Today they get rejected, or hand a lender their full bank statement. How it works: → borrower consents via India's AA rail → encrypted statement goes into the enclave → enclave verifies, decrypts and scores it, then signs a risk tier → tier lands on Solana via the Solana Attestation Service, readable by any program Shipped so far (v0.1.0 out today): ✅ Enclave runs on Marlin Oyster, and anyone can verify its code ✅ Solana Attestation Service tested on devnet — credential, schema and a test attestation ✅ Opens the encrypted bank statement ✅ Checks every message is really signed by the bank and the AA ✅ Refuses fakes — 9 attack cases rejected, incl. alg:none, HS256 swap, tampered ciphertext, unpinned keys ✅ Simulated bank that speaks the real ReBIT protocol — test data for different borrower types, cross checked between TypeScript and Rust github.com/pandaa880/tee-inc…
1
1
1
125
Week 1 done: - Live WebSocket connection to Binance - Exponential backoff reconnection - Multiplexed streams via single WS connection - 4 symbols streaming live with sparklines Next: order book diffing algorithm
1
41
Starting a focused build: crypto trading frontends in React/TS. Week 1 goal: live order book pulling from Binance WebSocket — real-time price levels, sequence validation, reconnection logic. Not a tutorial. Just building and sharing what I learn.
1
5
71
Decided to learn TypeScript this morning. Cloned my old project to convert it to use Typescript. I was damn excited and started with first tutorial. I hit the “npm i” and terminal is flooded with so many node-pre-gyp errors.
1
3
For all the students who are into web dev and looking for a great learning opportunity.. this is your chance :)
Happy to announce - "ChangWorks Internship" program: kushagra.dev/internship ✨ Come, build side-products with me! Please RT for reach. #internships #buildWithChang
1
3
Replying to @vick_OnRails
@vick_OnRails thanks for building next.js starter.
1
1
Write Your First Program with the Rust Language by @PascalPrecht (course on @eggheadio) egghead.io/courses/write-you…
1