Skip to content

Commit

Permalink
deps(SPV-1303): add missing files.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgosek-4chain committed Jan 8, 2025
1 parent d769318 commit facbf3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit facbf3e

Please sign in to comment.