Provides bitcoin-specific convenience functions and types
Clone or download
Roasbeef gcs/builder: remove the AddScript method as it's no longer used (#121)
In this commit, we remoec the AddScript method as it's no longer used,
and AddEntry should be used in place for adding pkScripts to the
filters.
Latest commit ab6388e Jul 7, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
base58 multi: Update markdown files for GFM changes. May 25, 2017
bech32 bech32: Add bech32 encoding package. Jul 26, 2017
bloom bloom: update due to latest wire updates May 15, 2018
coinset multi: Update markdown files for GFM changes. May 25, 2017
gcs gcs/builder: remove the AddScript method as it's no longer used (#121) Jul 6, 2018
hdkeychain hdkeychain: update test case error string due to btcec changes Jul 6, 2018
txsort multi: Update markdown files for GFM changes. May 25, 2017
.gitignore Initial commit. May 28, 2013
.travis.yml build: use go 1.9.4 and 1.10 for travis builds May 15, 2018
LICENSE gcs: add package for building and using Golomb-coded set filters May 16, 2018
README.md multi: Update markdown files for GFM changes. May 25, 2017
address.go bech32 encoded segwit addresses. Jul 26, 2017
address_test.go bech32 encoded segwit addresses. Jul 26, 2017
amount.go Update docs for NewAmount Aug 12, 2015
amount_test.go Fix tiny typo Jul 20, 2015
appdata.go build: Add gosimple linter to goclean.sh Jan 11, 2017
appdata_test.go Relicense to the btcsuite developers. May 1, 2015
block.go add new BytesNoWitness method to Block Jul 26, 2017
block_test.go Update for recent chainhash-related API changes. (#78) Aug 8, 2016
certgen.go Add Common Name to certificate. Jun 15, 2015
certgen_test.go Add Common Name to certificate. Jun 15, 2015
const.go Relicense to the btcsuite developers. May 1, 2015
cov_report.sh Initial implementation. May 28, 2013
doc.go Relicense to the btcsuite developers. May 1, 2015
example_test.go Add testable example for UnitConversions Jul 22, 2015
goclean.sh build: Add gosimple linter to goclean.sh Jan 11, 2017
hash160.go Switch to upstream golang.org/x/crypto May 9, 2017
internal_test.go bech32 encoded segwit addresses. Jul 26, 2017
net.go Relicense to the btcsuite developers. May 1, 2015
net_noop.go Relicense to the btcsuite developers. May 1, 2015
test_coverage.txt Add PEM encode error checking Dec 13, 2014
tx.go add cached version of HasWitness Jul 26, 2017
tx_test.go Update for recent chainhash-related API changes. (#78) Aug 8, 2016
wif.go Update for recent chainhash-related API changes. (#78) Aug 8, 2016
wif_test.go Relicense to the btcsuite developers. May 1, 2015

README.md

btcutil

Build Status Coverage Status ISC License GoDoc

Package btcutil provides bitcoin-specific convenience functions and types. 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.

This package was developed for btcd, an alternative full-node implementation of bitcoin which is under active development by Conformal. Although it was primarily written for btcd, this package has intentionally been designed so it can be used as a standalone package for any projects needing the functionality provided.

Installation and Updating

$ go get -u github.com/btcsuite/btcutil

GPG Verification Key

All official release tags are signed by Conformal so users can ensure the code has not been tampered with and is coming from the btcsuite developers. To verify the signature perform the following:

  • Download the public key from the Conformal website at https://opensource.conformal.com/GIT-GPG-KEY-conformal.txt

  • Import the public key into your GPG keyring:

    gpg --import GIT-GPG-KEY-conformal.txt
  • Verify the release tag with the following command where TAG_NAME is a placeholder for the specific tag:

    git tag -v TAG_NAME

License

Package btcutil is licensed under the copyfree ISC License.