zkSNACKs / WasabiStats

https://stats.wasabiwallet.io
MIT License
4 stars 1 forks source link

Stats 2.0 #21

Open Kruwed opened 8 months ago

Kruwed commented 8 months ago

Stats 2.0 project

Volume: Fresh input volume Payment change remixes Private coin remixes Total volume Total mining fees paid Total block space consumed

Onchain Data: Unspent capacity Number of coinjoin transactions Avg number of coinjoin inputs per coinjoin Avg number of coinjoin outputs per coinjoin Net UTXOs created/consolidated (total amount and ratio) Mining fee rate (sats/vbyte) Block space consumed (% of total available)

Privacy: Average input anon score Average output anon score Total anon score gain Remix ratio (volume) Remix ratio (input count) Remix spread (number of ancestor rounds) “Postmix consolidation”?... (I think I know what this means but I’m not entirely sure) “Never mixed”?... (I don’t really know how this stat works)

Stability: Coordination success rate (new/blame/illiquid) Time until confirmed Overpaid %

Kruwed commented 3 weeks ago

Total anon score gain

Elaborating on this. Basically, the idea is to account for the total quality of the coinjoin by squaring the anon set outputs and adding these all together. Here's an example using the latest coinjoin: https://mempool.space/tx/71f2425e2e800f7c5042bcdb935d6c851dac5ab1fb48d5a6d97743a2427b6cb3

2x outputs for 2.0 BTC 4x outputs for 1.34217728 BTC 18x outputs for 0.67108864 BTC 12x outputs for 0.43046721 BTC etc..

So for these numbers above, we square them to get the transaction's total anon set gain:

2 2 = 4 4 4 = 16 18 18 = 324 12 12 = 144

4 + 16 + 324 + 144 = 488 Total Anon Set Gain

You can derive another unit from this by using the values of each denomination as a weight:

2 2 2 = 8 4 4 1.34217728 = 21.47483648 18 18 0.67108864 = 217.43271936 12 12 0.43046721 = 61.98727824

8 + 21.47483648 + 217.43271936 + 61.98727824 = 308.89483408 Total Anon Set BTC