public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
* [Bitcoin-development] Combining bloom filters?
@ 2013-08-17 14:00 Jeff Garzik
  2013-08-17 14:03 ` bitcoin-list
  2013-08-17 14:15 ` Pieter Wuille
  0 siblings, 2 replies; 3+ messages in thread
From: Jeff Garzik @ 2013-08-17 14:00 UTC (permalink / raw)
  To: Mike Hearn; +Cc: Bitcoin Dev

Consider wallet A builds bloom filter A' and wallet B builds bloom
filter B'.  Can A' and B' be or'd together to form a single bloom
filter C' ?

-- 
Jeff Garzik
Senior Software Engineer and open source evangelist
BitPay, Inc.      https://bitpay.com/



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bitcoin-development] Combining bloom filters?
  2013-08-17 14:00 [Bitcoin-development] Combining bloom filters? Jeff Garzik
@ 2013-08-17 14:03 ` bitcoin-list
  2013-08-17 14:15 ` Pieter Wuille
  1 sibling, 0 replies; 3+ messages in thread
From: bitcoin-list @ 2013-08-17 14:03 UTC (permalink / raw)
  To: Jeff Garzik, Mike Hearn; +Cc: Bitcoin Dev

[-- Attachment #1: Type: text/plain, Size: 1085 bytes --]

Under some conditions, yes. The filters must have the same parameters (tweak, size, hash count). Bitcoinj implements this in its BloomFilter class.

Matt

Jeff Garzik <jgarzik@bitpay.com> wrote:
>Consider wallet A builds bloom filter A' and wallet B builds bloom
>filter B'.  Can A' and B' be or'd together to form a single bloom
>filter C' ?
>
>-- 
>Jeff Garzik
>Senior Software Engineer and open source evangelist
>BitPay, Inc.      https://bitpay.com/
>
>------------------------------------------------------------------------------
>Get 100% visibility into Java/.NET code with AppDynamics Lite!
>It's a free troubleshooting tool designed for production.
>Get down to code-level detail for bottlenecks, with <2% overhead. 
>Download for free and get started troubleshooting in minutes. 
>http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>_______________________________________________
>Bitcoin-development mailing list
>Bitcoin-development@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/bitcoin-development

[-- Attachment #2: Type: text/html, Size: 616 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bitcoin-development] Combining bloom filters?
  2013-08-17 14:00 [Bitcoin-development] Combining bloom filters? Jeff Garzik
  2013-08-17 14:03 ` bitcoin-list
@ 2013-08-17 14:15 ` Pieter Wuille
  1 sibling, 0 replies; 3+ messages in thread
From: Pieter Wuille @ 2013-08-17 14:15 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Bitcoin Dev

[-- Attachment #1: Type: text/plain, Size: 1155 bytes --]

If both constructed bloom filters use the same seed and the same number of
hash functions, yes. Assuming the input filters were optimal for a given FP
rate, the resulting filter will be worse.

-- 
Pieter
 On 17 Aug 2013 16:01, "Jeff Garzik" <jgarzik@bitpay.com> wrote:

> Consider wallet A builds bloom filter A' and wallet B builds bloom
> filter B'.  Can A' and B' be or'd together to form a single bloom
> filter C' ?
>
> --
> Jeff Garzik
> Senior Software Engineer and open source evangelist
> BitPay, Inc.      https://bitpay.com/
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> Bitcoin-development mailing list
> Bitcoin-development@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bitcoin-development
>

[-- Attachment #2: Type: text/html, Size: 1835 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-17 14:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-17 14:00 [Bitcoin-development] Combining bloom filters? Jeff Garzik
2013-08-17 14:03 ` bitcoin-list
2013-08-17 14:15 ` Pieter Wuille

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox