Skip to content

Commit

Permalink
👕 Fixes crypto/ecdsa.PublicKey composite literal uses unkeyed fields
Browse files Browse the repository at this point in the history
My linter never runs out of things to complain about :)
  • Loading branch information
bigUNO committed Oct 19, 2017
1 parent cb32e7c commit 28de847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (tx *Transaction) Verify(prevTXs map[string]Transaction) bool {

dataToVerify := fmt.Sprintf("%x\n", txCopy)

rawPubKey := ecdsa.PublicKey{curve, &x, &y}
rawPubKey := ecdsa.PublicKey{Curve: curve, X: &x, Y: &y}
if ecdsa.Verify(&rawPubKey, []byte(dataToVerify), &r, &s) == false {
return false
}
Expand Down

0 comments on commit 28de847

Please sign in to comment.