Skip to content
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

1st draft of EVM based address aliasing specification #29

Merged
merged 24 commits into from
Feb 8, 2023

Conversation

Therecanbeonlyone1969
Copy link
Collaborator

@Therecanbeonlyone1969 Therecanbeonlyone1969 commented Sep 12, 2022

See issue #24

@smartcontracts
Copy link

Arbitrum and Optimism use an offset of 0x1111000000000000000000000000000000001111 for mainnet

- removed superfluous file
- updated `offsetAlias` definition based on 9/21 WG meeting
- added 3 new requirements based on 9/21 WG meeting
- minor editorial updates such as links
- added requirement on the order of `offsetAlias`es to form an `addressAlias`
- minor editorial update
`chainId` must be of uniform length to enable systematic treamtment of addressalia by developers.
- Modified R4 to give the length constraints in bytes
- added a new R5 for `chainId` padding with zeros
- updated requirements numbering
- updated examples with new zero padding
1. Reduce chainId size encoded to 8 bytes
2. Add another figure to visually exemplify multi-chain inheritance from l1 -> L2 -> L3
- Added security considerations for EOA and Smart
 contract addresses used in aliasing as discussed during the last two WG meetings
- Added definition of externally owned account into the glossary
- Updated participant list (please, add yourself if you were missed)
@realcodywburns
Copy link

I would recommend including the checksum protections of the standard address across the aliases. The address is compared against the raw binary keccak-256 hash of the address bytes, and where there are letters in the same corresponding place as a “1” bit, the letter is capitalized. This helps with random RAM errors and with human readability. Full spec: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-55.md

@DZGoldman
Copy link
Contributor

@Therecanbeonlyone1969 approved

@Therecanbeonlyone1969 Therecanbeonlyone1969 requested review from tasdienes and removed request for kthomas February 7, 2023 23:44
@Therecanbeonlyone1969 Therecanbeonlyone1969 merged commit 70c20f1 into main Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants