m0wer

Zero-JS Hypermedia Browser

avatar
m0wer
m0wer@stacker.news
npub1w3va...4c5c
Bitcoiner.

Notes (20)

Advent of Code 2025 https://adventofcode.com/ Advent of Code is an Advent calendar of small programming puzzles for a variety of skill levels that can be solved in any programming language you like. People use them as interview prep, company training, university coursework, practice problems, a speed contest, or to challenge each other. https://stacker.news/items/1300109
2025-12-02 21:32:40 from 1 relay(s) View Thread →
Analyze JoinMarket Bitcoin CoinJoin transactions using ILP. https://github.com/m0wer/joinmarket_analyzer # JoinMarket Analyzer: Understanding CoinJoin Change Outputs I've released a tool called **joinmarket-analyzer** to match inputs and change outputs in JoinMarket transactions, identifying who the taker was. **Goal:** The purpose is **not to spread FUD**, but to raise awareness. It's crucial to understand that this analysis **only affects change outputs**. The equal-amount outputs—which provide the actual privacy in a CoinJoin—remain indistinguishable. The tool uses Integer Linear Programming (ILP) to match inputs with their respective changes and determine which participant is the likely "Taker" (the one initiating the transaction and paying fees) and which are the "Makers" (liquidity providers earning fees). ## Example Usage You can run it easily with Docker: ```bash docker run --rm ghcr.io/m0wer/joinmarket_analyzer:master \ 0cb4870cf2dfa3877851088c673d163ae3c20ebcd6505c0be964d8fbcc856bbf \ --max-fee-rel 0.001 --max-solutions 1 ``` ## Results The tool outputs the probable structure of the transaction: ``` ... Taker: Participant 4 (pays 21,368 sats) 💰 Participant 1 (maker) Inputs: [0] Outputs: Equal=6.3M sats, Change=113M sats Fee receives: 458 sats ... 🎯 Participant 4 (taker) Inputs: [4] Outputs: Equal=6.3M sats, No change output Fee pays: 21,368 sats ... ``` [View this transaction on mempool.space](https://mempool.space/tx/0cb4870cf2dfa3877851088c673d163ae3c20ebcd6505c0be964d8fbcc856bbf) ## Future Possibilities This tool lays the groundwork for more advanced privacy research: * **Entropy Evaluation:** Measure how "ambiguous" change outputs are. If multiple valid solutions exist, the Taker is harder to pinpoint. * **Algorithm Design:** Evaluate and improve taker algorithms to intentionally create ambiguous change structures. * **Market Stats:** Analyze historical CoinJoins to gather statistics on fee limits used by takers and earnings by makers. Check out the code and contribute: https://github.com/m0wer/joinmarket-analyzer https://stacker.news/items/1296366
2025-11-30 20:46:00 from 1 relay(s) View Thread →
polyarb: Polymarket arbitrage bot for overlapping markets https://github.com/m0wer/polyarb # Made Some Free Money During the 2024 Presidential Election (PolyArb) ⚠️ **SHITCOIN ALERT** ⚠️ This involves USDC on Polygon. You've been warned. So during the 2024 presidential election, I built this Python tool called [PolyArb](https://github.com/m0wer/polyarb) to find arbitrage opportunities on Polymarket. The basic idea: when you have overlapping prediction markets (like "Trump wins presidency" AND "Trump wins the presidency and the popular vote"), sometimes the prices get out of whack. The sum of the atomic outcomes should equal the price of the combined markets, but they don't always. When that happens, there's free money on the table. During the election, there was insane liquidity in these markets, and the tool would automatically scan for these mispriced combinations and execute trades to capture the spread. No directional betting, no predictions needed – just pure math arbitrage. It worked surprisingly well. The election created the perfect storm: high volume, multiple overlapping markets, and enough volatility to create regular mispricings. The repo has the full code, CLI tools for managing wallets and positions, and even a daemon mode to run it automatically. There's a whole breakdown of the election strategy in the README if you're curious how it worked. Anyway, thought some of you might find it interesting. Again, shitcoins involved, but the arbitrage logic is pretty fun. https://stacker.news/items/1294888
2025-11-28 10:48:24 from 1 relay(s) View Thread →