EIP-8130: Account Abstraction by Account Configurations

We’ve updated to move it to txn type 0x79 and 0x7a for payer magic byte!

Excellent, this will spare us quite some confusion! Thanks!

1 Like

Can an EIP-8130 account authorize an actor with permission to originate transactions on behalf of the account, while withholding administrative permissions such as adding/removing actors?

Specifically, can an EOA be authorized to “remote control” an 8130 smart account (i.e. make tx.origin == the smart account) without that EOA also having the ability to modify the smart account’s authorization configuration?

Yes, so the scope system in 8130 is what allows this.

0x00 = admin (all actions including adding / removing actors)

If the account is not admin, it uses bit flags that are currently:
SENDER - send actions from the account (which is what you are asking)
POLICY - restricted sender to only the actor’s policy contract / manager
SELF_PAY - can pay for gas for its transactions
SPONSOR_PAY - can pay gas for other accoun’ts transactions
NONCE - can use the ordered nonce space (including nonce 0 (standard protocol nonce), otherwise must use nonce-free)

So in your case, if you wanted everything but the ability to change owners it would just be
SCOPE = SENDER | SELF_PAY | NONCE (optionally SPONSOR_PAY if you wanted to)

I’d like to float a potential amendment to 8130:

Would it make sense to support a wildcard or public POLICY actor?

The account would configure a policy manager but no actor allowlist. Any account could originate a transaction as the account, provided every top-level call is restricted to that manager. The actor would have no CONFIG, PAYER, or other authority; the manager contract would determine whether the requested action is currently permitted.

My use case is permissionless unwrapping of a legacy asset: its owner records an on-chain, time-limited unwrap authorization, after which anyone may execute the policy-gated transaction. The wrapper validates the authorization and performs the unwrap as itself.

This could also support alarm-clock/keeper use cases where a contract makes an action publicly executable once specified on-chain conditions are met. Is a public-policy mode compatible with 8130’s validation and DoS model?

Sorry I didnt see this! Yes this is essentially the AlwaysValidAuthenticator - didn’t include it in the canonical set but would be a very simple add!

sorry @cyrus I didn’t see this prior - here is the example eip-8130-examples/src/authenticators/pure/AlwaysValidAuthenticator.sol at master · base/eip-8130-examples · GitHub

Hi Chris. I’ve been reading this closely because it overlaps a lot with what we built for Sequence over the years. To be upfront, I am not convinced by the flat stored-actor model as a whole, I think accounts need more expressiveness than that. But this is clearly moving, so I’d rather engage on the part that worries me most: cross-chain sync.

Today a revocation only takes effect on a chain once its batch lands there, so a revoked key (even an admin) stays valid on every chain nobody paid to relay to. There is no bound on how stale a chain can be while still serving authentications. We hit the same problems in Sequence, and two mechanisms worked well. I think they translate to the keystore model:

1. An opt-in freshness check. The account names a contract that must confirm, at use time, that the config on this chain is current. Revocation becomes pull instead of push: a stale chain refuses to act until it catches up, and catching up stays permissionless.

The natural question is how that contract knows what “current” is. The answer is that the protocol should not care, it only needs the hook, and the trust model is the wallet’s choice. It can be an operator posting signed tips (we run one of these for Sequence today), an observer inside a TEE, a validium or light client proving keystore state from a home chain, or a DAO for a treasury that wants revocations to be deliberate. The important property is that the interface can only block, never authorize, so the worst case is it censors you for a while, and a timed escape hatch removes it. That keeps the trust bounded no matter which resolution the wallet picks.

2. Snapshot batches. A change type that carries the complete actor set and can land at any sequence at or above the counter.

The motivation is that the multichain channel only ever grows. Bringing an account to a new chain means replaying every batch it ever signed, in order, paying every historical storage write, including slots for keys that expired years ago (the spec already installs lapsed grants inert just to keep the counter moving, which is the design fighting this problem). An account that is a few years old pays its entire config history on every new chain, forever. Replaying an ever-growing list is a bit insane when the account only wants its current state known.

Skipping is safe for snapshots specifically because a snapshot is a complete state, not a delta. The strict ordering exists so a relayer cannot land a key-add while withholding the matching key-revoke, but with a complete set there is nothing before it to withhold or reorder. One batch syncs a chain no matter how far behind it was, and deltas stay the cheap steady-state mechanism.

I have worked spec diffs for both if it is useful.

Thanks @Agusx1211 Yes one mechanism is to have a set of OPERATORs (non-admin) with expiration and have the admin authenticator require proof from a specified home chain.

Weekly (or however often) you’d just generate a proof to re-authorize these actors and continue using them. Since we are authorizing temporary senders we can use the local channel and not have to coordinate which just requires reconstructing a proof for this, which we need to do anyways (just take the channel from data).

This is something still in design but would love to work together on it!

I’m thinking about a payer model that uses three phases:

  1. pay the payer in an ERC-20
  2. main tx
  3. refund remaining gas to the user (a settlement contract called from the sender, drawing on an allowance from the payer)

But if phase 1 reverts, phase 2 won’t be executed. Is there a strong reason why a reverting phase skips all following phases?

Do you have any recommendations on how to handle refunds in such a setup?

Any thoughts on EIP-7623 with regards to this EIP? It would be weird if txs got much cheaper just by using this tx type.

LLM notes

EIP-7623’s calldata floor does not apply to 0x79 transactions.

EIP-7623 computes its floor over tx.data. An EIP-8130 transaction has no data field; its bytes live in calls, account_changes, sender_auth and metadata. The spec’s tx_payload_cost prices those at EIP-2028’s flat 16/4 per byte and never mentions 7623, so the floor evaluates over empty data and never binds.

Measured on Base Vibenet (build 3a23204ca), same 20,000 zero bytes:

gasUsed
type-2 221,000 (exactly the floor)
0x79, self-paid 129,092

So on any 7623 chain, data in a 0x79 transaction costs 40% of what it costs in the type-2 transaction next to it. The floor exists to bound worst-case block size; 0x79 walks around it.

EIP-8141 handles this: it requires 7623 and defines calldata_floor_tokens over every frame’s data and every signature.

Suggested fix: define tx_payload_cost with a 7623-style floor over the sender-signed bytes, or state that the chain’s calldata floor applies to the serialized body. Either belongs in the transaction EIP, not in chain configuration, since the L2 profile allows repricing constants but not adding a term.

Hey @karlb

Thinking is for refunds, we don’t support them as first class but they are possible to implement.

The call phases give a guarantee, if the token payment fails then the rest of the tx doesn’t proceed.

You can do refunds a few different ways if you want to support them:

  1. Batch refunds at a later time (or even end of block using enshrined payer)
  2. Do calls like [payContractThatCanRefund, executeWithRevertCatch(), callForRefund()], note that the need the callForRefund() needs to check that its in the last call of the tx.
  3. Implement an end of tx refund out of protocol spec for an enshrined payer (woulnd’t recommend this but is possible if have some token standard the protocol understands)

Thanks for this, will update things :folded_hands: