ERC-5485: Interface for Legitimacy, Jurisdiction and Sovereignty


eip: 5485

title: Interface for Legitimacy, Jurisdiction and Sovereignty

description: <Description is one full (short) sentence>

author: Zainan Victor Zhou (@xinbenlv)

discussions-to:

status: Draft

type: Standards Track

category: ERC

created: 2022-08-17

requires: 165


Abstract

An interface for legitimacy, jurisdiction and sovereignty.

Motivation

Provide a way for compliant smart contracts to declare their legitimacy lineage, jurisdiction they observe, and sovereignty if they choose to not fall onto any jurisdiction.

For example. If ContractA gains legitimacy from ContractB, ContractB gains legitimacy from ContractC but ContractC doesn’t gain legitimacy from any one, ContractC is considered the “jurisdiction” that both ContractB and ContractA observe.

Both ContractA and ContractB MUST return address of ContractC as the result of jurisdiction.

A real world example is that ContractA represents an A company registered in a country,

ContractB represents a The Secretary of State of the country. The ContractC represents Supreme Court of the Country.

Another real example is a contract the declared “self-sovereignty” that doesn’t follow any jurisdiction.

This interface supports both cases, providing a way to allow smart contract to determine if they want to allow / prohibit interaction based

on the sovereignty.

For example A country might want to require any digital money service’s all smart contracts to observe their EIP-5485 jurisdiction before they are allow to operate money in their (real world) legal jurisdiction.

On the other hand, a DAO with strong decentralized ideology might choose to only inter-operate with EOA

or “self-sovereigned” smart contracts to avoid being affected by any countries.

Specification

The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in RFC 2119.

  1. Compliant contract MUSTS implement the following interface.

interface IERC5485 {

function legitimatedBy() public view returns (address);

function jurisdiction() public view returns (address);

}

  1. Suppose a compliant ContractA is deployed at address 0x<Contract_Address_A> gains its legitimacy from another contract or External Owned Account (EOA) at 0x<ADDRESS_B>, it shall return the 0x<ADDRESS_B> when being queried for legitimatedBy().

  2. A contract that matches ANY of the following cases is considered a “sovereign contract”:

  • Case 1: it does not implement this EIP

  • Case 2: it implements this EIP but return its own address.

  • Case 3: it implements this EIP but return a ZERO address.

  1. Any compliant contract MUST return its legitimacy sources chain up to the sovereign contract when queried by jurisdiction().

  2. If ContractA gains legitimacy from ContractB, ContractA MUST observe the ContractB’s order to ANY of the following

  • Order Type 1: execute a selfdestruct of ContractA
  1. If ContractA observes jurisdiction of ContractC (a sovereignty), ContractA MUST observe ContractC’s order to ANY the following
  • Order Type 1: execute a selfdestruct of ContractA

  • Order Type 2: execute ANY smart contract executable proposals as specified in EIP-5247

Rationale

Needs discussion.

Backwards Compatibility

Needs discussion.

Security Considerations

Needs discussion.

Copyright

Copyright and related rights waived via CC0.

this is obviously a government psyop, this EIP is not even coherent and should be rejected until an actual specification is met.

Also your title is intentionally inflammatory.

This is interesting but definitely has to be thought through more. I’m not sure if it’s appropriate for a contract that another gains legitimacy from to be able to issue a selfdestruct.

1 Like

Great Stuff, thanks for sharing the information

1 Like

selfdestruct is an example of the “most powerful thing” an account (contract) can do onto another account (contract). we can definitely consider other way to mandate. Basically, under jurisdiction means the agreement to obey rules of the jurisdiction and be panelized when not.

1 Like