Closed Shachindra closed 2 years ago
@Shachindra Did you update your locally installed package? Try running go get -u github.com/btcsuite/btcutil
again
Yes @ashfame . I did it using go version go1.15.7 windows/amd64
. So far this is what I found:
go.mod
fileNevertheless, Maybe there is some issue in my go modules which is fetching the files from the older version of the package. I wanted to verify whether the error gets fixed if there is a new release. I (temporarily) fixed the error by copying the entire hdkeychain directory from here locally into my repo. This seems to have fixed the error but I'll have to manually check for updates into the btcutil/hdkeychain/ repo.
I can always fork the repo and refer to that as a last resort.
Agreed, a version bump would be helpful. The latest version isn't compatible with the latest PSBT format from Electrum and Specter. The parsing only worked when I fetched the latest commit.
One more vote for a release.
Please release a new version :pray:
A new v2
module exists in the new home for this repo (btcd/btcutil
).
Using this package in my code gives this error:
masterKey.Derive undefined (type *hdkeychain.ExtendedKey has no field or method Derive)
Seems like go modules refer to https://pkg.go.dev/github.com/btcsuite/btcutil -> github.com/btcsuite/btcutil v1.0.2 which don't include the commits after Apr 14, 2020. Looks like I need to refer to the commit: - hdkeychain: correct BIP-32 derivation issue on Oct 21, 2020 for my code to work properly.
Any help on this matter would be appreciated.