Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps(SPV-1303): bump go sdk version, update method calls. #312

Merged
merged 2 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading