Introduction

Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.

I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.

I also build and publish a variety of tools, libraries, and open-source projects.

This article covers ERC7208, a proposal to abstract and standardize on-chain data management by separating storage (Data Objects) from application logic (Data Managers) and providing a common access structure based on bytes32 Data Points and Data Indexes.

This explanation translates, summarizes, and expands on the following specification.

I have also written about other EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs.

Overview

ERC7208 defines a set of interfaces for abstracting data stored on-chain. This separates data storage from the logic that controls it, allowing flexible and extensible designs.

On-chain data is stored in smart contracts called Data Objects (DOs). The external indexing mechanism used to reference this data is called a Data Point (DP). Other smart contracts called Data Managers (DMs) read and modify the data.

ERC7208 also introduces two mechanisms for access control.

  • Data Index (DI) Acts as a gate that restricts access from DMs to DOs.
  • Data Point Registry (DPR) Manages the issuance (registration) of DPs.

A key feature of ERC7208 is data portability, also called horizontal data mobility. This allows data to move between different Data Index (DI) implementations, enabling large-scale system upgrades without affecting the underlying data storage.

Motivation

As the Ethereum ecosystem expands, demand for on-chain functionality is growing rapidly. Market growth creates demand for increasingly complex and flexible systems and greater efficiency.

Numerous token standards (ERCs) have been proposed, many of them influenced by market trends. Each standard has its own purpose, but improving interoperability between standards requires a more flexible mechanism. In other words, a standard adapter mechanism is needed to connect different ERCs.

Fragmentation and existing challenges

Without such adapters, projects attempt to achieve interoperability through bespoke implementations. These individual implementations are inefficient and lead to fragmentation across the ecosystem.

Furthermore, no universal standard applies to every asset. Assets come in many forms, including the following.

Asset type Description
Fungible Interchangeable tokens such as ERC20 tokens
Non-Fungible NFTs such as ERC721 tokens
Digital Twin Digital representations of real-world assets
Real-world Assets (RWA) Tokenized physical assets such as real estate or securities
DePin (Decentralized Physical Infrastructure) Assets associated with decentralized physical infrastructure

These assets are represented using different token standards. Although this diversity encourages innovation, it makes compatibility between standards harder to achieve.

Problems caused by insufficient interoperability

Exchanging, trading, or operating on assets across different standards requires each protocol to support the relevant interfaces. The proliferation of custom implementations and the immutability of smart contracts make this more complicated.

Already deployed protocols are difficult to adapt to new standards and cannot easily accommodate future upgrades. This hinders the development of the ecosystem as a whole.

A common adapter is therefore needed to allow assets tokenized under different standards to interact. ERC7208 provides such a mechanism.

Purpose and value of the proposal

ERC7208 aims to separate data handling from logic implementation, allowing data to be handled independently of ERC interfaces. Developers can therefore operate on data flexibly without being constrained by a particular standard.

ERC7208 stores on-chain data in Data Objects (DOs) and abstracts it through Data Points (DPs). These can interact with multiple Data Managers (DMs), allowing assets under different standards to be accessed and operated on simultaneously.

The mechanism can coexist with existing and future token standards, enabling flexible, efficient, and consistent asset management.

Data abstraction

One feature of ERC7208 is data abstraction. It separates the storage of data from token logic.

Traditionally, developers have needed complex inheritance structures or duplicated implementations for token standards such as ERC20 and ERC721. ERC7208 unifies these through a common interface, reducing development effort.

Data can consequently be handled independently of the chosen standard.

Standard neutrality

ERC7208 adopts a standard-neutral approach. It is designed to allow data to move seamlessly across standards without depending on any particular token standard.

This substantially improves interoperability and enables fragmented token ecosystems to be handled in an integrated manner.

Consistent interfaces

ERC7208 allows all asset data to be operated on through a set of fundamental functions. Regardless of the token standard, developers can access data through common functions and manage assets in a uniform way.

Data and metadata (attribute information) can also be stored on-chain and retrieved or updated through the same functions.

Data portability

ERC7208 also enables horizontal data mobility. This mechanism allows data to move from one Data Index (DI) implementation to another.

