From 10fe403d6e7fcb7b4e079d8197dc0983a478c9e4 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Wed, 18 Feb 2026 13:21:26 -0800 Subject: [PATCH] authentication: fix dropped marshal errors --- authentication/private_key_signer.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/authentication/private_key_signer.go b/authentication/private_key_signer.go index 318a6b1..4577320 100644 --- a/authentication/private_key_signer.go +++ b/authentication/private_key_signer.go @@ -115,6 +115,9 @@ func (s *PrivateKeySigner) Sign(dateHeader string, isManta bool) (string, error) } signature := ECDSASignature{R: r, S: s} signed, err := asn1.Marshal(signature) + if err != nil { + return "", errors.Wrap(err, "unable to marshal signature") + } signedBase64 = base64.StdEncoding.EncodeToString(signed) } @@ -151,6 +154,9 @@ func (s *PrivateKeySigner) SignRaw(toSign string) (string, string, error) { } signature := ECDSASignature{R: r, S: s} signed, err := asn1.Marshal(signature) + if err != nil { + return "", "", errors.Wrap(err, "unable to marshal signature") + } signedBase64 = base64.StdEncoding.EncodeToString(signed) }