package
0.0.23
Repository: https://github.com/cybriq/p9.git
Documentation: pkg.go.dev

# README

btcutil

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 pod, an alternative full-node implementation of bitcoin which is under active development by Conformal. Although it was primarily written for pod, 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/cybriq/p9/btcutil

License

Package btcutil is licensed under the copyfree ISC License.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
Package hdkeychain provides an API for bitcoin hierarchical deterministic extended keys (BIP0032).
Package helpers provides convenience functions to simplify wallet code.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package treap implements a treap data structure that is used to hold ordered key/value pairs using a combination of binary search tree and heap semantics.
Package zero contains functions to clear data from byte slices and multi-precision integers.

# Functions

DecodeWIF creates a new WIF structure by decoding the string encoding of the import format.
No description provided by the author
GetSecondsAhead returns the difference in time, of the second ahead of the first.
NewTLSCertPair returns a new PEM-encoded x.509 certificate pair based on a 521-bit ECDSA private key.
NewTx returns a new instance of a bitcoin transaction given an underlying wire.MsgTx.
NewTxFromBytes returns a new instance of a bitcoin transaction given the serialized bytes.
NewTxFromReader returns a new instance of a bitcoin transaction given a Reader to deserialize the transaction.
NewWIF creates a new WIF structure to export an address and its private key as a string encoded in the Wallet Import Format.

# Constants

TxIndexUnknown is the value returned for a transaction index that is unknown.

# Variables

No description provided by the author
No description provided by the author
ErrMalformedPrivateKey describes an error where a WIF-encoded private key cannot be decoded due to being improperly formatted.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Tx defines a bitcoin transaction that provides easier and more efficient manipulation of raw transactions.
WIF contains the individual components described by the Wallet Import Format (WIF).