You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.
ArbOS has to pay the cost of a signature verification for every signed transaction. The transaction should be charged for the gas needed to do that. A simple way to do this would be to deduct the cost of an ecrecoverinstruction from the transaction's gas, when we first set up gas-charging for the transaction.
Also, before checking a transaction's signature, we should verify that it has requested enough gas to pay for its signature check. If it hasn't, we should fail the transaction before even checking the signature.
The text was updated successfully, but these errors were encountered:
The cost should be charged to the party responsible for submitting the signed message. This is because we don't want to do the signature check until we know it has been paid for, and we don't know who the signer is until we check the signature. So the submitter (typically the aggregator, but in case of a signed batch of messages it will be the batch signer) needs to get charged.
ArbOS has to pay the cost of a signature verification for every signed transaction. The transaction should be charged for the gas needed to do that. A simple way to do this would be to deduct the cost of an
ecrecover
instruction from the transaction's gas, when we first set up gas-charging for the transaction.Also, before checking a transaction's signature, we should verify that it has requested enough gas to pay for its signature check. If it hasn't, we should fail the transaction before even checking the signature.
The text was updated successfully, but these errors were encountered: