---
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/ko/eip-8180/
lang: ko
tldr: 저렴한 EIP-4844 blob(또는 calldata)에 서명된 메시지 묶음을 게시하기 위한 컨트랙트 인터페이스 초안. 누구나 호출할 수 있는 온체인 디코더와 별도의 신뢰되는 서명 레지스트리를 두어, 어떤 클라이언트든 이를 읽고 검증할 수 있다.
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:** 저렴한 EIP-4844 blob(또는 calldata)에 서명된 메시지 묶음을 게시하기 위한 컨트랙트 인터페이스 초안. 누구나 호출할 수 있는 온체인 디코더와 별도의 신뢰되는 서명 레지스트리를 두어, 어떤 클라이언트든 이를 읽고 검증할 수 있다.

## 어떤 문제를 해결하나요?

[EIP-4844](/eip-4844/) blob은 하나당 128 KiB의 저렴하고 임시적인 데이터 공간을 제공합니다. 압축하면 blob 하나에 짧은 서명 메시지 수천 개를 담을 수 있어, blob은 소셜 게시물, 공지, 또는 오프체인에서 서명된 데이터 묶음을 전달하는 수단으로 매력적입니다.

하지만 표준이 없습니다. 프로젝트마다 자기만의 등록 이벤트, 키 컨트랙트, 인코딩, 증명 방식을 만들어 내어 인덱서와 클라이언트가 상호운용되지 않습니다. 이전의 시도들은 blob을 고려하지 않았거나([ERC-3722](/eip-3722/) Poster 등), 특정 L2에 묶여 있었습니다.

ERC-8180(Blob Authenticated Messaging, "BAM")은 두 가지 원칙 아래 온체인 구성 요소를 표준화합니다. **누구나 읽을 수 있다**(디코딩 로직이 온체인에 있음)와 **종속 최소화**(특권을 가진 디코더나 레지스트리가 없으며 누구나 자기 것을 배포할 수 있음)입니다.

## 어떻게 동작하나요?

네 가지 구성 요소가 있습니다.

1. **Core**(`IERC_BAM_Core`, [ERC-8179](/eip-8179/) Blob Space Segments 확장). `registerBlobBatch`는 현재 트랜잭션의 blob 안에 있는 필드 요소(field element) 범위를 가리키고, `registerCalldataBatch`는 바이트를 직접 받으며, `registerBlobBatches`는 여러 개를 원자적으로 한꺼번에 등록합니다. Core는 **스토리지에 아무것도 쓰지 않으며**, 콘텐츠 해시, 제출자, `contentTag`, 디코더 주소, 서명 레지스트리 주소와 함께 `BlobBatchRegistered` / `CalldataBatchRegistered`만 emit합니다. 누구나 호출할 수 있습니다.
2. **Decoder**(`IERC_BAM_Decoder`), **신뢰하지 않음**. `decode(payload)`는 `(sender, nonce, contents)` 메시지와 불투명한 서명 데이터를 반환합니다. 서명을 검증해서는 안 됩니다.
3. **Signature registry**(`IERC_BAM_SignatureRegistry`), **신뢰함**, 방식마다 하나씩(`0x01` ECDSA-secp256k1, `0x02` BLS12-381, `0x03` STARK-Poseidon, `0x04` Dilithium) 있습니다. 소유 증명(proof of possession)이 포함된 키 등록과 함께 `verify`, 선택적인 `verifyAggregated`를 처리합니다.
4. **Exposer**(`IERC_BAM_Exposer`): 메시지 하나를 온체인에서 증명해 컨트랙트가 이에 반응할 수 있게 하고 `MessageExposed`를 emit합니다. 증명 방식(KZG, Merkle, ZK, calldata)이 서로 다르므로 expose 함수 자체는 표준화되어 있지 않습니다.

해시가 표준화되어 있으므로, 거짓말하는 디코더는 유효한 메시지가 거부되게 할 수만 있고 위조된 메시지가 받아들여지게 할 수는 없습니다.

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

## 샘플 코드

calldata 배치의 클라이언트 측 검증(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) };
  }));
}
```

## 알아둘 점

- **상태: Draft**이며, 마찬가지로 초안인 [ERC-8179](/eip-8179/)에 의존합니다. 이전 초안은 이벤트에 다른 indexed 토픽 레이아웃을 사용했으므로, 인덱서가 어느 버전을 대상으로 하는지 확인하세요.
- blob 데이터는 대략 18일 뒤에 프루닝됩니다. 등록 이벤트는 영구히 남지만 메시지는 그렇지 않을 수 있으며, 메시지를 온체인에서 expose하면 영구적으로 남습니다. 아카이빙은 범위 밖입니다.
- `signatureRegistry`가 `address(0)`이면 그 배치는 서명되지 않은 것이며 검증되지 않은 것으로 다뤄야 합니다. 디코더가 `address(0)`인 것은 허용되지만 "누구나 읽을 수 있다"는 원칙을 무력화합니다.
- 등록은 배치가 존재한다는 사실만 말해 줄 뿐 그 내용이 유효하다는 뜻은 아닙니다. 클라이언트는 `messageId`로 중복을 제거하고 nonce가 증가하지 않는 메시지를 거부해야 합니다.
- BLS 레지스트리는 rogue-key 공격을 막기 위해 소유 증명이 필요하며, 서명 도메인의 체인 ID([EIP-155](/eip-155/))는 크로스체인 리플레이를 막습니다.


---

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