Even when protocols or logic undergo major changes, flexible upgrades are possible without affecting underlying data storage.

The architecture can therefore accommodate system evolution while maintaining long-term compatibility.

Specification

Overview

The proposal (for example, ERC7208) standardizes an architecture that separates on-chain data storage from application logic. Data is consolidated in a Data Object (DO) and referenced through an identifier called a Data Point (DP). The Data Manager (DM) handles reads, writes, and business logic, while the Data Index (DI) mediates access control between the DM and DO. The Data Point Registry (DPR) handles issuance, ownership, and management of the DP itself.

This separation improves interoperability because different token standards, such as ERC20 and ERC721, can access data through the same read and write procedures. The stored data (DO) can also be retained when the access control implementation (DI) is replaced, making the architecture more resilient to future upgrades through horizontal data mobility, or portability.

flowchart TD
    A[User/Application] --> B[Data Manager: DM<br/>Business logic]

    %% Read and write paths
    B -- Read --> D[Data Object: DO<br/>Data storage]
    B -- All writes go through --> C[Data Index: DI<br/>Approval and access control]
    C -- Forward if approved --> D

    %% References and registry
    F[Data Point Registry: DPR<br/>DP issuance/ownership/management] -- Issue/manage --> E[Data Point: DP<br/>bytes32 reference]
    E -- Index/reference --> D

How it works

1. Data reference (Data Point: DP)

A DP is a fixed-length bytes32 value encoding information used to identify the location and consistency of data, such as a prefix, chain ID, and issuing registry address. The DP itself does not hold asset data. It serves as an index (reference). This provides a consistent reference format even as the specification evolves or multiple standards are used together.

2. Data storage (Data Object: DO)

A DO holds the actual on-chain data and is accessed through the common interfaces read(dp, operation, data) and write(dp, operation, data). A DO can register a particular Data Index as a trusted implementation, allowing access control to be delegated and replaced in the future (portability).

3. Entry point for logic and UI (Data Manager: DM)

A DM implements the application's business logic and translates user operations into reads and writes against a DO. Reads can use IDataIndex.read() or IDataObject.read(), but writes always go through IDataIndex.write(). Only updates that pass the permission checks can therefore reach the DO. A DM can handle multiple DPs and share DPs with other DMs.

4. Access control gate (Data Index: DI)

A DI manages approvals determining which DM can operate on which DP for which DO. The DI first receives a write request and calls the DO's write() if the request is approved. The DI can also manage identifiers, such as address-based user IDs, but the ID scheme must not obstruct future migrations.

5. Reference issuer (Data Point Registry: DPR)

A DPR handles DP issuance, ownership, and administrator roles. DMs request DP allocation from the DPR when needed. DOs and DIs can quickly validate the issuer and authority by examining registry information embedded in the DP.

6. Read and write flow
  1. The DM obtains the required DP from the DPR.
  2. Reads reach the DO through read(), either through the DI or directly.
  3. Writes always execute write() through the DI and are applied to the DO if approved.
  4. To change access control in the future, the DO can replace the DI implementation using setDIImplementation() while retaining stored data (horizontal mobility).

Terminology

Term Description
Data Point A reference uniquely identifying an on-chain data structure. The data is stored in one or more Data Objects and managed by one or more Data Managers. The Data Point Registry issues the reference.
Data Object A smart contract implementing low-level storage management. It indexes data structures through Data Points.
Data Manager A smart contract providing high-level logic and an interface for end users. It manages data in Data Objects.
Data Point Registry A contract managing Data Point issuance. It defines a space of compatible Data Points.
Data Index A contract controlling access from Data Managers to Data Objects.

Data Point structure

A Data Point is a low-level structure used to reference and index on-chain data structures. Rather than storing the data directly, it acts as a pointer to the data.

Main requirements

