Search Bitcoin Channel Logs

Friday, January 20, 2017

#bitcoin channel featuring gmaxwell, fireduck, kai1, piqure, cluelessperson,

kai1 2017-01-20 08:45:39
fireduck: do you know a good way in bitcoinj to add elements to the bloom filter (which aren't pubkeys or pubkeyhashes)? it seems to me that the only clean way is addwatchedscripts()
gmaxwell 2017-01-20 08:51:06
kai1: you really shouldn't count on too much being able to filter arbritary blocks, the bloom stuff is easily dos attacked so quite a few nodes turn it off.
fireduck 2017-01-20 09:09:40
kai1: I've not messed with the wallet stuff in bitcoinj for quite a while. I never touched its bloom filters at all so I don't know.
fireduck 2017-01-20 09:09:58
From what I remember, it is best to add addresses before they get used otherwise you have to rescan those blocks.
kai1 2017-01-20 09:11:36
gmaxwell: turned off generally? how do spv clients handle this? what is you estimate, by percentage, how many turn it off?
kai1 2017-01-20 09:11:52
s/how many/how many nodes
gmaxwell 2017-01-20 09:12:26
http://luke.dashjr.org/programs/bitcoin/files/charts/services.html about 10% have it off.
kai1 2017-01-20 09:12:27
fireduck: not in my case, i need it only for new blocks
kai1 2017-01-20 09:12:45
ah ok, thank you
gmaxwell 2017-01-20 09:12:45
There really aren't that many p2p SPV clients actively in use, electrum is more common.
gmaxwell 2017-01-20 09:13:20
I expect that fewer will have it on in the future, esp since there are designs to satisify scanning for wallets that don't use it.. which may or may not be useful for what you're doing.
kai1 2017-01-20 09:21:14
gmaxwell: could you rephrase the last part (alternatively some other site to read), i'm afraid i did not understand the "designs to satisfy scanning for wallets.." part
gmaxwell 2017-01-20 09:23:19
the reason bloom filters were added was to allow lite wallets to scan for their own addresses using less bandwidth. But it turns out that they're not so good for that: they trash the user's privacy and they still result in a lot of bandwidth use.
gmaxwell 2017-01-20 09:23:30
So there are new schemes proposed that are better for those reasons.
kai1 2017-01-20 09:23:36
ah ok
gmaxwell 2017-01-20 09:23:39
But they might not be useful for what you're trying to do.
kai1 2017-01-20 09:23:53
thanks
gmaxwell 2017-01-20 09:23:58
When those new things are done and widly used, it may be the case that nodes stop supporting the old thing.
gmaxwell 2017-01-20 09:24:01
:) So thats all.
kai1 2017-01-20 09:24:15
very important to know, thank you
gmaxwell 2017-01-20 09:24:24
(which is why I recommend getting the proof from the remote party rather than trying to fetch it from the network yourself)
kai1 2017-01-20 09:25:17
i actually implemented a broadcastchannel by using the bloomfilter
kai1 2017-01-20 09:25:39
to get txs which aren't related to my own wallet
kai1 2017-01-20 09:25:50
that feature would be gone :D
kai1 2017-01-20 09:27:04
some pointers to read about those schemes/ideas/drafts?
gmaxwell 2017-01-20 09:28:48
"committed filters" on the bitcoin-dev list.
kai1 2017-01-20 09:36:34
thank you and bye everyone
cluelessperson 2017-01-20 09:40:17
gmaxwell, I made compressed keys the default. :)
cluelessperson 2017-01-20 09:40:18
https://github.com/cluelessperson/bitcoin_key_tools/blob/master/keys.py
piqure 2017-01-20 09:40:19
^^^ WARNING: any URL may lead directly or indirectly to COIN-STEALING MALWARE! ^^^
gmaxwell 2017-01-20 09:40:51
cluelessperson: cool