2014-07-10 03:43:24 +02:00
|
|
|
bloom
|
|
|
|
=====
|
|
|
|
|
2015-10-24 00:10:35 +02:00
|
|
|
[![Build Status](http://img.shields.io/travis/btcsuite/btcutil.svg)]
|
|
|
|
(https://travis-ci.org/btcsuite/btcutil) [![ISC License]
|
|
|
|
(http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)
|
|
|
|
[![GoDoc](http://img.shields.io/badge/godoc-reference-blue.svg)]
|
|
|
|
(http://godoc.org/github.com/btcsuite/btcutil/bloom)
|
2014-07-10 03:47:04 +02:00
|
|
|
|
2014-07-10 03:43:24 +02:00
|
|
|
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
|
2015-10-24 00:10:35 +02:00
|
|
|
report.
|
2014-07-10 03:43:24 +02:00
|
|
|
|
2015-10-24 00:10:35 +02:00
|
|
|
## Installation and Updating
|
2014-07-10 03:43:24 +02:00
|
|
|
|
|
|
|
```bash
|
2015-10-24 00:10:35 +02:00
|
|
|
$ go get -u github.com/btcsuite/btcutil/bloom
|
2014-07-10 03:43:24 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
* [NewFilter Example]
|
2015-01-16 04:35:16 +01:00
|
|
|
(http://godoc.org/github.com/btcsuite/btcutil/bloom#example-NewFilter)
|
2014-07-10 03:43:24 +02:00
|
|
|
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](http://copyfree.org) ISC
|
|
|
|
License.
|