Skip to content

Commit

Permalink
deps(SPV-1303): bump go sdk version, update method calls. (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgosek-4chain authored Jan 8, 2025
1 parent c48b7ef commit cf2264d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion internal/auth/authenitcators.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion internal/testutils/spvwallettest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cf2264d

Please sign in to comment.