Item Details
Type bytes32
Purpose Indexing data
Discouraged use Direct storage of asset data
Composition Includes a 4-byte prefix, a 4-byte chain ID, and a 20-byte registry address.
Uniqueness Each Data Point has a unique identifier assigned by its registry.
javascript
/**
 * Recommended internal structure of a DataPoint (reference implementation example)
 * 0xPPPPVVRRIIIIIIIIHHHHHHHHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
 * 
 * - Prefix (bytes4)
 *   -- PPPP - Type prefix (e.g., 0x4450 is the ASCII representation of "DP")
 *   -- VV   - Version of the DataPoint specification (e.g., 0x00 in the reference implementation)
 *   -- RR   - Reserved field
 * 
 * - Registry-local identifier
 *   -- IIIIIIII - 32-bit implementation-specific ID
 * 
 * - Chain ID (bytes4)
 *   -- HHHHHHHH - Chain ID
 * 
 * - REGISTRY Address (bytes20)
 *   -- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - Address of the registry that issued the Data Point
 */

This structure makes it possible to identify precisely which registry on which chain issued the Data Point. Using a prefix also helps maintain compatibility with other Data Points.

Example: Constructing a DataPoint

Item Value Description
Type prefix (PPPP) 0x4450 ASCII representation of "DP" (short for Data Point)
Version (VV) 0x01 Version of the DataPoint specification
Reserved field (RR) 0x00 Reserved for future extensions
Implementation-specific ID (IIIIIIII) 0x000000A1 Identifier unique within the registry
Chain ID (HHHHHHHH) 0x000000AA For example, chain ID 170
Registry address (AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) 0xAbCDEF1234567890abcdef1234567890ABCdEf12 Address of the registry that issued the Data Point
  1. Prepare the individual segments

    text
    PPPP = 0x4450         // "DP"
    VV   = 0x01           // Version 1
    RR   = 0x00           // Reserved
    IIIIIIII = 0x000000A1 // Implementation-specific ID
    HHHHHHHH = 0x000000AA // Chain ID
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA = 0xAbCDEF1234567890abcdef1234567890ABCdEf12
  2. Concatenate the segments

    Combine the elements above in order.

    text
    0x44500100000000A1000000AAAbCDEF1234567890abcdef1234567890ABCdEf12

    This gives the final bytes32 value.

The completed DataPoint is as follows.

javascript
bytes32 dataPoint = 0x44500100000000A1000000AAAbCDEF1234567890abcdef1234567890ABCdEf12;
Byte range Name Value Description
0–3 Prefix 0x4450 ASCII representation of "DP"
4–5 Version 0x01 Version number
6–7 Reserved field 0x00 Reserved for future extensions
8–11 Implementation-specific ID 0x000000A1 Registry-specific ID
12–15 Chain ID 0x000000AA Chain identifier
16–31 Registry address 0xAbCDEF1234567890abcdef1234567890ABCdEf12 Issuing registry

Data Object interface

A Data Object is a smart contract responsible for actual data storage and management. It uses Data Points to index data structures and implements low-level storage management.

It can also switch access management logic through setDIImplementation() to support future migration to another Data Index implementation.

Required interface

A Data Object must implement the following IDataObject interface.

javascript
interface IDataObject {
    function read(bytes32 dp, bytes4 operation, bytes calldata data) external view returns(bytes memory);
    function write(bytes32 dp, bytes4 operation, bytes calldata data) external returns(bytes memory);
    function setDIImplementation(bytes32 dp, address newImpl) external;
}
read
javascript
function read(bytes32 dp, bytes4 operation, bytes calldata data) external view returns(bytes memory);

Reads data.

Retrieves information from the data structure corresponding to the specified DataPoint. The read is performed according to the operation type specified by operation.

Parameters

  • dp Identifier of the Data Point to read.
  • operation Identifier of the type of read operation to execute.
  • data Additional data required for the operation.

Return value

  • bytes memory Data returned as the result of the operation.
write
javascript
function write(bytes32 dp, bytes4 operation, bytes calldata data) external returns(bytes memory);

Stores (writes) data.

Performs a write operation according to operation against the storage associated with the specified DataPoint.

Parameters

  • dp Identifier of the Data Point to write to.
  • operation Identifier of the type of write operation to execute.
  • data Data required for the operation.

Return value

  • bytes memory The operation result, which may be an empty byte array.
