CBitcoin::Message
---+ Constructors
---++ new(\%options)
Need: * nHashFuncs (default is 1000?) * FalsePositiveRate (default is 0.001, which is 0.1%)
---+ Getters/Setters
---+ Subroutines
---++ add_outpoint($prevHash,$prevIndex)
Serialize the bloom filter to be used in CBitcoin::Bitcoin::deserialize_filter();
---++ add_script($serialized_script)
---++ add_raw($rawdata)
Just add data to put into the bloom filter.
---++ set_data($data)
Set data.
---++ nHashFuncs
---++ nTweak
---++ bloomfilter_calculate()
---++ tx_filter([tx from block])->\%$txhash
Once the bloom filter gets the likely candidates for transactions we want, we need to check which ones we actually intended to keep.
Input is the array of transactions from a deserialized block. The output is a hash mapping with name=$tx->{'hash'} and value=$tx.
If you want to calculate merkle hashes at some point, set $keep_txhashes=1.
Joel De Jesus, <dejesus.joel at e-flamingo.jp>
<dejesus.joel at e-flamingo.jp>
Copyright 2014 Joel De Jesus.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install CBitcoin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CBitcoin
CPAN shell
perl -MCPAN -e shell install CBitcoin
For more information on module installation, please visit the detailed CPAN module installation guide.