dcrd/dcrutil
Dave Collins 2e8abf6bf3
dcrutil: Limit WIF decode to max possible size.
This modifies DecodeWIF to reject any attempts to decode strings that
are larger than the max possible size early since there is no reason to
waste time and memory doing the base 58 decode when it is guaranteed to
be invalid anyway.

It also adds an associated test to ensure proper functionality.
2022-01-01 03:09:16 -06:00
..
txsort dcrutil: Prepare v4.0.0. 2021-11-19 11:54:59 -06: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 dcrutil: Prepare v4.0.0. 2021-11-19 11:54:59 -06:00
go.sum dcrutil: Prepare v4.0.0. 2021-11-19 11:54:59 -06: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 dcrutil: Prepare v4.0.0. 2021-11-19 11:54:59 -06:00
tx.go dcrutil: Prepare v4.0.0. 2021-11-19 11:54:59 -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: Limit WIF decode to max possible size. 2022-01-01 03:09:16 -06:00
wif.go dcrutil: Limit WIF decode to max possible size. 2022-01-01 03:09:16 -06: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.