---
eip: 2848
label: ERC-2848
title: My Own Messages (MOM)
status: Stagnant
type: Standards Track
category: ERC
created: 2020-08-02
official: https://eips.ethereum.org/EIPS/eip-2848
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-2848.md
canonical: https://eips.huatuo.xyz/eip-2848/
lang: en
tldr: A message-board convention where an account posts by sending zero-value transactions to itself, with an opcode and a content multihash in the data field, giving verifiable, author-signed messages without a smart contract.
tags: [messaging, social, multihash, ipfs, convention]
---

# ERC-2848: My Own Messages (MOM)

> My Own Messages (MOM) is a standard to create your very own public, always updated, unstoppable, verifiable, message board.

**TL;DR:** A message-board convention where an account posts by sending zero-value transactions to itself, with an opcode and a content multihash in the data field, giving verifiable, author-signed messages without a smart contract.

## What problem does it solve?

Project owners often need to tell their users something: a migration, an incident, a new contract address. Usually this happens on social media, where accounts get hacked and impersonated. Users have no easy way to verify that the message came from the same key that controls the contract.

My Own Messages (MOM) proposes using Ethereum itself as a notary for messages. Because the message is attached to a transaction signed by an address, anyone can verify who posted it. Only a fingerprint of the content goes on-chain; the content itself lives on IPFS, Swarm or a regular web server.

## How it works

A **MOM transaction** is an ordinary transaction with strict shape:

| Field | Rule |
| --- | --- |
| `to` | the sender's own address (self-send) |
| `value` | `0` |
| `data` | first byte = operation code, followed by its parameters |

Messages are always referred to by their [multihash](https://github.com/multiformats/multihash), so clients can check that downloaded content has not been tampered with. Default content type is UTF-8 Markdown.

**Core operations** (every client must support):

| Code | Operation | Parameters |
| --- | --- | --- |
| `0x00` | ADD | multihash |
| `0x01` | UPDATE | old multihash, new multihash |
| `0x02` | REPLY | multihash replied to, new multihash |
| `0x03` | DELETE | multihash (asks clients to hide it) |
| `0xFD` | CLOSE ACCOUNT | multihash of a closing note; later messages from this address are ignored |
| `0xFF` | RAW | arbitrary bytes, not decoded |

**Extended operations** (`0x04`–`0x0B`) add referring to another address, endorsing ("like"), disapproving and their removals.

A client builds each address's message list by scanning its self-sent transactions in order. Any transaction that does not exactly follow the rules is simply not a MOM transaction and is ignored. Readers choose which addresses to follow; nobody can push a message into your feed.

## Sample code

Posting an `ADD` message with ethers v6. The content is hashed with SHA-256 and wrapped as a multihash (`0x12` = sha2-256, `0x20` = 32-byte length):

```ts
import { Wallet, JsonRpcProvider, sha256, toUtf8Bytes, concat } from "ethers";

const provider = new JsonRpcProvider(process.env.RPC_URL);
const wallet = new Wallet(process.env.PRIVATE_KEY!, provider);

const message = "# v2 contracts are live\nOld vault is deprecated.";
const digest = sha256(toUtf8Bytes(message));            // 32-byte hex
const multihash = concat(["0x12", "0x20", digest]);     // sha2-256 multihash

const OP_ADD = "0x00";
const tx = await wallet.sendTransaction({
  to: wallet.address,        // must be a self-send
  value: 0n,                 // must be zero
  data: concat([OP_ADD, multihash]),
});
await tx.wait();
// Publish `message` on IPFS/Swarm/HTTP so readers can fetch and verify it.
```

## Things to know

- Status is **Stagnant**. It is a client-side convention; nothing in the protocol enforces it.
- `DELETE` does not erase anything; the transaction and hash stay on-chain forever. It only asks clients to stop showing the message. Do not post anything you may need to retract.
- Clients must treat payloads as untrusted input and verify any content fetched from HTTP against its multihash.
- Each message costs a normal transaction fee. Self-sends with empty value were also used historically to cancel pending transactions, so clients must check the data format rather than assume every self-send is a message.


---

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