👕 Fixes crypto/ecdsa.PublicKey composite literal uses unkeyed fields

My linter never runs out of things to complain about :)
This commit is contained in:
Leon Johnson 2017-10-19 14:33:26 -04:00
parent cb32e7ca13
commit 28de8475a5
No known key found for this signature in database
GPG Key ID: 2E27487C38C80EBC
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ func (tx *Transaction) Verify(prevTXs map[string]Transaction) bool {
dataToVerify := fmt.Sprintf("%x\n", txCopy) 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 { if ecdsa.Verify(&rawPubKey, []byte(dataToVerify), &r, &s) == false {
return false return false
} }