Skip to content

limits, gencerts, base58, bech32: switch to upstream btcd - #447

Merged
kcalvinalvin merged 3 commits into
utreexo:mainfrom
kcalvinalvin:2026-10-06-use-upstream-leaf-packages
Oct 8, 2026
Merged

kcalvinalvin merged 3 commits into
utreexo:mainfrom
kcalvinalvin:2026-10-06-use-upstream-leaf-packages

Conversation

@kcalvinalvin

@kcalvinalvin kcalvinalvin commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Import packages that match btcd's from upstream and delete the copies.

  • limits: identical to btcd v0.24.0, which is already a dependency.
  • cmd/gencerts: btcd's tool with only the btcutil import path changed. The configuration docs point at go install github.com/btcsuite/btcd/cmd/gencerts@latest.
  • btcutil/base58, btcutil/bech32: imported from btcd's address/v2 module. Upstream base58 returns an empty result for input containing characters above U+00FF instead of indexing past its alphabet table, and upstream bech32 exports DecodeNoLimitWithVersion.

Requiring address/v2 raises secp256k1/v4 to v4.4.0, x/crypto to v0.40.0, x/sys to v0.35.0, x/text to v0.27.0, and blake256 to v1.1.0.

Validation: go test -short -race ./... without the bdkwallet tag, golangci-lint run, CGO_ENABLED=0 builds for windows and darwin

The limits package is identical to btcd's. Import it from btcd, which
is already a dependency, and delete the copy.
gencerts is btcd's tool with only the btcutil import path changed.
Point the configuration docs at btcd's gencerts and delete the copy.
Import base58 and bech32 from btcd's address/v2 module and delete the
copies. Upstream base58 returns an empty result for input containing
characters above U+00FF instead of indexing past its alphabet table,
and upstream bech32 exports DecodeNoLimitWithVersion.

Requiring address/v2 raises secp256k1/v4 to v4.4.0, x/crypto to
v0.40.0, x/sys to v0.35.0, x/text to v0.27.0, and blake256 to v1.1.0.
@kcalvinalvin
kcalvinalvin force-pushed the 2026-10-06-use-upstream-leaf-packages branch from 1b17060 to 5a96ca0 Compare October 8, 2026 13:59
@kcalvinalvin kcalvinalvin changed the title multi: use upstream limits, gencerts, base58, and bech32 limits, gencerts, base58, bech32: switch to upstream btcd Oct 8, 2026
@kcalvinalvin
kcalvinalvin merged commit 6d38b6c into utreexo:main Oct 8, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant