[{"data":1,"prerenderedAt":560},["ShallowReactive",2],{"projects-all":3},[4,107,225,303,401,480],{"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",{"id":226,"title":227,"body":228,"demo":90,"description":82,"extension":91,"featured":92,"meta":286,"navigation":92,"order":287,"path":288,"pitch":289,"repo":290,"seo":291,"showcase":90,"stack":292,"stem":298,"tags":299,"__hash__":302},"projects\u002Fprojects\u002Flightning-node.md","Lightning node in Rust",{"type":8,"value":229,"toc":279},[230,232,235,238,240,243,246,248,251,254,256,262,268,274,276],[11,231,14],{"id":13},[16,233,234],{},"Payment infrastructure is easy to talk about and hard to feel. You can read about\nrouting, channel liquidity and settlement for a long time without ever\nunderstanding why the people who run this software worry about the things they\nworry about.",[16,236,237],{},"The only way to learn what a payment network actually demands of its operators is\nto run one and keep it running.",[11,239,25],{"id":24},[16,241,242],{},"A Bitcoin Lightning node, built from scratch in Rust and operated on testnet as a\nreal service rather than a script — a systemd unit that starts on boot, survives\nrestarts, and stays up.",[16,244,245],{},"On top of the node I built a custom LNURL server and client, implementing the\nprotocol layer that turns a raw node into something a person can actually pay: a\nstatic identifier that resolves into an invoice on demand.",[11,247,45],{"id":44},[16,249,250],{},"The node maintains channels with peers and keeps the local state needed to route\nand settle payments. LNURL sits above it as the usability layer — the client\nfetches a well-known endpoint, the server responds with the parameters for an\ninvoice, and the client requests one for the amount it wants. It turns \"send me a\nfresh invoice each time\" into something that works like an address.",[16,252,253],{},"Running it as a systemd service, rather than a foreground process, is what makes\nthe difference between a demo and infrastructure: restart policy, logging, and\nlifecycle all become somebody's explicit decision.",[11,255,55],{"id":54},[16,257,258,261],{},[38,259,260],{},"Rust, deliberately."," Payment software has no good failure modes. A language\nthat forces the error paths to be handled at compile time removes a whole class\nof bug from a system where that class of bug loses money.",[16,263,264,267],{},[38,265,266],{},"From scratch over an existing implementation."," Slower, and the result is worse\nthan any production node. That was the trade: the goal was to understand the\nprotocol's demands rather than to operate the best possible node, and running\nsomeone else's binary teaches you very little about why it is built the way it is.",[16,269,270,273],{},[38,271,272],{},"Testnet."," Free to be wrong, which is exactly what you want while learning what\nbreaks.",[11,275,77],{"id":76},[16,277,278],{},"I would instrument it from the first commit. I spent real time reasoning about\nchannel and routing behaviour from logs when a handful of metrics would have\nanswered the question immediately. For anything long-running, observability is\nnot a later concern — it is the thing that makes the system legible to you at all.",{"title":82,"searchDepth":83,"depth":83,"links":280},[281,282,283,284,285],{"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},{},3,"\u002Fprojects\u002Flightning-node","A Bitcoin Lightning node built and operated from scratch, with a custom LNURL server and client.","https:\u002F\u002Fgithub.com\u002Flinadevinci\u002Flnurl-project",{"title":227,"description":82},[293,294,295,296,297],"Rust","Bitcoin","Lightning Network","LNURL","systemd","projects\u002Flightning-node",[293,294,300,301],"Payments","Distributed Systems","lMkxeHkY40bCkcey6hSLmYsoec2mt5S8kiclzn0yeGA",{"id":304,"title":305,"body":306,"demo":90,"description":82,"extension":91,"featured":92,"meta":384,"navigation":92,"order":385,"path":386,"pitch":387,"repo":388,"seo":389,"showcase":390,"stack":391,"stem":397,"tags":398,"__hash__":400},"projects\u002Fprojects\u002Faudithor.md","AudiThor",{"type":8,"value":307,"toc":377},[308,310,313,316,318,321,324,327,330,333,335,338,341,343,354,360,366,372,374],[11,309,14],{"id":13},[16,311,312],{},"Smart contract audits are expensive, slow and gatekept. A traditional firm\ncharges thousands and takes weeks, which prices out exactly the small teams\nshipping the most unreviewed code.",[16,314,315],{},"AI scanning is fast and cheap enough to change that, but the payment model\ndoesn't fit. A flat fee charges the same for clean code and a disaster. A\nsubscription charges you when you ship nothing. And there is no trust layer to\ntell a legitimate auditor from a bot harvesting vulnerability data.",[11,317,25],{"id":24},[16,319,320],{},"AudiThor is an audit platform where AI agents scan your code and are paid in\nstreaming micro-payments for exactly the time they spend. Safe code finishes\nquickly and costs less; vulnerable code takes longer and costs more. The price\ntracks the work.",[16,322,323],{},"Around that pricing core: a wallet connection that accepts payment in any major\ntoken and swaps it automatically, encrypted delivery so findings are readable\nonly by the wallet that paid for them, an immutable log of every payment and\nfinding, and human-in-the-loop verification so a real person stands behind a\nresult.",[16,325,326],{},"Unused budget is refunded on-chain when the session closes.",[16,328,329],{},"This grew out of an earlier iteration, KronoScan, which established the escrow\nand per-category payment model; AudiThor is that design with the integrations\nfinished.",[16,331,332],{},"I worked across the whole stack — the agent logic, the payment and escrow layer,\nand the front end.",[11,334,45],{"id":44},[16,336,337],{},"You connect a wallet and pay in whatever token you hold; a swap converts it and\nthe proceeds are deposited into escrow. As the agents work, micro-payments stream\nout of that escrow every few seconds against the time consumed. A live dashboard\nshows findings appearing and the cost climbing in real time — you watch the\ninvoice being written.",[16,339,340],{},"Results are encrypted so only the paying wallet can decrypt them, and every\npayment and finding is written to an immutable consensus log, so the audit trail\nis externally verifiable rather than something we assert. When the session\ncloses, whatever is left in escrow goes back.",[11,342,55],{"id":54},[16,344,345,348,349,353],{},[38,346,347],{},"Streaming payment over a flat fee."," The pricing model ",[350,351,352],"em",{},"is"," the product. It\naligns cost with work in a way no subscription does, and it makes the incentive\nhonest: we are not paid more for finding more, only for looking longer.",[16,355,356,359],{},[38,357,358],{},"Escrow with automatic refund."," Pre-funding is the only way to stream payments\nwithout a credit relationship, and it is only acceptable to users if the unused\nremainder comes back without anyone having to ask. That refund path is what makes\nthe pre-funding tolerable.",[16,361,362,365],{},[38,363,364],{},"Encrypted results."," An audit finding is an exploit until it is fixed. Anything\nless than encryption-at-delivery turns the platform into a directory of live\nvulnerabilities.",[16,367,368,371],{},[38,369,370],{},"Human verification in the loop."," An AI-only verdict is not something to stake\na deployment on. Requiring a verified human to sign off keeps the output\naccountable, at the cost of some throughput.",[11,373,77],{"id":76},[16,375,376],{},"The per-second billing granularity is finer than anyone needs, and it cost real\ncomplexity in the escrow accounting. Billing per completed check — a unit the\nuser can reason about — would give the same incentive alignment with far less\nmachinery, and a user could actually predict their bill before starting.",{"title":82,"searchDepth":83,"depth":83,"links":378},[379,380,381,382,383],{"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},{},4,"\u002Fprojects\u002Faudithor","AI agents audit your smart contracts and get paid by the second. Safe code takes less time to check, so it costs you less.","https:\u002F\u002Fgithub.com\u002FKronoScan\u002FAudiThor",{"title":305,"description":82},"https:\u002F\u002Fethglobal.com\u002Fshowcase\u002Faudithor-ntedc",[392,214,213,393,394,395,396],"Next.js","Hedera","Chainlink CRE","Uniswap API","World ID","projects\u002Faudithor",[221,300,399,214],"Security","nuTqIFeM89leHUov3xpwX-rYXCKKE32nqpqKuUlrQq8",{"id":402,"title":403,"body":404,"demo":90,"description":82,"extension":91,"featured":462,"meta":463,"navigation":92,"order":464,"path":465,"pitch":466,"repo":90,"seo":467,"showcase":90,"stack":468,"stem":474,"tags":475,"__hash__":479},"projects\u002Fprojects\u002Fair-plus.md","Air+ production dashboard",{"type":8,"value":405,"toc":455},[406,408,411,414,416,419,422,424,427,430,432,438,444,450,452],[11,407,14],{"id":13},[16,409,410],{},"A factory knows what it produced. It is much less certain about where the time\nwent. That information exists, but it is scattered across three systems that were\nnever designed to be read together: the ERP knows what was ordered, the MES knows\nwhat happened on the floor, and the PLM knows what the thing is supposed to be.",[16,412,413],{},"Nobody has the whole picture, so bottleneck arguments get settled by seniority\nrather than evidence.",[11,415,25],{"id":24},[16,417,418],{},"I reconstructed the plant's actual production workflow by joining its ERP, MES\nand PLM data into a single model of how work really moved — not the documented\nprocess, the real one — and built a dashboard that showed where it stalled.",[16,420,421],{},"The analysis identified the top five bottlenecks and quantified 8.5 hours of\ndelay, with a specific remedy proposed for each one.",[11,423,45],{"id":44},[16,425,426],{},"The work is mostly in the joins. Each system has its own idea of what a unit of\nwork is, and reconciling those identities is the hard part — once a single\nobject can be followed across all three, the time it spends waiting between\nstages becomes visible arithmetic.",[16,428,429],{},"From there the dashboard shows the process as a flow with its queues exposed, so\na bottleneck reads as an accumulation rather than as a number in a table.",[11,431,55],{"id":54},[16,433,434,437],{},[38,435,436],{},"Reconstructing the real process rather than modelling the documented one.","\nDocumented processes describe intent. The delay lives precisely in the gap\nbetween intent and practice, so modelling the documentation would have found\nnothing.",[16,439,440,443],{},[38,441,442],{},"Quantifying delay in hours, not percentages."," A percentage invites debate\nabout the denominator. \"8.5 hours\" is a number an operations manager can act on\nthis week.",[16,445,446,449],{},[38,447,448],{},"A remedy attached to every bottleneck."," An analysis that names problems\nwithout proposing fixes gets filed. Pairing each finding with a specific action\nis what turns it into a decision.",[11,451,77],{"id":76},[16,453,454],{},"I would validate the reconstructed workflow with a line operator before building\nanything on top of it. The data model was sound, but the people who do the work\nevery day would have spotted my wrong assumptions in minutes — and confirmed the\nright ones far faster than I could derive them.",{"title":82,"searchDepth":83,"depth":83,"links":456},[457,458,459,460,461],{"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},false,{},5,"\u002Fprojects\u002Fair-plus","Rebuilt a factory's real production workflow from its own systems, then showed exactly where the work was getting stuck.",{"title":403,"description":82},[469,470,471,472,473],"ERP data","MES data","PLM data","Data modelling","Dashboarding","projects\u002Fair-plus",[476,477,478],"Data","Manufacturing","Process Analysis","y4usZxvNLMY2Qy_3TkbFC3jSigqPOHXlYOyzVI3Vzew",{"id":481,"title":482,"body":483,"demo":90,"description":82,"extension":91,"featured":462,"meta":544,"navigation":92,"order":545,"path":546,"pitch":547,"repo":548,"seo":549,"showcase":90,"stack":550,"stem":555,"tags":556,"__hash__":559},"projects\u002Fprojects\u002Fzkpredict.md","zkPredict",{"type":8,"value":484,"toc":537},[485,487,490,493,495,498,501,504,506,509,512,514,520,526,532,534],[11,486,14],{"id":13},[16,488,489],{},"Prediction markets are one of the better mechanisms we have for aggregating what\npeople actually believe — and they are almost all completely public. Your\npositions are visible, your wallet is traceable, and every bet you place is\npermanently attributable to you.",[16,491,492],{},"That has a cost beyond privacy. If your position can be watched, it can be traded\nagainst and copied; and people with genuinely informative views are the ones most\nlikely to stay out.",[11,494,25],{"id":24},[16,496,497],{},"A prediction market where betting is private end to end. You can create a market,\nmint outcome tokens, place a bet, and claim your winnings without revealing which\nside you took — rewards are claimed by proving entitlement rather than by\npresenting an identity.",[16,499,500],{},"Built as a Leo program on Aleo with a React front end that handles wallet\nconnection, market creation, and the betting flow.",[16,502,503],{},"I built both the on-chain program and the interface.",[11,505,45],{"id":44},[16,507,508],{},"Market state that must be public — the question, the deadline, the pools, whether\nit is open — is public. Everything identifying is not. A bet produces a private\nrecord held by the bettor rather than an entry in a public ledger.",[16,510,511],{},"Claiming a reward is the interesting part: instead of showing who you are and\nlooking up what you are owed, you prove you hold a winning record and that it has\nnot already been spent. The chain verifies the proof without learning which\nrecord it was.",[11,513,55],{"id":54},[16,515,516,519],{},[38,517,518],{},"Privacy as the default, not a mode."," An optional privacy feature is worse than\nnone: the act of switching it on is itself a signal. Making every bet private\nmeans using the system reveals nothing.",[16,521,522,525],{},[38,523,524],{},"Leo and Aleo over a general-purpose chain."," Building this on a transparent\nchain means bolting on a mixer or a rollup and hoping the seams hold. A platform\nwhere private state is the native primitive makes the guarantee structural rather\nthan an add-on.",[16,527,528,531],{},[38,529,530],{},"A narrow feature set."," Market creation, betting, closing, claiming, refunds.\nNo order book, no secondary trading. The privacy guarantee is the product, and\nevery extra surface is another place to leak.",[11,533,77],{"id":76},[16,535,536],{},"I would design the resolution path first. Betting privately is the interesting\ncryptography, but a prediction market is only as trustworthy as its oracle, and\nwe solved the elegant problem before the load-bearing one. Resolution deserved\nthe first design conversation, not the last.",{"title":82,"searchDepth":83,"depth":83,"links":538},[539,540,541,542,543],{"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},{},6,"\u002Fprojects\u002Fzkpredict","An anonymous prediction market. Your bet stays yours — nobody can see what you backed, or that you backed anything.","https:\u002F\u002Fgithub.com\u002FalphabetaZK\u002Fprediction_market_leo",{"title":482,"description":82},[551,552,553,554,214],"Leo","Aleo","Zero-knowledge proofs","React","projects\u002Fzkpredict",[557,551,558,214],"Zero-Knowledge","Privacy","F-0gtuhNPVcv2d7eHmJWNIioiFdB--smqtgYzUHJPyk",1793108521135]