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 examines ERC-5485, which proposes a mechanism for expressing contract legitimacy, jurisdiction, and sovereignty.

This article translates, summarizes, and supplements the material linked below.

As of September 21, 2023, ERC-5485 was in the Draft stage. This is the historical status recorded in the original article.

Overview

Legitimacy Lineage

A smart contract can identify its origin and claimed legal foundation to express its legitimacy.

This describes which organization created the contract and which laws or regulations underpin it. For example, comments or documentation can describe its legitimacy and refer to relevant legal documents or certification authorities.

Jurisdiction Observed

A smart contract can identify the jurisdiction whose laws it claims to observe.

This describes the legal regulations with which a contract claims compliance. A contract can describe relevant conditions and provisions, declare compliance, and notify users of the applicable jurisdiction.

Sovereignty

A smart contract that claims autonomy from a particular jurisdiction can declare sovereignty.

Such a declaration expresses that the contract operates according to its own rules and conditions rather than recognizing a particular external regulatory authority. A contract could define its own rules and the conditions under which they apply.

Motivation

Smart contracts lack a standard way to specify their legitimacy lineage, jurisdiction, and sovereignty relationships explicitly.

Introducing a standard could provide the following benefits.

  • Support for regulators
    • Interoperability between smart contracts and regulatory bodies could be supported.
    • Regulators could manage compliance-related relationships and permit or restrict interoperability where applicable.
  • DAO declarations of self-sovereignty
    • Decentralized autonomous organizations (DAOs) could declare self-sovereignty.
    • They could explicitly state that they recognize their own authority rather than deriving it from another entity.
    • Contracts operating according to their own rules could express that relationship.

Consider the following scenarios.

  • ContractA, ContractB, and ContractC
    • ContractA represents Company A, registered in a particular country. ContractB represents that country's department of state, and ContractC represents its supreme court.
    • These contracts express legal relationships.
  • Self-sovereign smart contracts
    • Some smart contracts might declare self-sovereignty rather than recognize a particular jurisdiction.
    • The intent is to express operational independence from governmental or regulatory authorities.

The interface provides a way for contracts to permit or prohibit interactions based on sovereignty relationships. For example, a country might require a digital money service contract to comply with rules within its jurisdiction.

In jurisdictions such as the United States, token issuers may seek determinations or approvals from relevant regulatory bodies concerning securities or commodities classifications. The proposal envisages representing legitimacy derived from such authorities.

A decentralized DAO might instead choose to interoperate only with contracts declaring self-sovereignty.

The interface aims to help smart contracts express legal relationships, interoperability requirements, and sovereignty. A declaration alone does not establish legal validity or exemption from applicable law.

Specification

A conforming contract must implement the following interface.

javascript
interface IERC5485 {
    /// A function that returns the source of legitimacy in an address
    ///
    /// @returns address of EOA or contract that grants legitimacy status to this contract.
    /// See Specification #2 and #3 for more details.
    function sourceOfLegitimacy() public view returns (address);

    /// A function that returns the sovereign jurisdiction in an address
    ///
    /// @returns address of EOA or contract that *ultimately* grants legitimacy status (root of legitimacy lineage).
    /// See Specification #4 and #4 for more details.
    function jurisdiction() public view returns (address);
}

ERC-5485 concerns smart contract legitimacy and sovereignty. Its implementation is intended to improve transparency about relationships between contracts and provide a framework for representing legal requirements.

  1. The sourceOfLegitimacy() function

    Returns the address from which the smart contract derives its claimed legitimacy. This may be another smart contract or an externally owned account (EOA).

Suppose smart contract A is deployed at 0x<Contract_Address_A> and its legitimacy is recognized by another contract or EOA at 0x<ADDRESS_B>.

When sourceOfLegitimacy() is called, contract A must return 0x<ADDRESS_B>, indicating the source of its legitimacy.

  1. The jurisdiction() function

    Legitimacy can form a chain of relationships. This function returns the address of the associated sovereign jurisdiction.

    Suppose contract A derives legitimacy from contract B, and B derives legitimacy from contract C. If C does not derive legitimacy from another entity, C is regarded as sovereign. Contracts A and B must return C's address from jurisdiction(), indicating recognition of C's sovereignty.

  2. Sovereign smart contracts

    ERC-5485 defines circumstances under which a smart contract is regarded as sovereign.

    • Case 1: The contract does not implement the standard.
    • Case 2: It implements the standard, but jurisdiction() returns its own address.
    • Case 3: It implements the standard, but jurisdiction() returns the zero address.
  3. Obligation to follow instructions

    If contract A derives legitimacy from contract B and recognizes B's jurisdiction, A is expected to follow B's instructions. The original proposal discusses actions such as executing selfdestruct on B's instruction.

  4. Instructions from a sovereign smart contract

    If contract A recognizes contract C's sovereignty, A is also expected to follow C's instructions, such as executing a smart contract execution proposal specified by ERC-5247.

The standard aims to define relationships and instructions explicitly, improving transparency around legal requirements. Future discussions may address adding or removing legitimacy relationships.

ERC-5485 is intended as a step toward greater legal transparency and regulatory interoperability for decentralized applications.

Additional Notes

Further discussion is required.

Backward Compatibility

Further discussion is required.

Security Considerations

Further discussion is required.

Citation

Zainan Victor Zhou (@xinbenlv), "ERC-5485: Legitimacy, Jurisdiction and Sovereignty [DRAFT]," Ethereum Improvement Proposals, no. 5485, August 2022. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-5485.

Conclusion

ERC-5485 proposes a mechanism for expressing legitimacy, jurisdiction, and sovereignty relationships between smart contracts.

If you have questions, feel free to contact me on Twitter.

Twitter @cardene777

I also publish articles on the following platforms.

https://chaldene.net/