Design Rationale

Key design decisions and technical constraints that shaped the ERC-7730 standard.

Core Principles

Human Readability
Balancing developer ergonomics with end-user comprehension
Hardware Support
Accommodating technical limitations of secure devices
Developer Adoption
Reducing implementation barriers for developers

Human Readability

Developer-Friendly Format

The specification uses a syntax and structure designed for direct readability:

  • Implementation patterns documented alongside specification
  • Clear examples for common use cases
  • Intuitive JSON structure

JSON Data Format

JSON was selected as the primary data interchange format due to:

Developer Benefits
  • • Widespread familiarity
  • • Extensive library support
Technical Benefits
  • • Native parsing capabilities
  • • Human-readable debugging

Adoption Incentives

The standard incorporates incentives for metadata file creation:

  • Wide wallet support for compliant implementations
  • Improved user experience as direct result of implementation

Hardware Wallet Constraints

Technical limitations of hardware wallets significantly influenced the specification.

Display Limitations

ConstraintDesign Response
Limited screen sizeFlattened field structure
UI rendering capabilitiesOptional complex constructs
Memory constraintsOptimized data structures

Field Structure Decisions

Flattened Field Structure

Complex UI constructs like layouts and grouping were made optional. Primary data fields are prioritized for constrained displays with progressive enhancement for more capable wallets.

Message Structure Flattening

Complex nested structures are discouraged. The recommended approach converts nested objects to flattened field lists, improving display compatibility across hardware wallet types.

Recursive Processing Limitations

Formatters requiring recursive processing (e.g., calldata) have documented limitations. Alternative patterns are provided for hardware wallet implementations with graceful degradation paths.

Ledger
Copyright © Ledger SAS. All rights reserved. Ledger, Ledger Stax, Ledger Nano S, Ledger Vault, Bolos are trademarks owned by Ledger SAS