From 28de8475a5e0eee5230a72beb773b67db26bf2c0 Mon Sep 17 00:00:00 2001 From: Leon Johnson Date: Thu, 19 Oct 2017 14:33:26 -0400 Subject: [PATCH] :shirt: Fixes crypto/ecdsa.PublicKey composite literal uses unkeyed fields My linter never runs out of things to complain about :) --- transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transaction.go b/transaction.go index f2031d3..107f015 100644 --- a/transaction.go +++ b/transaction.go @@ -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 }