---
eip: 8197
label: EIP-8197
title: Cryptographically Agile Transactions
status: Draft
type: Standards Track
category: Core
created: 2025-03-04
requires: 1559, 2718, 2930, 4844, 7702
official: https://eips.ethereum.org/EIPS/eip-8197
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8197.md
canonical: https://eips.huatuo.xyz/eip-8197/
lang: en
tldr: Proposes a new transaction envelope that keeps the transaction body separate from a list of typed signatures, so Ethereum can add post-quantum or aggregated signatures without inventing a new transaction type for each one.
tags: [transactions, signatures, post-quantum, core]
---

# EIP-8197: Cryptographically Agile Transactions

> Cryptographically Agile Transaction format separating signature from transaction body

**TL;DR:** Proposes a new transaction envelope that keeps the transaction body separate from a list of typed signatures, so Ethereum can add post-quantum or aggregated signatures without inventing a new transaction type for each one.

## What problem does it solve?

Every Ethereum transaction type today bakes ECDSA fields (`y_parity`, `r`, `s`) directly into its structure. Supporting a different signature algorithm, for example a post-quantum one, would mean defining yet another transaction type for every combination of "what the transaction does" and "how it is signed".

CATX (Cryptographically Agile Transactions) decouples the two. The body says what to do; a trailing list of `(sig_type, sig_body)` pairs says who authorised it and with which algorithm. This also makes multi-signer transactions safer and makes it easy to strip signatures for future zk signature aggregation.

## How it works

A CATX transaction is a new [EIP-2718](/eip-2718/) type (number still TBD):

```
CA_TX_TYPE || rlp([payload_type, payload_body, sig_type_0, sig_body_0, sig_type_1, sig_body_1, ...])
```

- **Payload types** reuse existing bodies: `0x01` (2930), `0x02` (1559), `0x03` (4844), `0x04` (7702). The body is the unsigned form of that transaction. Legacy type-0 transactions are not supported.
- **Signature count** is set by the payload; any other count makes the transaction invalid. Future payloads such as [EIP-8141](/eip-8141/) frame transactions can require several.
- **Chained signature hashes.** Signature 0 signs `keccak256(payload_commitment)`, where `payload_commitment = CA_TX_TYPE || rlp(payload_type) || rlp(payload_body)`. Signature *i* signs the commitment plus all earlier `(sig_type, sig_body)` pairs, so signatures cannot be swapped or reordered (the defence against key substitution attacks, using the chaining from [EIP-8175](/eip-8175/)).
- **ECDSA** is `sig_type 0x00`, with a 65-byte body `y_parity ‖ r ‖ s` and the usual address derivation. Other algorithms are left to a registry such as [EIP-7932](/eip-7932/); their addresses are `keccak256(sig_type ‖ public_key)[12:]` so different schemes never share addresses.
- **7702 authorizations** inside the body use the same flat shape `[0x05, [chain_id, address, nonce], sig_type, sig_body]`, and their signing hash is unchanged from [EIP-7702](/eip-7702/).
- The transaction hash is keccak256 over the whole encoding. Gas rules come from each payload's EIP; new signature types are expected to define their own surcharges.

## Sample code

Computing the signing hashes (pseudocode):

```python
def payload_commitment(ca_tx_type, payload_type, payload_body):
    return ca_tx_type + rlp(payload_type) + rlp(payload_body)

def signature_hash(i, commitment, sigs):
    # sigs: list of (sig_type, sig_body) already collected
    data = commitment
    for sig_type, sig_body in sigs[:i]:
        data += rlp(sig_type) + rlp(sig_body)
    return keccak256(data)

# A single-signer EIP-1559 payload wrapped in CATX:
c = payload_commitment(CA_TX_TYPE, 0x02, [chain_id, nonce, tip, max_fee, gas, to, value, data, access_list])
h0 = signature_hash(0, c, [])
sig = ecdsa_sign(h0)                     # y_parity(1) || r(32) || s(32)
tx = CA_TX_TYPE + rlp([0x02, body, 0x00, sig])
```

## Things to know

- Status is **Draft**. The transaction type number is not yet assigned.
- Existing signatures are not reusable: because `CA_TX_TYPE` is part of the signed data, a normal 1559 transaction must be re-signed to become a CATX one, and vice versa. This is deliberate domain separation.
- 7702 authorization signatures, by contrast, are convertible between the two formats without re-signing.
- This EIP only defines the format. Which post-quantum or other algorithms are allowed, and what they cost, is left to separate EIPs.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-8197
