What heuristic should be followed to detect the coinjoins?
nostr:npub15n94rarp3n7dz6edx9cugeshn0kcuxtugwu9nzprkpx7yekw7ygqplqru4 It would be cool to see a general coinjoin panel to get an idea of the volume at a glance.
Discussion
Not sure. Mempool.space tags likely coinjoins somehow, but IDK how.
This is the relevant mempool code
https://github.com/mempool/mempool/blob/master/backend/src/api/common.ts#L523
The >=5 inputs and outputs heuristic might miss JoinMarket coinjoins, which I believe are intentionally designed to be harder to detect. Maybe a good starting point nonetheless.
When multiple UTXO’s are used as input and these do not share a single UTXO as origin for at least 3 hops back, then it’s a PayJoin or CoinJoin, maybe?