btcsuite / btcutil

Provides bitcoin-specific convenience functions and types
480 stars 410 forks source link

Requesting New Release (v1.0.2 seems outdated) #193

Closed Shachindra closed 2 years ago

Shachindra commented 3 years ago

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.

ashfame commented 3 years ago

@Shachindra Did you update your locally installed package? Try running go get -u github.com/btcsuite/btcutil again

Shachindra commented 3 years ago

Yes @ashfame . I did it using go version go1.15.7 windows/amd64 . So far this is what I found:

  1. Error:

1 Derive

  1. Running go get -u github.com/btcsuite/btcutil

2 GoGet

  1. My go.mod file

3 GoMod

  1. Clicking on the link points to https://pkg.go.dev/github.com/btcsuite/btcutil@v1.0.2 where the directory hdkeychain doesn't have function named 'Derive'.

Nevertheless, 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.

joshmh commented 3 years ago

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.

nkuba commented 3 years ago

One more vote for a release.

benma commented 2 years ago

Please release a new version :pray:

Roasbeef commented 2 years ago

A new v2 module exists in the new home for this repo (btcd/btcutil).