d39a255dbc
This commit modifies the NewMerkleBlock function to return the matched transaction indices instead of their hashes. This is being done because it is much easier for the caller to lookup the matched transactions from the original passed block based on their transaction index within the block versus their hashes. |
||
---|---|---|
.. | ||
cov_report.sh | ||
example_test.go | ||
filter.go | ||
filter_test.go | ||
merkleblock.go | ||
merkleblock_test.go | ||
murmurhash3.go | ||
murmurhash3_test.go | ||
README.md | ||
test_coverage.txt |
bloom
[] (https://travis-ci.org/btcsuite/btcutil)
Package bloom provides an API for dealing with bitcoin-specific bloom filters.
A comprehensive suite of tests is provided to ensure proper functionality. See
test_coverage.txt
for the gocov coverage report. Alternatively, if you are
running a POSIX OS, you can run the cov_report.sh
script for a real-time
report. Package coinset is licensed under the liberal ISC license.
Documentation
[] (http://godoc.org/github.com/btcsuite/btcutil/bloom)
Full go doc
style documentation for the project can be viewed online without
installing this package by using the GoDoc site here:
http://godoc.org/github.com/btcsuite/btcutil/bloom
You can also view the documentation locally once the package is installed with
the godoc
tool by running godoc -http=":6060"
and pointing your browser to
http://localhost:6060/pkg/github.com/btcsuite/btcutil/bloom
Installation
$ go get github.com/btcsuite/btcutil/bloom
Examples
- [NewFilter Example]
(http://godoc.org/github.com/btcsuite/btcutil/bloom#example-NewFilter)
Demonstrates how to create a new bloom filter, add a transaction hash to it, and check if the filter matches the transaction.
License
Package bloom is licensed under the copyfree ISC License.