mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-20 02:09:04 +01:00
5cd3533e2b
In this commit, we move `btcutil` as well as its sub-module, the `psbt` package into the `btcd` repo itself.
31 lines
1.1 KiB
Markdown
31 lines
1.1 KiB
Markdown
bloom
|
|
=====
|
|
|
|
[![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/btcd/btcutil/bloom)
|
|
|
|
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.
|
|
|
|
## Installation and Updating
|
|
|
|
```bash
|
|
$ go get -u github.com/btcsuite/btcd/btcutil/bloom
|
|
```
|
|
|
|
## Examples
|
|
|
|
* [NewFilter Example](http://godoc.org/github.com/btcsuite/btcd/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](http://copyfree.org) ISC
|
|
License.
|