eth not use VerifySignature to ensure signature,but use recovecompact func, does it means that signature is right if recoverPlain succeeds,

// Validate the transaction sender and it's sig. Throw
// if the from fields is invalid.
if from, err = types.Sender(pool.signer, tx); err != nil {
    return core.ErrInvalidSender

func (fs FrontierSigner) Sender(tx *Transaction) (common.Address, error) {
   return recoverPlain(fs.Hash(tx), tx.data.R, tx.data.S, tx.data.V, false)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.