ethereum/ethereumj

No verifies the signature against the Transacton?

quan420 opened this issue · 1 comments

I can't find any Verifies the ECDSA signature against the Transacton in ethereumj.
Should ECKey.verify be call in Transaction.validate or some other flows?

And in go-ethereum there are ecdsa signature validate of the transaction :
func (pool *TxPool) validateTx(tx *types.Transaction) (e error) {

from, err := types.Sender(pool.signer, tx)
if err != nil {
	e = ErrInvalidSender
	return
}

Isn't it a check that you're looking for?

if (!blockchainConfig.acceptTransactionSignature(tx)) {
execError("Transaction signature not accepted: " + tx.getSignature());
return;
}