setDIImplementation
javascript
function setDIImplementation(bytes32 dp, address newImpl) external;

Sets or updates the Data Index implementation.

Specifies the Data Index implementation to which data management is delegated. This allows the access management logic to be replaced flexibly.

Parameters

  • dp Identifier of the target Data Point.
  • newImpl Address of the new Data Index implementation.

Data Manager

A Data Manager is a smart contract responsible for business logic and high-level data management. It serves as the user interface layer of the application, interacting with on-chain data through read() for retrieval and write() for updates and registration.

For reads, a Data Manager uses IDataIndex.read() or IDataObject.read() as appropriate. For writes, it must always update data through IDataIndex.write(). This ensures that access control is applied and that data operations preserve security and consistency.

A Data Manager can also share Data Points with other Data Managers and handle multiple Data Points simultaneously. This enables data coordination across managers and compound operations involving multiple assets.

A Data Manager must also implement logic for requesting and obtaining new Data Points from the Data Point Registry. Applications can therefore acquire the required data references dynamically, retaining flexibility in system expansion and operation.

The Data Manager serves as the core of business logic and data management, enabling flexible data operations while preserving security and consistency through strict access control.

Data Point Registry interface

A Data Point Registry is a smart contract that handles Data Point issuance, transfer, and access management. Data Managers request Data Point allocation from this registry.

It must implement the following IDataPointRegistry interface.

javascript
interface IDataPointRegistry {
    function isAdmin(bytes32 dp, address account) external view returns (bool);
    function allocate(address owner) external payable returns (DataPoint);
    function transferOwnership(bytes32 dp, address newOwner) external;
    function grantAdminRole(bytes32 dp, address account) external returns (bool);
    function revokeAdminRole(bytes32 dp, address account) external returns (bool);
}
isAdmin
javascript
function isAdmin(bytes32 dp, address account) external view returns (bool);

Checks whether an address is an administrator (Admin) for a particular Data Point.

Checks the administrative permissions configured for each Data Point.

Parameters

  • dp Identifier of the Data Point to check.
  • account Account address to check.

Return value

  • bool If true, the account is an administrator.
allocate
javascript
function allocate(address owner) external payable returns (DataPoint);

Issues a new Data Point and allocates it to the specified address.

Grants the Admin role to the owner upon issuance.

Parameters

  • owner Owner address of the new Data Point.

Return value

  • DataPoint The allocated Data Point.
transferOwnership
javascript
function transferOwnership(bytes32 dp, address newOwner) external;

Transfers ownership of a Data Point.

Transfers an existing Data Point to a new owner.

Parameters

  • dp The target Data Point.
  • newOwner Address of the new owner.
grantAdminRole
javascript
function grantAdminRole(bytes32 dp, address account) external returns (bool);

Grants the Admin role to a specified address.

Authorizes the account to grant and revoke other administrator roles.

Parameters

  • dp The target Data Point.
  • account Address to receive the administrator role.

Return value

  • bool true if the role is granted.

revokeAdminRole

javascript
function revokeAdminRole(bytes32 dp, address account) external returns (bool);

Revokes the Admin role from a specified address.

The role can be granted again even if an account revokes its own role.

Parameters

  • dp The target Data Point.
  • account Address from which the role is revoked.

Return value

  • bool true if the role is revoked.

Data Index interface

A Data Index acts as an access control gateway for Data Managers. It defines which managers can access which Data Points and Data Objects.

Its ID management mechanism also defines a compatibility space across implementations.

It implements the following IDataIndex interface.

javascript
interface IDataIndex {
    function isApprovedDataManager(bytes32 dp, address dm) external view returns(bool);
    function allowDataManager(bytes32 dp, address dm, bool approved) external;
    function read(address dobj, bytes32 dp, bytes4 operation, bytes calldata data) external view returns(bytes memory);
    function write(address dobj, bytes32 dp, bytes4 operation, bytes calldata data) external returns(bytes memory);
}
isApprovedDataManager
javascript
function isApprovedDataManager(bytes32 dp, address dm) external view returns(bool);

