lib/reth/account.rb
def sign_tx(tx)
      if privkey
        logger.info "signing tx", tx: tx, account: self
        tx.sign privkey
      else
        raise ValueError, "Locked account cannot sign tx"
      end
    end
##
# Sign a Transaction with the private key of this account.
#
# If the account is unlocked, this is equivalent to
# `tx.sign(account.privkey)`.
#
# @param tx [Transaction] the transaction to sign
# @raise [ValueError] if the account is locked
#
Sign a Transaction with the private key of this account.
If the account is unlocked, this is equivalent to
`tx.sign(account.privkey)`.
Sign a Transaction with the private key of this account . If the account is unlocked this is equivalent to ` tx . sign ( account . privkey ) ` .
def sign_tx(tx)
      if privkey
        logger.info "signing tx", tx: tx, account: self
        tx.sign privkey
      else
        raise ValueError, "Locked account cannot sign tx"
      end
    end
def sign_tx ( tx ) if privkey logger . info "signing tx" , tx : tx , account : self tx . sign privkey else raise ValueError , "Locked account cannot sign tx" end end
Sign a Transaction with the private key of this account.
Sign a Transaction with the private key of this account .
[ValueError] if the account is locked
[ ValueError ] if the account is locked
tx
the transaction to sign
the transaction to sign