From facbf3ebc4e5cb34fe783aeea56c71184ccdb30f Mon Sep 17 00:00:00 2001 From: mgosek-4chain Date: Wed, 8 Jan 2025 11:12:29 +0100 Subject: [PATCH] deps(SPV-1303): add missing files. --- internal/auth/auth.go | 2 +- internal/auth/authenitcators.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {