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 }