diff --git a/address.go b/address.go index 76a76de..92e6034 100644 --- a/address.go +++ b/address.go @@ -2,8 +2,8 @@ package bchutil import ( "errors" + "github.com/btcsuite/btcd/btcutil" "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcutil" ) func PayToAddrScript(addr btcutil.Address) ([]byte, error) { diff --git a/bitpayaddr.go b/bitpayaddr.go index fdaf45a..7be348c 100644 --- a/bitpayaddr.go +++ b/bitpayaddr.go @@ -8,9 +8,9 @@ import ( "errors" "fmt" + "github.com/btcsuite/btcd/btcutil" + "github.com/btcsuite/btcd/btcutil/base58" "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcutil" - "github.com/btcsuite/btcutil/base58" "golang.org/x/crypto/ripemd160" ) diff --git a/bitpayaddr_test.go b/bitpayaddr_test.go index 18bbdd8..b599cc9 100644 --- a/bitpayaddr_test.go +++ b/bitpayaddr_test.go @@ -2,8 +2,8 @@ package bchutil import ( "bytes" + "github.com/btcsuite/btcd/btcutil" "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcutil" "testing" ) diff --git a/cashaddr.go b/cashaddr.go index 536e087..f8a003b 100644 --- a/cashaddr.go +++ b/cashaddr.go @@ -3,9 +3,9 @@ package bchutil import ( "errors" "fmt" + "github.com/btcsuite/btcd/btcutil" "github.com/btcsuite/btcd/chaincfg" "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcutil" "golang.org/x/crypto/ripemd160" ) diff --git a/cashaddr_test.go b/cashaddr_test.go index ed96912..0469c42 100644 --- a/cashaddr_test.go +++ b/cashaddr_test.go @@ -1,8 +1,8 @@ package bchutil import ( + "github.com/btcsuite/btcd/btcutil" "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcutil" "testing" ) diff --git a/sign.go b/sign.go index b91753f..3a1dd56 100644 --- a/sign.go +++ b/sign.go @@ -5,12 +5,12 @@ import ( "encoding/binary" "errors" "fmt" - "github.com/btcsuite/btcd/btcec" + "github.com/btcsuite/btcd/btcec/v2" + "github.com/btcsuite/btcd/btcutil" "github.com/btcsuite/btcd/chaincfg" "github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/btcsuite/btcd/txscript" "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil" ) const ( diff --git a/sign_test.go b/sign_test.go index b7c16e6..c0f71e0 100644 --- a/sign_test.go +++ b/sign_test.go @@ -3,11 +3,11 @@ package bchutil import ( "bytes" "encoding/hex" - "github.com/btcsuite/btcd/btcec" + "github.com/btcsuite/btcd/btcec/v2" + "github.com/btcsuite/btcd/btcutil" "github.com/btcsuite/btcd/chaincfg" "github.com/btcsuite/btcd/txscript" "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcutil" "testing" )