{"eip":6358,"title":"Cross-Chain Token States Synchronization","description":"A paradigm to synchronize token states over multiple existing public chains","authors":["Shawn Zheng (@xiyu1984)","Jason Cheng \u003cchengjingxx@gmail.com\u003e","George Huang (@virgil2019)","Kay Lin (@kay404)"],"status":"Review","type":"Standards Track","category":"ERC","created":"2023-01-17","discussionsTo":"https://ethereum-magicians.org/t/add-eip-6358-omniverse-distributed-ledger-technology/12625","repo":"ERCs","label":"ERC-6358","officialUrl":"https://eips.ethereum.org/EIPS/eip-6358","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-6358.md","url":"https://eips.huatuo.xyz/eip-6358/","tldr":{"en":"Defines an \"omniverse\" token whose state is kept in sync across many chains via signed, nonce-ordered transactions relayed by off-chain synchronizers, instead of locking and minting through a bridge.","ja":"ブリッジによるロックとミントではなく、オフチェーンのシンクロナイザーが中継する署名済みで nonce 順のトランザクションによって、多数のチェーン間で状態が同期される「オムニバース」トークンを定義する。","ko":"브리지를 통한 잠금과 민팅 대신, 오프체인 싱크로나이저가 중계하는 서명되고 nonce 순서가 있는 트랜잭션으로 여러 체인 간에 상태가 동기화되는 \"옴니버스\" 토큰을 정의한다.","zh":"定义一种“全宇宙”（omniverse）代币，其状态通过由链下同步者中继的、已签名且按 nonce 排序的交易在多条链之间保持同步，而不是通过桥进行锁定和铸造。"},"tags":["cross-chain","interoperability","token","bridge"],"explainers":{"en":{"lang":"en","tldr":"Defines an \"omniverse\" token whose state is kept in sync across many chains via signed, nonce-ordered transactions relayed by off-chain synchronizers, instead of locking and minting through a bridge.","tags":["cross-chain","interoperability","token","bridge"],"related":[20,721,712],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-6358/","markdown":"## What problem does it solve?\n\nTypical token bridges lock tokens on chain A and mint a wrapped copy on chain B. Liquidity ends up fragmented across many wrapped versions, and if the bridge or the other chain fails, the wrapped tokens can lose their backing.\n\nERC-6358 takes a different approach: **synchronize state instead of moving tokens**. Every participating chain keeps a full copy of the token's ledger. A user signs one transaction, it is executed on every chain, and all copies converge. The authors argue that as long as Ethereum keeps running, users' balances there remain valid even if other chains go down.\n\n## How it works\n\n**Omniverse account (o-account).** Users are identified by a chain-independent public key, recommended to be a `secp256k1` public key, with a mapping to local addresses on each chain.\n\n**Omniverse transaction (o-transaction).** A struct signed by the user:\n\n```solidity\nstruct ERC6358TransactionData {\n    uint128 nonce;      // must be the account's current nonce + 1\n    uint32  chainId;    // chain where it was initiated\n    bytes   initiateSC; // contract where it was initiated\n    bytes   from;       // o-account public key\n    bytes   payload;    // app-defined, e.g. (op, exData, amount)\n    bytes   signature;\n}\n```\n\nFor fungible tokens, the recommended payload is `op` (0 transfer, 1 mint, 2 burn), `exData` (recipient) and `amount`. NFTs use `tokenId` instead of `amount`.\n\n**Flow.**\n\n1. The user submits an o-transaction on any chain via `sendOmniverseTransaction`. The contract checks the signature, nonce and balance, emits `TransactionSent`, and **does not execute it yet**.\n2. Off-chain **synchronizers** see it and deliver the same signed data to the contracts on other chains, competing for a reward set by the token deployer.\n3. After a waiting period, each chain executes it, and the account nonce advances everywhere.\n\nIf a user signs two different o-transactions with the same nonce on two chains, synchronizers propagate both, every chain sees the conflict, and the waiting period gives time to reject it.\n\n## Sample code\n\nCore interface and a fungible read from TypeScript (ethers v6):\n\n```ts\nimport { Contract, JsonRpcProvider } from \"ethers\";\n\nconst abi = [\n  \"function getTransactionCount(bytes pk) view returns (uint256)\",\n  \"function omniverseBalanceOf(bytes pk) view returns (uint256)\",\n  \"function getChainId() view returns (uint32)\",\n  \"event TransactionSent(bytes pk, uint256 nonce)\",\n];\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst token = new Contract(process.env.OMNI_TOKEN!, abi, provider);\n\nconst pk = process.env.O_ACCOUNT_PUBKEY!;          // 64-byte secp256k1 public key, hex\nconst nonce = await token.getTransactionCount(pk);  // next o-transaction uses nonce + 1\nconst balance = await token.omniverseBalanceOf(pk);\nconsole.log({ chain: await token.getChainId(), nonce, balance });\n```\n\n## Things to know\n\n- **Status: Review.** The interface is not final and may change.\n- Security depends on the off-chain synchronizers and the waiting period. The spec assumes there are always honest synchronizers online; if delivery stalls past the waiting period, the conflicting transaction may already have executed and must be reverted by implementation-specific means.\n- Punishing a cheating user (locking accounts, etc.) is left to each deployment, not defined by the standard.\n- It is designed to coexist with [ERC-20](/eip-20/) or [ERC-721](/eip-721/) interfaces, but the omniverse balance and the local ERC balance are separate concepts that implementations must keep consistent.\n- Signing may follow [EIP-712](/eip-712/) or a plain keccak256 over concatenated fields; check which scheme a given token uses.\n"},"ja":{"lang":"ja","tldr":"ブリッジによるロックとミントではなく、オフチェーンのシンクロナイザーが中継する署名済みで nonce 順のトランザクションによって、多数のチェーン間で状態が同期される「オムニバース」トークンを定義する。","tags":["cross-chain","interoperability","token","bridge"],"related":[20,721,712],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-6358/","markdown":"## 何を解決するのか\n\n典型的なトークンブリッジは、チェーン A でトークンをロックし、チェーン B でラップされたコピーをミントします。流動性は多数のラップ版に分散し、ブリッジや相手のチェーンが失敗すると、ラップされたトークンは裏付けを失うことがあります。\n\nERC-6358 は別のアプローチを取ります。**トークンを動かす代わりに状態を同期する**のです。参加するすべてのチェーンが、トークンの台帳の完全なコピーを保持します。ユーザーが 1 つのトランザクションに署名すると、それがすべてのチェーンで実行され、すべてのコピーが収束します。著者らは、Ethereum が動き続ける限り、他のチェーンが停止してもそこでのユーザーの残高は有効であり続けると主張しています。\n\n## 仕組み\n\n**オムニバースアカウント（o-account）。** ユーザーはチェーンに依存しない公開鍵で識別されます。推奨は `secp256k1` 公開鍵で、各チェーンのローカルアドレスへのマッピングを持ちます。\n\n**オムニバーストランザクション（o-transaction）。** ユーザーが署名する構造体です。\n\n```solidity\nstruct ERC6358TransactionData {\n    uint128 nonce;      // must be the account's current nonce + 1\n    uint32  chainId;    // chain where it was initiated\n    bytes   initiateSC; // contract where it was initiated\n    bytes   from;       // o-account public key\n    bytes   payload;    // app-defined, e.g. (op, exData, amount)\n    bytes   signature;\n}\n```\n\n代替可能トークンでは、推奨されるペイロードは `op`（0 が transfer、1 が mint、2 が burn）、`exData`（受取人）、`amount` です。NFT では `amount` の代わりに `tokenId` を使います。\n\n**フロー。**\n\n1. ユーザーは任意のチェーンで `sendOmniverseTransaction` を通じて o-transaction を送信します。コントラクトは署名、nonce、残高を確認し、`TransactionSent` を発行し、**まだ実行はしません**。\n2. オフチェーンの**シンクロナイザー**がそれを見つけ、同じ署名済みデータを他のチェーンのコントラクトに届けます。トークンのデプロイヤーが設定した報酬を競います。\n3. 待機期間の後、各チェーンがそれを実行し、アカウントの nonce がすべての場所で進みます。\n\nユーザーが 2 つのチェーンで同じ nonce の異なる o-transaction に署名した場合、シンクロナイザーは両方を伝播し、すべてのチェーンが衝突を目にし、待機期間がそれを拒否する時間を与えます。\n\n## サンプルコード\n\nコアインターフェースと、TypeScript からの代替可能トークンの読み取り（ethers v6）:\n\n```ts\nimport { Contract, JsonRpcProvider } from \"ethers\";\n\nconst abi = [\n  \"function getTransactionCount(bytes pk) view returns (uint256)\",\n  \"function omniverseBalanceOf(bytes pk) view returns (uint256)\",\n  \"function getChainId() view returns (uint32)\",\n  \"event TransactionSent(bytes pk, uint256 nonce)\",\n];\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst token = new Contract(process.env.OMNI_TOKEN!, abi, provider);\n\nconst pk = process.env.O_ACCOUNT_PUBKEY!;          // 64-byte secp256k1 public key, hex\nconst nonce = await token.getTransactionCount(pk);  // next o-transaction uses nonce + 1\nconst balance = await token.omniverseBalanceOf(pk);\nconsole.log({ chain: await token.getChainId(), nonce, balance });\n```\n\n## 知っておくべきこと\n\n- **ステータス: Review。** インターフェースは確定しておらず、変わる可能性があります。\n- セキュリティはオフチェーンのシンクロナイザーと待機期間に依存します。仕様は、オンラインの正直なシンクロナイザーが常に存在すると想定しています。配信が待機期間を過ぎて滞った場合、衝突したトランザクションがすでに実行されている可能性があり、実装固有の手段で巻き戻す必要があります。\n- 不正をしたユーザーへの罰則（アカウントのロックなど）は、標準では定義されず、各デプロイに任されています。\n- [ERC-20](/eip-20/) や [ERC-721](/eip-721/) のインターフェースと共存するよう設計されていますが、オムニバースの残高とローカルの ERC 残高は別の概念であり、実装側で整合性を保つ必要があります。\n- 署名は [EIP-712](/eip-712/) に従う場合も、連結したフィールドに対する単純な keccak256 の場合もあります。特定のトークンがどちらの方式を使うか確認してください。\n"},"ko":{"lang":"ko","tldr":"브리지를 통한 잠금과 민팅 대신, 오프체인 싱크로나이저가 중계하는 서명되고 nonce 순서가 있는 트랜잭션으로 여러 체인 간에 상태가 동기화되는 \"옴니버스\" 토큰을 정의한다.","tags":["cross-chain","interoperability","token","bridge"],"related":[20,721,712],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-6358/","markdown":"## 어떤 문제를 해결하나요?\n\n일반적인 토큰 브리지는 체인 A에서 토큰을 잠그고 체인 B에서 래핑된 사본을 민팅합니다. 유동성은 여러 래핑 버전으로 파편화되고, 브리지나 상대 체인이 실패하면 래핑된 토큰은 담보를 잃을 수 있습니다.\n\nERC-6358은 다른 접근을 취합니다. **토큰을 옮기는 대신 상태를 동기화**하는 것입니다. 참여하는 모든 체인이 토큰 원장의 전체 사본을 유지합니다. 사용자가 트랜잭션 하나에 서명하면 모든 체인에서 실행되고 모든 사본이 수렴합니다. 저자들은 이더리움이 계속 동작하는 한, 다른 체인이 중단되더라도 이더리움에서의 사용자 잔액은 유효하다고 주장합니다.\n\n## 어떻게 동작하나요?\n\n**옴니버스 계정(o-account).** 사용자는 체인에 독립적인 공개 키로 식별되며, `secp256k1` 공개 키를 권장하고 각 체인의 로컬 주소로 매핑됩니다.\n\n**옴니버스 트랜잭션(o-transaction).** 사용자가 서명하는 구조체입니다.\n\n```solidity\nstruct ERC6358TransactionData {\n    uint128 nonce;      // must be the account's current nonce + 1\n    uint32  chainId;    // chain where it was initiated\n    bytes   initiateSC; // contract where it was initiated\n    bytes   from;       // o-account public key\n    bytes   payload;    // app-defined, e.g. (op, exData, amount)\n    bytes   signature;\n}\n```\n\n대체 가능 토큰의 경우 권장 페이로드는 `op`(0 전송, 1 민팅, 2 소각), `exData`(수신자), `amount`입니다. NFT는 `amount` 대신 `tokenId`를 사용합니다.\n\n**흐름.**\n\n1. 사용자는 임의의 체인에서 `sendOmniverseTransaction`으로 o-transaction을 제출합니다. 컨트랙트는 서명, nonce, 잔액을 확인하고 `TransactionSent`를 발생시키며 **아직 실행하지는 않습니다**.\n2. 오프체인 **싱크로나이저**가 이를 보고 같은 서명 데이터를 다른 체인의 컨트랙트에 전달하며, 토큰 배포자가 정한 보상을 두고 경쟁합니다.\n3. 대기 기간이 지나면 각 체인이 이를 실행하고, 계정 nonce가 모든 곳에서 증가합니다.\n\n사용자가 두 체인에서 같은 nonce로 서로 다른 o-transaction 두 개에 서명하면 싱크로나이저는 둘 다 전파하고, 모든 체인이 충돌을 보게 되며, 대기 기간이 이를 거부할 시간을 줍니다.\n\n## 샘플 코드\n\n핵심 인터페이스와 TypeScript에서의 대체 가능 토큰 읽기(ethers v6):\n\n```ts\nimport { Contract, JsonRpcProvider } from \"ethers\";\n\nconst abi = [\n  \"function getTransactionCount(bytes pk) view returns (uint256)\",\n  \"function omniverseBalanceOf(bytes pk) view returns (uint256)\",\n  \"function getChainId() view returns (uint32)\",\n  \"event TransactionSent(bytes pk, uint256 nonce)\",\n];\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst token = new Contract(process.env.OMNI_TOKEN!, abi, provider);\n\nconst pk = process.env.O_ACCOUNT_PUBKEY!;          // 64-byte secp256k1 public key, hex\nconst nonce = await token.getTransactionCount(pk);  // next o-transaction uses nonce + 1\nconst balance = await token.omniverseBalanceOf(pk);\nconsole.log({ chain: await token.getChainId(), nonce, balance });\n```\n\n## 알아둘 점\n\n- **상태: Review.** 인터페이스는 확정되지 않았으며 바뀔 수 있습니다.\n- 보안은 오프체인 싱크로나이저와 대기 기간에 달려 있습니다. 명세는 정직한 싱크로나이저가 항상 온라인에 있다고 가정합니다. 전달이 대기 기간을 넘겨 지연되면 충돌하는 트랜잭션이 이미 실행되었을 수 있으며, 구현마다 다른 방법으로 되돌려야 합니다.\n- 부정행위를 한 사용자에 대한 처벌(계정 잠금 등)은 표준이 정의하지 않고 각 배포에 맡겨져 있습니다.\n- [ERC-20](/eip-20/)이나 [ERC-721](/eip-721/) 인터페이스와 공존하도록 설계되었지만, 옴니버스 잔액과 로컬 ERC 잔액은 별개의 개념이므로 구현이 둘의 일관성을 유지해야 합니다.\n- 서명은 [EIP-712](/eip-712/)를 따를 수도, 이어 붙인 필드에 대한 단순 keccak256일 수도 있습니다. 특정 토큰이 어떤 방식을 쓰는지 확인하세요.\n"},"zh":{"lang":"zh","tldr":"定义一种“全宇宙”（omniverse）代币，其状态通过由链下同步者中继的、已签名且按 nonce 排序的交易在多条链之间保持同步，而不是通过桥进行锁定和铸造。","tags":["cross-chain","interoperability","token","bridge"],"related":[20,721,712],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-6358/","markdown":"## 它解决什么问题？\n\n典型的代币桥会在链 A 上锁定代币，并在链 B 上铸造一个封装副本。流动性最终分散在许多封装版本中，如果桥或另一条链出现故障，封装代币可能失去支撑。\n\nERC-6358 采取了不同的做法：**同步状态，而不是移动代币**。每条参与的链都保存代币账本的完整副本。用户签署一笔交易，它在每条链上执行，所有副本趋于一致。作者认为，只要以太坊持续运行，即使其他链宕机，用户在以太坊上的余额依然有效。\n\n## 它如何运作\n\n**全宇宙账户（o-account）。** 用户由一个与链无关的公钥标识，推荐使用 `secp256k1` 公钥，并映射到各条链上的本地地址。\n\n**全宇宙交易（o-transaction）。** 由用户签名的结构体：\n\n```solidity\nstruct ERC6358TransactionData {\n    uint128 nonce;      // must be the account's current nonce + 1\n    uint32  chainId;    // chain where it was initiated\n    bytes   initiateSC; // contract where it was initiated\n    bytes   from;       // o-account public key\n    bytes   payload;    // app-defined, e.g. (op, exData, amount)\n    bytes   signature;\n}\n```\n\n对于同质化代币，推荐的 payload 是 `op`（0 转账，1 铸造，2 销毁）、`exData`（接收方）和 `amount`。NFT 使用 `tokenId` 代替 `amount`。\n\n**流程。**\n\n1. 用户在任意一条链上通过 `sendOmniverseTransaction` 提交 o-transaction。合约检查签名、nonce 和余额，触发 `TransactionSent`，并且**暂不执行**。\n2. 链下的**同步者**看到它后，把同样的已签名数据交付给其他链上的合约，并竞争由代币部署者设定的奖励。\n3. 经过一段等待期后，每条链执行它，账户 nonce 在所有地方都向前推进。\n\n如果用户在两条链上用同一个 nonce 签署了两笔不同的 o-transaction，同步者会传播这两笔，每条链都会发现冲突，等待期给了拒绝它的时间。\n\n## 示例代码\n\n核心接口，以及用 TypeScript 读取同质化代币（ethers v6）：\n\n```ts\nimport { Contract, JsonRpcProvider } from \"ethers\";\n\nconst abi = [\n  \"function getTransactionCount(bytes pk) view returns (uint256)\",\n  \"function omniverseBalanceOf(bytes pk) view returns (uint256)\",\n  \"function getChainId() view returns (uint32)\",\n  \"event TransactionSent(bytes pk, uint256 nonce)\",\n];\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst token = new Contract(process.env.OMNI_TOKEN!, abi, provider);\n\nconst pk = process.env.O_ACCOUNT_PUBKEY!;          // 64-byte secp256k1 public key, hex\nconst nonce = await token.getTransactionCount(pk);  // next o-transaction uses nonce + 1\nconst balance = await token.omniverseBalanceOf(pk);\nconsole.log({ chain: await token.getChainId(), nonce, balance });\n```\n\n## 需要注意\n\n- **状态：Review。** 接口尚未定稿，可能会变化。\n- 安全性取决于链下同步者和等待期。规范假定总有诚实的同步者在线；如果交付拖过了等待期，冲突的交易可能已经被执行，必须通过各实现自己的方式回滚。\n- 对作弊用户的惩罚（锁定账户等）留给各个部署自行决定，标准中没有定义。\n- 它被设计为可与 [ERC-20](/eip-20/) 或 [ERC-721](/eip-721/) 接口共存，但全宇宙余额与本地 ERC 余额是不同的概念，实现必须保持二者一致。\n- 签名可能遵循 [EIP-712](/eip-712/)，也可能是对拼接字段做的普通 keccak256；请确认具体代币使用哪种方案。\n"}}}
