-
Notifications
You must be signed in to change notification settings - Fork 819
Update ERC-7930: Move to Last Call #1240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
euler0x
wants to merge
12
commits into
ethereum:master
Choose a base branch
from
defi-wonderland:7930-lastcall
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
98a77a2
docs: change status to lastcall
euler0x 31b0396
docs: add scope and delegation
euler0x 012b3f6
docs: add reference implementation
euler0x e138e91
fix: typo **
euler0x 91d7572
docs: add reference to 7828
euler0x b76e904
docs: add reference to 7828
euler0x ea106a6
docs: OZ reference implementation
euler0x 62c1519
docs: add reference to 7828
euler0x 1314455
Merge branch 'master' into 7930-lastcall
skeletor-spaceman 00b90e9
fix: reference implementations external link
skeletor-spaceman 799f89f
fix: sections are strictly defined
skeletor-spaceman 6aad265
fix: use eth-magicians as ref impl
skeletor-spaceman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,8 @@ | |
| description: An extensible binary format to refer to an address specific to one chain. | ||
| author: Teddy (@0xteddybear), Joxes (@0xJoxess), Nick Johnson (@Arachnid), Francisco Giordano (@frangio), Skeletor Spaceman (@skeletor-spaceman), Racu (@0xRacoon), TiTi (@0xtiti), Gori (@0xGorilla), Ardy (@0xArdy), Onizuka (@onizuka-wl), Sam Kaufman (@SampkaML), Marco Stronati (@paracetamolo), Yuliya Alexiev (@yuliyaalexiev), Jeff Lau (@jefflau), Sam Wilson (@samwilsn), Vitalik Buterin (@vbuterin) | ||
| discussions-to: https://ethereum-magicians.org/t/erc-7930-interoperable-addresses/23365 | ||
| status: Draft | ||
| status: Last Call | ||
| last-call-deadline: 2025-10-20 | ||
| type: Standards Track | ||
| category: ERC | ||
| created: 2025-02-02 | ||
|
|
@@ -22,7 +23,7 @@ | |
| - Addresses do not include any indication of the chain to which the address applies. This means chain information must be expressed out of band, and introduces the risk of an address being mistakenly used on a chain it is not valid for. This risk is particularly pronounced for addresses that represent smart contracts. | ||
| - The existing address format provides no mechanism for extension, meaning that there is no natural method to add these features to the existing address format. | ||
|
|
||
| Interoperable Addresses build on insights from <!-- TODO: [ERC-7828] -->, [CAIP-10] and [CAIP-50], offering a unified format which combines: | ||
| Interoperable Addresses build on insights from [ERC-7828], [CAIP-10] and [CAIP-50], offering a unified format which combines: | ||
| - Binding chain specificity (via explicit chain identifiers) to the raw address. | ||
| - Compact & canonical binary format for use on cross-chain message passing and intent declaration. | ||
| - Checksums for name collision mitigation & user error prevention. | ||
|
|
@@ -46,12 +47,18 @@ | |
|
|
||
| Interoperable Names are convertible to [CAIP-10] without even going through the binary representation, so backwards-compatibility with actors expecting [CAIP-10] identifiers should not be an issue. | ||
|
|
||
| CAIP-10 also depends on CAIP-2, which limits the chain reference to 32 characters. The binary format of this standard natively supports chain identifiers of arbitrary length, removing this bottleneck and making the standard more future-proof. | ||
|
|
||
| The interop roadmap is better served by having a standardized binary format for addresses first, which allows the message passing and intents verticals to move forward on a common interface, with a good-enough text representation which is familiar to users and useful for developers, and as a next step develop a chain & address name resolving standard on top of it, leveraging its uniformity and extensibility. | ||
|
|
||
|
|
||
| ## Specification | ||
| The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 and RFC 8174. | ||
|
|
||
| ### Scope and Delegation to CAIP-350 | ||
|
|
||
| A versioned, length-prefixed binary envelope for interoperable addresses. The interpretation and serialization of the payload inside that envelope are not standardized here; they are intentionally delegated to chain-specific profiles maintained by the Chain-Agnostic Standards Alliance (CASA), notably [CAIP-350]. Implementations MUST consult the relevant [CAIP-350] profile for a target namespace/chain to obtain the authoritative rules for binary serialization, display, and round-tripping of addresses. | ||
|
|
||
| ### Concepts | ||
| Interoperable Address | ||
| : A binary payload which unambiguously identifies a target address and allows conversion to a human-readable name. | ||
|
|
@@ -208,6 +215,12 @@ | |
| keccak256 input for checksum: `0x00022045296998a6f8e2a784db5d9f95e18fc23f70441a1039446801089879b08c7ef000`. | ||
| Note the version field is removed before hashing. | ||
|
|
||
|
|
||
| ## Reference Implementation | ||
| - [Interop-SDK](https://github.com/defi-wonderland/interop-sdk/tree/dev/packages/addresses): A TypeScript/JavaScript library for encoding, decoding, and manipulating Interoperable Addresses. | ||
|
Check failure on line 220 in ERCS/erc-7930.md
|
||
|
||
| - OpenZeppelin is developing a Solidity library contract for Interoperable Addresses. | ||
|
|
||
|
|
||
| ## Security Considerations | ||
| While this standard aims to be a foundation to be able to canonically refer to addresses on different chains, that guarantee is going to be a leaky abstraction in the real world, given that e.g. a particular chain namespace might define a serialization scheme that can't guarantee canonicity of addresses, or a given network might have two valid [CAIP-2] ids referring to it. | ||
|
|
||
|
|
@@ -216,14 +229,11 @@ | |
| ## Copyright | ||
| Copyright and related rights waived via [CC0](../LICENSE.md). | ||
|
|
||
| <!-- TODO: | ||
|
|
||
| [ERC-7828]: ./eip-7828.md | ||
|
|
||
| --> | ||
|
|
||
| [ERC-55]: ./eip-55.md | ||
| [ERC-7785]: ./eip-7785.md | ||
| [ERC-7828]: ./eip-7828.md | ||
| [CAIP-2]: https://github.com/ChainAgnostic/CAIPs/blob/2a7d42aebaffa42d1017c702974395ff5c1b3636/CAIPs/caip-2.md | ||
| [CAIP-10]: https://github.com/ChainAgnostic/CAIPs/blob/2a7d42aebaffa42d1017c702974395ff5c1b3636/CAIPs/caip-10.md | ||
| [CAIP-50]: https://github.com/ChainAgnostic/CAIPs/blob/2a7d42aebaffa42d1017c702974395ff5c1b3636/CAIPs/caip-50.md | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.