From 24214992f82133390c98536fecad1c3ac0d0dc51 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 25 Jan 2021 14:39:50 +0100 Subject: [PATCH] Update accounts/scwallet/securechannel.go Co-authored-by: Guillaume Ballet --- accounts/scwallet/securechannel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/scwallet/securechannel.go b/accounts/scwallet/securechannel.go index f37abe5025a5..d76b0d8b38f5 100644 --- a/accounts/scwallet/securechannel.go +++ b/accounts/scwallet/securechannel.go @@ -69,7 +69,7 @@ func NewSecureChannelSession(card *pcsc.Card, keyData []byte) (*SecureChannelSes } cardPublic, err := crypto.UnmarshalPubkey(keyData) if err != nil { - return nil, fmt.Errorf("could not unmarshal public key from card") + return nil, fmt.Errorf("could not unmarshal public key from card: %v", err) } secret, _ := key.Curve.ScalarMult(cardPublic.X, cardPublic.Y, key.D.Bytes()) return &SecureChannelSession{