Skip to content

Add ERC: Parameterized Storage Keys#1455

Merged
eip-review-bot merged 10 commits intoethereum:masterfrom
nxt3d:key-parameters
Jan 27, 2026
Merged

Add ERC: Parameterized Storage Keys#1455
eip-review-bot merged 10 commits intoethereum:masterfrom
nxt3d:key-parameters

Conversation

@nxt3d
Copy link
Contributor

@nxt3d nxt3d commented Jan 6, 2026

Summary

This PR adds ERC-8119: Parameterized Storage Keys, a standard format for parameterized string keys used in EVM key-value storage.

Description

This ERC defines a standard format for parameterized string keys where keys with parameters use a colon and space separator (: ). This provides a uniform, readable, and parseable format for keys that need to represent multiple instances or variations of the same metadata type.

Key Features

  • Standardized colon and space separator (: ) for parameterized keys
  • Backwards compatible with existing implementations
  • Supports single parameter per key, with flexibility for applications to encode additional sub-parameters
  • Compatible with all EVM-compatible languages (Solidity, Vyper, etc.)

Related Standards

This ERC can be used by standards such as:

  • ERC-8048 (Onchain Metadata for Token Registries)
  • ERC-8049 (Contract-Level Onchain Metadata)

Inspiration

This format was inspired by TOON format (developed by Johann Schopplich), and we acknowledge this preceding work.

nxt3d added 2 commits January 6, 2026 13:41
Define a standard format for parameterized string keys used in EVM key-value storage. Keys with parameters use a colon and space separator (: ). This format was inspired by TOON format, and we acknowledge this preceding work.
Fix created date format and add internal links to ERC-8048/8049.
@eip-review-bot
Copy link
Collaborator

eip-review-bot commented Jan 6, 2026

✅ All reviewers have approved.

@github-actions github-actions bot added the w-ci label Jan 6, 2026
@eip-review-bot eip-review-bot changed the title Add ERC-XXXX: Key Parameters Add ERC: Key Parameters Jan 6, 2026
ERCS/erc-8119.md Outdated
title: Key Parameters
description: A standard format for parameterized string keys used in EVM key-value storage.
author: Prem Makeig (@nxt3d)
discussions-to:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please create a discussions topic in Eth Magicians with a link to this PR
https://ethereum-magicians.org/c/ercs/57

nxt3d and others added 2 commits January 7, 2026 11:36
Co-authored-by: Andrew B Coathup <28278242+abcoathup@users.noreply.github.com>
File renamed from erc-key-parameters.md to erc-8119.md to reflect assigned ERC number.
@github-actions github-actions bot removed the w-ci label Jan 7, 2026
@nxt3d nxt3d changed the title Add ERC: Key Parameters Add ERC-8119: Key Parameters Jan 7, 2026
Update discussions-to field with forum post URL and add forum post draft.
@eip-review-bot eip-review-bot changed the title Add ERC-8119: Key Parameters Add ERC: Key Parameters Jan 7, 2026
@github-actions github-actions bot added the w-ci label Jan 7, 2026
@nxt3d nxt3d changed the title Add ERC: Key Parameters Add ERC-8119: Key Parameters Jan 9, 2026
@eip-review-bot eip-review-bot changed the title Add ERC-8119: Key Parameters Add ERC: Key Parameters Jan 9, 2026
@github-actions github-actions bot removed the w-ci label Jan 9, 2026
@nxt3d nxt3d changed the title Add ERC: Key Parameters Add ERC-8119: Key Parameters Jan 9, 2026
@github-actions github-actions bot added the w-ci label Jan 9, 2026
@eip-review-bot eip-review-bot changed the title Add ERC-8119: Key Parameters Add ERC: Key Parameters Jan 13, 2026
ERCS/erc-8119.md Outdated
For string keys used in EVM key-value storage (e.g., `mapping(string => bytes)` in Solidity, hash maps in Vyper, or equivalent structures in other EVM-compatible languages):

1. The base key name and parameter MUST be separated by a colon (`:`) followed by a single space (` `).
2. The parameter value MAY be any string that does not contain `: ` (colon followed by space). Colons without a following space are allowed in the parameter value.
Copy link
Collaborator

@xinbenlv xinbenlv Jan 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How to escape if value needs to contain :?

Define <key-label>: <key-parameter>, restrict key-label to ASCII without spaces, and add UTF-8 parameter examples.
@eip-review-bot eip-review-bot changed the title Add ERC: Key Parameters Add ERC: Parameterized Storage Keys Jan 13, 2026
@github-actions github-actions bot added w-ci and removed w-ci labels Jan 13, 2026
- Restrict key-labels to printable ASCII (0x21-0x7E), excluding control
  characters, space, and DEL
- Allow key-parameters to contain any UTF-8 string including `: `
- Clarify that parsing uses the first `: ` as separator
- Add examples with URLs and special characters (%gain, $price, #tag)
- Update test cases to reflect new rules
@nxt3d nxt3d changed the title Add ERC: Parameterized Storage Keys Add ERC: ERC-8119 Parameterized Storage Keys Jan 23, 2026
@github-actions
Copy link

The commit c8af122 (as a parent of c0feb92) contains errors.
Please inspect the Run Summary for details.


## 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you link the RFCs as seen here? https://eips.ethereum.org/EIPS/eip-1#rfc-2119-and-rfc-8174

@eip-review-bot eip-review-bot changed the title Add ERC: ERC-8119 Parameterized Storage Keys Add ERC: Parameterized Storage Keys Jan 27, 2026
@github-actions github-actions bot removed the w-ci label Jan 27, 2026
Copy link
Member

@jochem-brouwer jochem-brouwer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@eip-review-bot eip-review-bot enabled auto-merge (squash) January 27, 2026 16:57
Copy link
Collaborator

@eip-review-bot eip-review-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All Reviewers Have Approved; Performing Automatic Merge...

@eip-review-bot eip-review-bot merged commit 11cc1f5 into ethereum:master Jan 27, 2026
16 of 17 checks passed
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.

7 participants