diff --git a/examples/go.mod b/examples/go.mod index 3f670b6..c82c43c 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -10,7 +10,7 @@ require ( ) require ( - github.com/bitcoin-sv/go-sdk v1.1.9 // indirect + github.com/bitcoin-sv/go-sdk v1.1.14 // indirect github.com/boombuler/barcode v1.0.2 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pquerna/otp v1.4.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index 53a449e..1e5fc01 100644 --- a/examples/go.sum +++ b/examples/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.14 h1:65PrWc8H5in138fplswpxpXuV3HwQQgyXDBegioyVbY= +github.com/bitcoin-sv/go-sdk v1.1.14/go.mod h1:khREs6RkJuYkxFD3ZB9I+zcGjfxoHeACg9Zr3f7Fn7s= github.com/bitcoin-sv/spv-wallet/models v1.0.0-beta.31 h1:Y7JZ1oxjQnINGuDxK7VMOQiTCCuEm3BXC/SLhpaZoPs= github.com/bitcoin-sv/spv-wallet/models v1.0.0-beta.31/go.mod h1:PEJdH9ZWKOiKHyOZkzYsRbKuZjzlRaEJy3GsM75Icdo= github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= diff --git a/go.mod b/go.mod index d565b59..be7b537 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.14 github.com/bitcoin-sv/spv-wallet/models v1.0.0-beta.31 github.com/pquerna/otp v1.4.0 github.com/stretchr/testify v1.9.0 diff --git a/go.sum b/go.sum index 19d6f61..b637d3e 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +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/spv-wallet/models v1.0.0-beta.30 h1:ISfi6nkJ+hHGexkI89bAUjT44SPWNW82qE6QKa90bIs= -github.com/bitcoin-sv/spv-wallet/models v1.0.0-beta.30/go.mod h1:PEJdH9ZWKOiKHyOZkzYsRbKuZjzlRaEJy3GsM75Icdo= +github.com/bitcoin-sv/go-sdk v1.1.14 h1:65PrWc8H5in138fplswpxpXuV3HwQQgyXDBegioyVbY= +github.com/bitcoin-sv/go-sdk v1.1.14/go.mod h1:khREs6RkJuYkxFD3ZB9I+zcGjfxoHeACg9Zr3f7Fn7s= github.com/bitcoin-sv/spv-wallet/models v1.0.0-beta.31 h1:Y7JZ1oxjQnINGuDxK7VMOQiTCCuEm3BXC/SLhpaZoPs= github.com/bitcoin-sv/spv-wallet/models v1.0.0-beta.31/go.mod h1:PEJdH9ZWKOiKHyOZkzYsRbKuZjzlRaEJy3GsM75Icdo= github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= diff --git a/http.go b/http.go index a896026..29c8c1a 100644 --- a/http.go +++ b/http.go @@ -487,7 +487,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/totp_test.go b/totp_test.go index d2c3e24..f63bb80 100644 --- a/totp_test.go +++ b/totp_test.go @@ -129,5 +129,5 @@ func makeMockPKI(xpub string) string { panic(err) } - return hex.EncodeToString(pubKey.SerializeCompressed()) + return hex.EncodeToString(pubKey.Compressed()) }