---
eip: 8180
label: ERC-8180
title: Blob Authenticated Messaging
status: Draft
type: Standards Track
category: ERC
created: 2026-02-21
requires: 4844, 8179
official: https://eips.ethereum.org/EIPS/eip-8180
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-8180.md
canonical: https://eips.huatuo.xyz/eip-8180/
lang: en
tldr: A draft set of contract interfaces for publishing batches of signed messages in cheap EIP-4844 blobs (or calldata), with an on-chain decoder anyone can call and a separate trusted signature registry, so any client can read and verify them.
tags: [blobs, messaging, signatures, data-availability, social]
---

# ERC-8180: Blob Authenticated Messaging

> Interfaces for authenticated messaging over EIP-4844 blobs with on-chain decoder discovery

**TL;DR:** A draft set of contract interfaces for publishing batches of signed messages in cheap EIP-4844 blobs (or calldata), with an on-chain decoder anyone can call and a separate trusted signature registry, so any client can read and verify them.

## What problem does it solve?

[EIP-4844](/eip-4844/) blobs give 128 KiB of cheap, temporary data space each. With compression, one blob can hold thousands of short signed messages, which makes blobs an attractive transport for social posts, announcements or any batch of off-chain signed data.

But there is no standard. Each project invents its own registration events, key contracts, encodings and proof methods, so indexers and clients can't interoperate. Older efforts were either blob-unaware (such as [ERC-3722](/eip-3722/) Poster) or tied to one L2.

ERC-8180 (Blob Authenticated Messaging, "BAM") standardises the on-chain pieces around two principles: **anyone can read** (decoding logic lives on-chain) and **capture-minimizing** (no privileged decoders or registries; anyone can deploy their own).

## How it works

Four components:

1. **Core** (`IERC_BAM_Core`, extending [ERC-8179](/eip-8179/) Blob Space Segments). `registerBlobBatch` points at a range of field elements in a blob of the current transaction; `registerCalldataBatch` takes the bytes directly; `registerBlobBatches` registers several at once, atomically. The core writes **no storage**; it only emits `BlobBatchRegistered` / `CalldataBatchRegistered` with the content hash, submitter, a `contentTag`, the decoder address and the signature registry address. Anyone may call it.
2. **Decoder** (`IERC_BAM_Decoder`), **untrusted**. `decode(payload)` returns `(sender, nonce, contents)` messages plus opaque signature data. It must not verify signatures.
3. **Signature registry** (`IERC_BAM_SignatureRegistry`), **trusted**, one per scheme (`0x01` ECDSA-secp256k1, `0x02` BLS12-381, `0x03` STARK-Poseidon, `0x04` Dilithium). It handles key registration with proof of possession, plus `verify` and optional `verifyAggregated`.
4. **Exposer** (`IERC_BAM_Exposer`): proves one message on-chain so contracts can react to it, emitting `MessageExposed`. The expose function itself is not standardised because proofs differ (KZG, Merkle, ZK, calldata).

Because hashes are standardised, a lying decoder can only cause valid messages to be rejected, never forged ones to be accepted:

- `messageHash = keccak256(sender ‖ nonce ‖ contents)`
- `signedHash = keccak256(keccak256("ERC-BAM.v1" ‖ chainId) ‖ messageHash)`
- `messageId = keccak256(sender ‖ nonce ‖ contentHash)`

## Sample code

Client-side verification of a calldata batch (ethers v6):

```ts
import { Contract, solidityPackedKeccak256, dataSlice } from "ethers";

const decoderAbi = ["function decode(bytes) view returns ((address sender,uint64 nonce,bytes contents)[], bytes)"];
const registryAbi = [
  "function getKey(address) view returns (bytes)",
  "function verify(bytes,bytes32,bytes) view returns (bool)",
];

async function verifyEcdsaBatch(payload: string, decoderAddr: string, registryAddr: string, chainId: bigint) {
  const decoder = new Contract(decoderAddr, decoderAbi, provider);
  const registry = new Contract(registryAddr, registryAbi, provider);
  const [messages, sigData] = await decoder.decode(payload);

  const domain = solidityPackedKeccak256(["string", "uint256"], ["ERC-BAM.v1", chainId]);
  return Promise.all(messages.map(async (m: any, i: number) => {
    const messageHash = solidityPackedKeccak256(["address", "uint64", "bytes"], [m.sender, m.nonce, m.contents]);
    const signedHash = solidityPackedKeccak256(["bytes32", "bytes32"], [domain, messageHash]);
    const sig = dataSlice(sigData, i * 65, (i + 1) * 65); // ECDSA: 65 bytes per message
    const pubKey = await registry.getKey(m.sender);
    return { ...m, valid: await registry.verify(pubKey, signedHash, sig) };
  }));
}
```

## Things to know

- **Status: Draft**, and it depends on [ERC-8179](/eip-8179/), also a draft. Earlier drafts used a different indexed-topic layout for the events, so check which version an indexer targets.
- Blob data is pruned after roughly 18 days. Registration events stay forever but the messages may not; exposing a message on-chain makes it permanent. Archival is out of scope.
- A `signatureRegistry` of `address(0)` means the batch is unsigned and should be treated as unverified. A decoder of `address(0)` is allowed but defeats "anyone can read".
- Registration says only that a batch exists, not that its content is valid. Clients must de-duplicate by `messageId` and reject non-increasing nonces.
- BLS registries need proof of possession to prevent rogue-key attacks; the chain ID in the signing domain ([EIP-155](/eip-155/)) prevents cross-chain replay.


---

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