👕 Fixes crypto/ecdsa.PublicKey composite literal uses unkeyed fields
My linter never runs out of things to complain about :)
This commit is contained in:
parent
cb32e7ca13
commit
28de8475a5
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue