2014-07-10 03:43:24 +02:00
|
|
|
bloom
|
|
|
|
=====
|
|
|
|
|
2015-01-16 04:35:16 +01:00
|
|
|
[![Build Status](https://travis-ci.org/btcsuite/btcutil.png?branch=master)]
|
|
|
|
(https://travis-ci.org/btcsuite/btcutil)
|
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
|
|
|
|
report. Package coinset is licensed under the liberal ISC license.
|
|
|
|
|
|
|
|
## Documentation
|
|
|
|
|
2015-01-16 04:35:16 +01:00
|
|
|
[![GoDoc](https://godoc.org/github.com/btcsuite/btcutil/bloom?status.png)]
|
|
|
|
(http://godoc.org/github.com/btcsuite/btcutil/bloom)
|
2014-07-10 03:43:24 +02:00
|
|
|
|
|
|
|
Full `go doc` style documentation for the project can be viewed online without
|
|
|
|
installing this package by using the GoDoc site here:
|
2015-01-16 04:35:16 +01:00
|
|
|
http://godoc.org/github.com/btcsuite/btcutil/bloom
|
2014-07-10 03:43:24 +02:00
|
|
|
|
|
|
|
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
|
2015-01-16 04:35:16 +01:00
|
|
|
http://localhost:6060/pkg/github.com/btcsuite/btcutil/bloom
|
2014-07-10 03:43:24 +02:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
```bash
|
2015-01-16 04:35:16 +01:00
|
|
|
$ go get 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.
|