LLFourn / bdk_core_staging

Staging area for bdk_core initial development
15 stars 12 forks source link

Fast indexing of UTXOs #127

Open LLFourn opened 1 year ago

LLFourn commented 1 year ago

Right now our APIs allow you to find unspent outputs by iterating over all outputs and checking if they're spent. This is fine for most applications but for users with hundreds of thousands of historical txos doing all this work just to get the balance is a bit much. How can we do better?

Things that I imagine would be useful:

LLFourn commented 1 year ago

Would be nice to allow marking utxos as spent in memory even if you haven't really spent them. See https://github.com/bitcoindevkit/bdk/issues/849 for motivation.