Skip to content

Commit

Permalink
Use the correct key
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet committed Jan 26, 2021
1 parent 2421499 commit 4114408
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 @@ -75,7 +75,7 @@ func NewSecureChannelSession(card *pcsc.Card, keyData []byte) (*SecureChannelSes
return &SecureChannelSession{
card: card,
secret: secret.Bytes(),
publicKey: elliptic.Marshal(crypto.S256(), cardPublic.X, cardPublic.Y),
publicKey: elliptic.Marshal(crypto.S256(), key.PublicKey.X, key.PublicKey.Y),
}, nil
}

Expand Down

0 comments on commit 4114408

Please sign in to comment.