Checks whether the specified Data Manager can write to a particular Data Point.

As part of access control, it checks whether prior approval has been granted.

Parameters

  • dp The target Data Point.
  • dm Address of the Data Manager to check.

Return value

  • bool true if approved.
allowDataManager
javascript
function allowDataManager(bytes32 dp, address dm, bool approved) external;

Sets the access permissions of a Data Manager.

Grants or denies the specified manager access to a particular Data Point. Only administrators of the Data Point should be able to execute this function.

Parameters

  • dp The target Data Point.
  • dm Data Manager to which access is granted or denied.
  • approved true grants access; false denies it.
read
javascript
function read(address dobj, bytes32 dp, bytes4 operation, bytes calldata data) external view returns(bytes memory);

Reads data from the specified Data Object.

Performs a read on the target data structure after passing access control.

Parameters

  • dobj Address of the target Data Object.
  • dp The target Data Point.
  • operation Type of read operation.
  • data Additional data.

Return value

  • bytes memory Data resulting from the operation.
write
javascript
function write(address dobj, bytes32 dp, bytes4 operation, bytes calldata data) external returns(bytes memory);

Writes data to the specified Data Object.

Only an approved Data Manager can execute this operation. Performs a write on the target data structure according to the specified operation.

Parameters

  • dobj Address of the target Data Object.
  • dp The target Data Point.
  • operation Type of operation to execute.
  • data Data used for the write.

Return value

  • bytes memory Data resulting from the write.

Additional considerations

Flexible data pointers using bytes32

The decision to encode a Data Point as bytes32 reflects a design that prioritizes flexibility and future compatibility.

bytes32 is a fixed-length 32-byte data type and one of the most widely used fundamental types in Ethereum. This format accommodates various data structures and encoding schemes, making extensions for different use cases easier. For example, if new data standards or structures appear in the future, Data Points defined as bytes32 can reference them while retaining compatibility. Standard Adapters based on existing ERCs can therefore be applied to new structures in the future.

A prefix (an identifier at the beginning) is also recommended for a Data Point. This allows a Data Object to identify compatibility immediately when accessing data and prevent collisions or errors between standards. The prefix is also used to identify the corresponding Data Point Registry (issuing registry) and verify administrator access permissions. The suffix, meanwhile, must include information identifying the registry that issued the Data Point. This allows a Data Object to quickly detect invalid transactions originating from different registries and prevent incorrect data use.

This structure enables secure and consistent data references while preserving system flexibility.

Data Point management and access control

A Data Manager can freely choose the Data Points it uses. Their allocation and management, however, must go through a Data Point Registry. Data Point issuance, ownership, and management are processed through a common registry, keeping access control and permission management explicit.

Data write access (write()) is executed through a Data Index. This ensures that each write is subject to the appropriate access checks and that only authorized managers can modify data. The explicit separation of access paths is an important mechanism for ensuring security and consistency.

Data Object independence and scalability

A Data Object is designed as a smart contract independent of other components. This is an important design decision for ensuring system scalability.

Each Data Object implements common read() and write() interfaces, standardizing communication with Data Managers. Multiple applications can maintain different Data Objects in their own address spaces while accessing data in a uniform manner.

This layered architecture also enables data storage to be managed independently of token interfaces representing assets, such as ERC20 and ERC721. Asset logic (such as token operations) is separated from data storage (state records), allowing each to be extended or updated independently.

Access permission management is left to each implementation, and each Data Object can control its own Data Point space. The mechanism accommodates complex, dynamic use cases, coordination across ERC standards and smart contracts, and advanced asset management involving cross-chain and rollup environments.

Managing mutable on-chain data

Many conventional standardized interfaces treat on-chain data as static (immutable), with restrictions on modification or updates. The Data Object defined by ERC7208, however, supports storing mutable on-chain data.

A Data Manager can maintain dynamic state in delegated storage and apply changes whenever needed. For example, data that changes over time, such as state changes in response to user behavior or asset updates based on external signals, can be handled flexibly. This is a major advantage over conventional fixed storage designs.

Applications can therefore offer more interactive, real-time functionality and implement dynamic logic on-chain.

