What is Nostr?
optout
npub1kxg…lecx
2024-10-25 13:09:51

optout on Nostr: After playing around with #kyoto-cbf, I dug up some questions to a few old questions ...

After playing around with #kyoto-cbf, I dug up some questions to a few old questions

If I want to check the balances of some new addresses(*), do we need to re-fetch block filters again?
- Yes, simply because the filters are not stored.

Is a retrieved filter specific to the addresses I'm interested in?
- Of course not. That would defy the privacy benefits, as you would have to provide your addresses to an external party. The only input to a filter retrieve is only the block hash.

Why are filters not stored?
- Simply to save space, in most cases they are not needed again.

How big is a block filter?
- According to a doc I found, typically between 2-6 kB.

Note: if during scan we find new used addresses, and we generate extra addresses due to the gap limit, the extra addresses can be added without needing to rescan. Provided we assume the new addresses would be used in subsequent blocks only.

#icepeek
Just found `kyoto`, a light bitcoin node library (compact block filter) in rust, similar to `nakamoto` but fresher.
May be exactly what I need for my icepeek watch-only-wallet project 🙂

https://github.com/rustaceanrob/kyoto
Author Public Key
npub1kxgpwh80gp79j0chc925srk6rghw0akggduwau8fwdflslh9jvqqd3lecx