The btcd package is a 3rd party dependency meant to be used only within pkg/bitcoin package which isolates it from the client code. However, pkg/maintainer/spv depends on btcd directly which makes it leak beyond pkg/bitcoin. We should fix that and ensure btcd is not used directly by any other package except pkg/bitcoin.
The
btcdpackage is a 3rd party dependency meant to be used only withinpkg/bitcoinpackage which isolates it from the client code. However,pkg/maintainer/spvdepends onbtcddirectly which makes it leak beyondpkg/bitcoin. We should fix that and ensurebtcdis not used directly by any other package exceptpkg/bitcoin.