Add EC signature validations before call to libsecp256k1

This commit is contained in:
Gustav Simonsson
2015-06-01 20:27:20 +02:00
parent 5b14fdb94b
commit 32e1b104f8
3 changed files with 29 additions and 22 deletions

View File

@ -112,12 +112,6 @@ func (pool *TxPool) ValidateTransaction(tx *types.Transaction) error {
return ErrInvalidSender
}
// Validate curve param
v, _, _ := tx.Curve()
if v > 28 || v < 27 {
return fmt.Errorf("tx.v != (28 || 27) => %v", v)
}
if !pool.currentState().HasAccount(from) {
return ErrNonExistentAccount
}