Horizontal data mobility

Another important design element is horizontal data mobility, also called data portability.

A Data Manager can migrate storage management for a Data Object to another Data Index implementation. Changing the access management logic or introducing more advanced access control does not require changes to the underlying storage structure. This is because the data itself (the information holding value) always remains in the Data Object.

The system can therefore evolve by upgrading the Data Index responsible for access control and user management while preserving existing data structures and values. This improves maintainability and adaptability across the system and supports long-term extensibility.

Compatibility

ERC7208 aims to extend the functionality of existing token standards without introducing breaking changes. Already deployed tokens, even those issued under other ERCs, can be wrapped (enclosed in an external interface) and indexed (assigned identifiers for easier lookup and reference) and handled as Data Points. Storage is handled by the Data Object, after which the data can be exposed and operated on through any Data Manager implementation.

When integrating different standards for interoperability, compatibility must be verified for each use case.

However, by separating storage from logic, the interfaces defined by ERC7208 allow data to be accessed through the same read and write procedures even when standards differ. Existing tokens can therefore be wrapped and associated with a Data Object, then operated on through a Data Manager. Functionality can be extended without modifying the original contract itself, while preserving compatibility.

Reference implementation

As an example of a Standard Adapter (an implementation bridging different standards), the reference implementation shows a configuration in which two types of tokens, fungible and semi-fungible, share storage. End users interact through either interface. The semi-fungible token side is represented by a single Data Manager, and the fungible token side is represented by multiple Data Managers. A single Data Object, called the Fungible Fractions Data Object, separates storage from logic. A factory (a helper for repeatedly deploying contracts of the same type) is used to deploy fungible token interfaces that share storage with each semi-fungible token.

When transfer() is called through either interface, both interfaces emit events.

Security

Access control is separated into three layers. This separation clarifies responsibilities and confines the effects of misconfiguration. If one layer fails, checks in the other layers provide additional safeguards.

Responsibilities of each layer

Layer Component Key responsibility
Layer 1 Data Point Registry Allocates Data Points to Data Managers and manages ownership (Admin/Write permissions). The registry is the starting point for determining who can allow/deny access.
Layer 2 Data Index Uses approvals to manage whether a Data Manager can access a Data Point. It checks with the Data Point Registry to determine who can grant or revoke approvals.
Layer 3 Data Object Manages the trust relationship between a Data Point and a Data Index. It accepts write() calls only from a trusted Data Index.

Three-layer access control model

text
Layer 1: Data Point Registry
  └─ Manages Data Point ownership and permissions (Admin/Write)
        ↓ (determines who can grant or revoke access)

Layer 2: Data Index
  └─ Manages approval for each Data Manager
        ↓ (forwards the write request if approved)

Layer 3: Data Object
  └─ Accepts writes only from a registered trusted Data Index

Considerations for user ID management

A Data Object often holds user-related data, and a Data Manager contains the corresponding management logic. Providing user management (for example, address-based IDs) in the Data Index can be convenient, but a poorly chosen ID scheme can obstruct migration of a Data Manager to another Data Index. The ID scheme must be chosen with migration in mind so that it does not impede horizontal mobility.

References

Rachid Ajaja (@abrajaja), Matthijs de Vries (@sudomati), Alexandros Athanasopulos (@Xaleee), Pavel Rubin (@pash7ka), Sebastian Galimberti Romano (@galimba), Daniel Berbesi (@berbex), Apostolos Mavropoulos (@ApostolosMavro), Barbara Marcano (@Barbara-Marcano), Daniel Ortega (@xdaniortega), "ERC-7208: On-Chain Data Containers," Ethereum Improvement Proposals, no. 7208, June 2023. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-7208.

Conclusion

This article covered ERC7208, a proposal to abstract and standardize on-chain data management by separating storage (Data Objects) from application logic (Data Managers) and providing a common access structure based on bytes32 Data Points and Data Indexes. I hope it helped clarify the mechanism.

If you have questions, feel free to reach out via Twitter DM.

Twitter @cardene777

I also publish on the following platforms.

https://chaldene.net/