Skip to content

Commit

Permalink
Update accounts/scwallet/securechannel.go
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume Ballet <gballet@gmail.com>
  • Loading branch information
fjl and gballet committed Jan 26, 2021
1 parent c52c98e commit 2421499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accounts/scwallet/securechannel.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 2421499

Please sign in to comment.