ERC-5485 · Review · ERC · 2022-08-17
ERC-5485: Jurisdiction, Accreditation, and Enforcement
Proposed interface for a contract to declare which jurisdiction it observes, who accredited it, and how that authority can submit enforcement actions, or to declare itself self-sovereign.
What problem does it solve?
More and more contracts mirror real-world legal relationships: stablecoins with reserves and freezes, tokenized stocks and other real-world assets, regulated lending, private equity for qualified investors. Their rules depend on a specific legal authority, yet there is no standard way for a contract to say on chain which authority, whether that authority recognises it, or how a binding decision reaches it.
EIP-5485 defines a small interface for four ideas:
- Sovereignty: is the contract self-sovereign, or does it answer to a higher system?
- Jurisdiction: which authority's rules it chooses to observe (self-declared).
- Accreditation: which authority formally recognises it (requires the authority's acceptance).
- Enforcement: a standard entry point through which rulings or actions can be delivered.
With that, bridges, marketplaces or other contracts can check compatibility before interacting, restrict access by jurisdiction, or pick a dispute route automatically.
How it works
interface IERC5485 {
function sourceOfAccreditation() external view returns (address);
function jurisdiction() external view returns (address);
function imposeEnforcement(IERC5247Executables calldata proposal) external payable;
}
sourceOfAccreditation()returns the accrediting authority, oraddress(0)if none.jurisdiction()returns the system the contract observes, oraddress(0)for self-sovereign. It may equal the accreditation source.- Both should stay stable or change only through defined governance.
imposeEnforcementtakes a batch of calls in the ERC-5247 executable format (target, value, gasLimit, data). Implementations must define and document who may call it. They may execute it, queue it, partly honour it, ignore it, or just record it, and should emit an event or store state as proof the attempt happened. It ispayableso ETH can accompany calls with non-zero value.
A contract that does not implement the interface is treated as observing no jurisdiction: self-sovereign by default.
Sample code
A token that accepts enforcement only from its accrediting authority and records every proposal:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
struct IERC5247Executable { address target; uint256 value; uint256 gasLimit; bytes data; }
struct IERC5247Executables { IERC5247Executable[] executables; }
contract RegulatedToken {
address public immutable sourceOfAccreditation;
address public immutable jurisdiction;
event EnforcementReceived(address indexed from, uint256 actions);
constructor(address accreditor, address jurisdiction_) {
sourceOfAccreditation = accreditor;
jurisdiction = jurisdiction_;
}
function imposeEnforcement(IERC5247Executables calldata p) external payable {
require(msg.sender == sourceOfAccreditation, "not authorised");
emit EnforcementReceived(msg.sender, p.executables.length);
// Policy choice: record only; a real implementation might queue or execute.
}
}
Things to know
- Status: Review. The interface may still change.
- Declaring a jurisdiction is one-sided; only accreditation expresses the authority's acceptance, and the spec ties enforcement mainly to accreditation.
- Security: whoever can call
imposeEnforcementeffectively has power over the contract, much like an owner under ERC-173. If that authority's key or contract is compromised, so is yours. - The interface only records addresses and delivers proposals. Whether any of this has legal effect is outside the standard and needs legal review.