[{"data":1,"prerenderedAt":225},["ShallowReactive",2],{"home-featured":3},[4,107],{"id":5,"title":6,"body":7,"demo":90,"description":82,"extension":91,"featured":92,"meta":93,"navigation":92,"order":94,"path":95,"pitch":96,"repo":90,"seo":97,"showcase":90,"stack":98,"stem":102,"tags":103,"__hash__":106},"projects\u002Fprojects\u002Fprotocol-security-research.md","Protocol security research",{"type":8,"value":9,"toc":81},"minimark",[10,15,19,22,26,29,32,35,42,46,49,52,56,62,68,74,78],[11,12,14],"h2",{"id":13},"the-problem","The problem",[16,17,18],"p",{},"Payment protocols move real money on rules that almost nobody reads. The\nspecification tells you what the system is supposed to do; the source tells you\nwhat it actually does. Where those two drift apart is where the money leaks —\nand that gap is invisible unless somebody goes and looks.",[16,20,21],{},"Nobody had gone and looked at this particular corner of a live, production\npayment network.",[11,23,25],{"id":24},"what-i-built","What I built",[16,27,28],{},"The system was the XRP Ledger (XRPL), the payment network maintained by Ripple.",[16,30,31],{},"I read the protocol's C++ implementation at source level and built a working\nmodel of how the system actually behaved, rather than how its specification\nsaid it did. Where the two diverged, there was a systemic weakness — one in the\nprotocol's design rather than in any single deployment.",[16,33,34],{},"I then proved it end to end on a test network, so the finding was a\ndemonstration rather than an argument, and designed and deployed a mitigation\nthat closed it. The work was presented as a technical talk.",[16,36,37,41],{},[38,39,40],"strong",{},"On the missing detail:"," Ripple asked that the specifics stay private.\nThat request is why this page describes the shape of the work and not the\nmechanism — no attack path, no proof-of-concept, no affected component. A\nfinding like this gets reported quietly and fixed before it gets published.",[11,43,45],{"id":44},"how-it-works","How it works",[16,47,48],{},"The method matters more than the finding here, and the method is not\nconfidential:",[16,50,51],{},"Start from the source, not the specification — the specification is a claim and\nthe source is the evidence. Reconstruct the real behaviour of the subsystem you\ncare about until you can predict its output. Where your model and the running\nsystem disagree, you have either misunderstood it or found something. Then build\nthe smallest possible demonstration on a network where being wrong is free, and\nonly once it reproduces, take it to the people who own the system.",[11,53,55],{"id":54},"decisions-and-trade-offs","Decisions and trade-offs",[16,57,58,61],{},[38,59,60],{},"Reading source over fuzzing."," Fuzzing finds crashes; it does not find a\nsystem that runs cleanly while doing something other than what its\nspecification claims. That gap is only visible once you have a model of the\nreal behaviour to hold against the claimed one.",[16,63,64,67],{},[38,65,66],{},"Proving it before reporting it."," An unproven report is a theory, and theories\nget triaged into a backlog. A working demonstration on a test network gets\nfixed.",[16,69,70,73],{},[38,71,72],{},"Reporting privately, and staying quiet afterwards."," The finding was worth\nmore as a fix than as a publication. Reporting privately and saying nothing\npublicly was the point — the interesting part of security work is the part\nyou do not get to show.",[11,75,77],{"id":76},"what-id-do-differently","What I'd do differently",[16,79,80],{},"I would write the mitigation and the disclosure timeline at the same time as the\nproof, instead of after it. By the time I had something that reproduced, I was\nnegotiating what could be said publicly with material that had not been written\nwith that constraint in mind. Deciding upfront what is publishable would have\ncost nothing and saved the rework.",{"title":82,"searchDepth":83,"depth":83,"links":84},"",2,[85,86,87,88,89],{"id":13,"depth":83,"text":14},{"id":24,"depth":83,"text":25},{"id":44,"depth":83,"text":45},{"id":54,"depth":83,"text":55},{"id":76,"depth":83,"text":77},null,"md",true,{},1,"\u002Fprojects\u002Fprotocol-security-research","Found a systemic weakness in the XRP Ledger's payment protocol by reading its source, proved it on a test network, and shipped the fix.",{"title":6,"description":82},[99,100,101],"C++","Protocol analysis","Test networks","projects\u002Fprotocol-security-research",[104,99,105],"Security Research","Protocol Design","6trVVebOcyr4w_pb1Q6S0-NOWfAkK5RfMUIOt97ZOjo",{"id":108,"title":109,"body":110,"demo":205,"description":82,"extension":91,"featured":92,"meta":206,"navigation":92,"order":83,"path":207,"pitch":208,"repo":209,"seo":210,"showcase":90,"stack":211,"stem":219,"tags":220,"__hash__":224},"projects\u002Fprojects\u002Fparasol.md","Parasol",{"type":8,"value":111,"toc":198},[112,114,117,120,122,129,132,135,137,140,170,173,175,181,187,193,195],[11,113,14],{"id":13},[16,115,116],{},"A café loses money when it rains through a summer weekend. A festival loses more.\nBoth risks are real, both are quantifiable, and neither is insurable at any\nsensible price — traditional cover means an underwriter, a claims process, an\nadjuster, and a payout months later if you can prove your loss.",[16,118,119],{},"Prediction markets already price exactly these events, continuously and publicly.\nWhat they lack is the interface: nobody thinks of buying weather positions as\nbuying insurance, and the mechanics are far out of reach for the business owner\nwho actually carries the risk.",[11,121,25],{"id":24},[16,123,124,125,128],{},"Parasol is the missing broker. An agent interviews a business owner about their\nexposure — where they are, what hurts them, how bad a bad day is — maps that onto\nlive prediction-market weather contracts, structures a basket of positions that\npays out when their pain threshold is crossed, and executes it ",[38,126,127],{},"into the client's\nown wallet",".",[16,130,131],{},"The premium is simply the market-implied probability multiplied by the payout.\nThere is no claim, no adjuster, and no custody: the positions belong to the\nclient from the moment they are bought.",[16,133,134],{},"I built this front to back — the interview agent, the market-mapping and pricing\nlogic, the contracts, and the Nuxt front end.",[11,136,45],{"id":44},[16,138,139],{},"The pipeline runs in seven stages:",[16,141,142,145,146,149,150,153,154,157,158,161,162,165,166,169],{},[38,143,144],{},"Interview"," — the agent profiles the business: city, peril, pain threshold, and\nthe size of a bad day. ",[38,147,148],{},"Catalog"," — live daily-temperature markets are indexed\nthrough standardised multi-venue adapters. ",[38,151,152],{},"Quote"," — a deterministic basket is\nassembled from every bucket at or beyond the threshold, priced as payout × Σ ask.\n",[38,155,156],{},"Authorize"," — the holder signs an EIP-712 authorization, and the server refuses\nto execute anything it cannot verify against their key. ",[38,159,160],{},"Execute"," — positions\nare delivered into the client's wallet. ",[38,163,164],{},"Attest"," — the encrypted risk profile\ngoes to storage, and the agent writes the policy on-chain committing to that\nprofile's hash. ",[38,167,168],{},"Resolve"," — a subgraph watches for the on-chain payout report\nand flips the policy's status; winners are paid automatically.",[16,171,172],{},"The agent's inference runs inside a TEE, so the risk profile it is reasoning over\nis sealed.",[11,174,55],{"id":54},[16,176,177,180],{},[38,178,179],{},"The AI writes the profile; ordinary code moves the money."," This is the\ndecision the whole design rests on. A language model deciding what risk you're\nexposed to is useful. A language model deciding how much of your money to spend\nis a liability. So the agent's output stops at a structured risk profile, and\neverything downstream — pricing, basket construction, execution — is\ndeterministic code you can audit line by line.",[16,182,183,186],{},[38,184,185],{},"Non-custodial, always."," Positions land in the client's wallet and the client\nsigns every transaction. The agent's key authorises only its own attestations,\nnever a transfer. It costs some UX smoothness and removes an entire category of\nrisk — and of regulation.",[16,188,189,192],{},[38,190,191],{},"Deterministic pricing over a model."," Premium is market-implied probability ×\npayout, with no proprietary adjustment. Anyone can verify a quote against public\nmarket data, which matters when you are asking someone to trust a machine with a\nfinancial decision.",[11,194,77],{"id":76},[16,196,197],{},"The catalog is the weak point: it depends on daily-temperature markets existing\nwith enough liquidity in the right buckets, which holds for major cities and\nfails quickly outside them. I would build the venue adapter layer first and\ndesign the product around what liquidity actually exists, rather than building\nthe ideal flow and then discovering where it has no market to stand on.",{"title":82,"searchDepth":83,"depth":83,"links":199},[200,201,202,203,204],{"id":13,"depth":83,"text":14},{"id":24,"depth":83,"text":25},{"id":44,"depth":83,"text":45},{"id":54,"depth":83,"text":55},{"id":76,"depth":83,"text":77},"https:\u002F\u002Fparasol-three.vercel.app",{},"\u002Fprojects\u002Fparasol","A hedging agent — tell it what you're exposed to, and it builds you a hedge out of live prediction-market prices.","https:\u002F\u002Fgithub.com\u002Fparasolfi\u002Fparasol",{"title":109,"description":82},[212,213,214,215,216,217,218],"Nuxt 4","Solidity","TypeScript","0G Compute","The Graph","ENS","Polymarket","projects\u002Fparasol",[221,222,214,223],"AI Agents","Prediction Markets","Insurance","dGmH5vzCv6UiuH0Y1VxqwFKJySdJcU2xu7hNOZVr8TY",1793108521020]