Merge pull request #5 from bigUNO/master
🤝 Fixes unkeyed composite literal
This commit is contained in:
commit
0557058641
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue