The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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)

Serialize the bloom filter to be used in CBitcoin::Bitcoin::deserialize_filter();

---++ add_raw($rawdata)

Just add data to put into the bloom filter.

---++ set_data($data)

Set data.

---++ nHashFuncs

---++ nTweak

---++ bloomfilter_calculate()

Serialize the bloom filter to be used in CBitcoin::Bitcoin::deserialize_filter();

---++ 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.

AUTHOR

Joel De Jesus, <dejesus.joel at e-flamingo.jp>

BUGS

LICENSE AND COPYRIGHT

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.