diff --git a/go.mod b/go.mod index 6911a9a..aab234e 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/bitcoin-sv/spv-wallet-go-client go 1.22.5 require ( - github.com/bitcoin-sv/go-sdk v1.1.9 + github.com/bitcoin-sv/go-sdk v1.1.16 github.com/bitcoin-sv/spv-wallet/models v1.0.0-beta.39 github.com/pquerna/otp v1.4.0 github.com/stretchr/testify v1.10.0 diff --git a/go.sum b/go.sum index 09d6349..178459a 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/bitcoin-sv/go-sdk v1.1.9 h1:N/LlZUMHNYKjEBuY72c3XSlzUI/q7IN34R0p6J0Qtjc= -github.com/bitcoin-sv/go-sdk v1.1.9/go.mod h1:NOAkJLbjqKOLuxJmb9ABG86ExTZp4HS8+iygiDIUps4= +github.com/bitcoin-sv/go-sdk v1.1.16 h1:n2X0RiENFGD/1fQ/1y6osbostRB7I/xq9I7tcIKcCPY= +github.com/bitcoin-sv/go-sdk v1.1.16/go.mod h1:3CsNdEDBwB+SIv6UBcJPC9bTvPqxQvg3GULt7wsuL58= github.com/bitcoin-sv/spv-wallet/models v1.0.0-beta.39 h1:qo74o72mcdj7AYJoCq7RG3enHJiqtbkFEY9uXvEEG2M= github.com/bitcoin-sv/spv-wallet/models v1.0.0-beta.39/go.mod h1:UdY5AGsO9IomUEYSPilcSY+3BTQRJswdfZNveLt6LZQ= github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc h1:biVzkmvwrH8WK8raXaxBx6fRVTlJILwEwQGL1I/ByEI= diff --git a/internal/auth/auth.go b/internal/auth/auth.go index 5aa288f..753cc92 100644 --- a/internal/auth/auth.go +++ b/internal/auth/auth.go @@ -95,7 +95,7 @@ func createSignatureAccessKey(privateKeyHex, bodyString string) (payload *models // Get the AccessKey payload = new(models.AuthPayload) - payload.AccessKey = hex.EncodeToString(publicKey.SerializeCompressed()) + payload.AccessKey = hex.EncodeToString(publicKey.Compressed()) // auth_nonce is a random unique string to seed the signing message // this can be checked server side to make sure the request is not being replayed diff --git a/internal/auth/authenitcators.go b/internal/auth/authenitcators.go index 0bf9de4..53e2f23 100644 --- a/internal/auth/authenitcators.go +++ b/internal/auth/authenitcators.go @@ -71,7 +71,7 @@ func (a *AccessKeyAuthenticator) privKeyHex() string { } func (a *AccessKeyAuthenticator) pubKeyHex() string { - return hex.EncodeToString(a.pub.SerializeCompressed()) + return hex.EncodeToString(a.pub.Compressed()) } func bodyString(r *resty.Request) string { diff --git a/internal/testutils/spvwallettest.go b/internal/testutils/spvwallettest.go index 2807050..fec7aba 100644 --- a/internal/testutils/spvwallettest.go +++ b/internal/testutils/spvwallettest.go @@ -78,7 +78,7 @@ func MockPKI(t *testing.T, xpub string) string { t.Fatalf("test helper - ec public key from xpub: %s", err) } - return hex.EncodeToString(pubKey.SerializeCompressed()) + return hex.EncodeToString(pubKey.Compressed()) } func ParseTime(t *testing.T, s string) time.Time {