dcrd/dcrutil
Ryan Staudt 2d7af6b635 multi: Use dcrutil Tx in NewTxDeepTxIns.
This updates dcrutil.NewTxDeepTxIns to take a dcrutil.Tx as a parameter
rather than a wire.MsgTx, which allows for the tree and index set on the
input dcrutil.Tx to be copied to the new dcrutil.Tx.

This is less error prone for callers since the existing implementation
is often used to replace an existing dcrutil.Tx with the deep copy that
this function creates, but a side effect that is easy to miss is that
the new dcrutil.Tx would have reset the tree and index fields which
can lead to unintended behavior.
2021-11-15 20:20:14 -06:00
..
txsort multi: Don't use deprecated ioutil package. 2021-09-01 06:09:37 -05:00
amount_test.go dcrutil: Consolidate tests into package. 2019-03-16 20:41:23 -05:00
amount.go multi: replace godoc.org with pkg.go.dev 2020-02-18 19:35:19 -06:00
appdata_test.go dcrutil: Consolidate tests into package. 2019-03-16 20:41:23 -05:00
appdata.go travis: add gosimple linter 2017-11-20 18:49:55 -06:00
bitflags.go Import dcrutil repo under dcrutil directory. 2017-10-11 21:29:08 -04:00
block_test.go dcrutil: use errors api; require go 1.13+ 2020-04-04 06:59:54 -05:00
block.go dcrutil: Block does not cache the header bytes 2019-01-18 16:37:30 -06:00
const.go Import dcrutil repo under dcrutil directory. 2017-10-11 21:29:08 -04:00
doc.go dcrutil: Make docs example testable and correct it. 2019-06-19 12:09:10 -05:00
example_test.go dcrutil: Remove all code related to Address. 2021-04-15 16:58:35 -05:00
go.mod multi: Don't use deprecated ioutil package. 2021-09-01 06:09:37 -05:00
go.sum dcrutil: Convert to use new stdaddr package. 2021-04-15 16:58:25 -05:00
hash160.go multi: Use crypto/ripemd160 module. 2019-10-08 10:21:03 -05:00
README.md multi: Update README.md files for go modules. 2021-01-22 14:39:23 -06:00
tx_test.go multi: Use dcrutil Tx in NewTxDeepTxIns. 2021-11-15 20:20:14 -06:00
tx.go multi: Use dcrutil Tx in NewTxDeepTxIns. 2021-11-15 20:20:14 -06:00
util_test.go dcrutil: Move address params iface and mock impls. 2021-04-15 16:51:52 -05:00
util.go dcrutil: Convert to use new stdaddr package. 2021-04-15 16:58:25 -05:00
wif_test.go dcrutil: Use intended method names. 2020-02-14 19:32:18 -06:00
wif.go dcrutil: Remove all code related to Address. 2021-04-15 16:58:35 -05:00

dcrutil

Build Status ISC License Doc

Package dcrutil provides decred-specific convenience functions and types. A comprehensive suite of tests is provided to ensure proper functionality.

This package was developed for dcrd, a full-node implementation of Decred which is under active development by Company 0. Although it was primarily written for dcrd, 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

This package is part of the github.com/decred/dcrd/dcrutil/v3 module. Use the standard go tooling for working with modules to incorporate it.

License

Package dcrutil is licensed under the copyfree ISC License.