Skip to content

Conversation

@xinbenlv
Copy link
Collaborator

Summary

This PR introduces a new ERC proposing a presentation layer standard for abbreviating consecutive identical hex characters in EVM addresses using run-length encoding.

Motivation

As vanity addresses (CREATE2) and gas optimization proposals like EIP-7939 become more common, addresses with long sequences of identical characters (especially zeros) are increasingly prevalent. This creates:

  • Security risks: Difficult to distinguish 10 zeros from 11 zeros visually
  • UX issues: Current truncation (0x1234...5678) obscures the internal structure

Specification

Two display modes:

  1. Unicode (UI): 0x0¹⁸44... - Uses superscript characters
  2. ASCII (CLI/Logs): 0x0{18}44... - Uses bracket notation

Compression triggers when a sequence has length ≥ 6.

Key Features

  • Preserves EIP-55 checksum compatibility
  • Fail-safe: Invalid hex characters ({}, superscripts) cause rejection in legacy systems
  • Reference implementation included (Python)

Checklist

Introduces a presentation layer standard for abbreviating consecutive
identical hex characters in EVM addresses using run-length encoding.

- Unicode mode for UI (superscript notation: 0¹⁸)
- ASCII fallback for CLI/logs (bracket notation: 0{18})
- Preserves EIP-55 checksum compatibility
@eip-review-bot
Copy link
Collaborator

eip-review-bot commented Dec 30, 2025

File ERCS/erc-8117.md

Requires 1 more reviewers from @g11tech, @SamWilsn

@github-actions
Copy link

The commit c26323b (as a parent of 9216fb0) contains errors.
Please inspect the Run Summary for details.

@xinbenlv
Copy link
Collaborator Author

Thanks, @abcoathup

@github-actions github-actions bot removed the w-ci label Dec 31, 2025
Co-authored-by: Andrew B Coathup <[email protected]>
@eip-review-bot eip-review-bot changed the title Add ERC: Compressed Display Format for EVM Addresses Add ERC: Compressed Display Format for Addresses Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants