ERC-8546: Typed Regulatory Uniformity for Security Tokens


On a security token today, a court-ordered seizure into custody, a confiscation, a liquidation and a recovery can all reach the chain through one privileged call, forcedTransfer in ERC-7943 and ERC-3643. ERC-7943 chose that neutral name on purpose and leaves legal proofs to extensions, and ERC-8473, a new policy interface for ERC-7943 tokens, treats every forced transfer as FORCED by design. In law, though, they’re four different acts: a seizure can be released, while a confiscation ends the holder’s title for good. Anyone reading the chain afterwards (an exchange, a custodian, an indexer, an auditor) sees a ForcedTransfer and has to ask the issuer which act it was.

ERC-8319, an ERC standard in Draft status, draws on the published guidance of 15 authorities, from FATF and IOSCO to the FCA and MAS, to define six regulatory actions (FREEZE, SEIZE, CONFISCATE, LIQUIDATE, RESTRICT, RECOVER), each with a fixed reversibility, ownership effect and finality. The regulatory dynamics they induce are formally verified (machine-checked) for internal consistency in Isabelle/HOL, including that a confiscation is final and reachable from every other state, and that a seizure is never relaxed into a freeze:

It has no on-chain interface; when we opened its thread here, we left that to a later Standards Track proposal. This is that proposal.

ERC-TRUST runs each ERC-8319 action as its own typed command, and every applied command leaves a receipt that anyone can recompute. So a regulatory action on a token executes as the act ERC-8319 defines, and anyone can confirm from the chain alone which act ran, under which registered authority and in which case, without asking the issuer. Every conforming token records the same action the same way; that is the uniformity in the name.

Each command names the action, the authority and its epoch, the case it belongs to, the dependencies it was checked against, and a commitment to its provenance. Lifting a freeze or a restriction, or releasing a seizure, is a separate typed reversal (UNFREEZE, UNRESTRICT, RELEASE); a confiscation, a liquidation and a recovery have none. A command that’s rejected, or whose dependencies fail, reverts and changes nothing. The kernel’s abstract model is checked in Isabelle/HOL and mapped to the reference code through a ledger of the conditions its proofs depend on.

What changes, compared with today’s tokens

  • Exchanges, custodians and indexers get a receipt for every applied command, carrying the command’s fields, the dependency root it was checked under, and commitments to the state before and after. Every conforming endpoint (the token or adapter that runs the kernel) stores it and computes it with the same formula.
  • Issuers and transfer agents get an on-chain record that follows the legal act. A freeze comes off only through an UNFREEZE of that freeze. Seized tokens sit with the custodian, and ordinary transfers can’t spend them until RELEASE returns them to the declared prior holder or a disposition consumes them in full. A LIQUIDATE also commits to its settlement and proceeds, a RECOVER to an entitlement that can back only one recovery, and a confiscation, liquidation or recovery closes its case permanently.
  • Auditors and supervisors can tell a policy decision from an outage: a policy rejection (TrustRejected) and a missing or inconsistent dependency (TrustOperationalFailure) are different errors. On a native token each dependency is bound by its address, runtime code and configuration digest, so a swapped policy contract, or one whose reported configuration changes, makes commands fail instead of quietly changing what they’re checked against.
  • Operators and relayers get identifiers and nonces that work exactly once, a validity window, and one dependency root: any rebind makes every older command stale, rotating an authority voids commands for its old epoch, and a command built for one token or chain is invalid on any other.
  • Wallets and other applications find a conforming token through ERC-165 and read from trustProfile() whether it declares a Full or a Partial profile. A Full profile has to close every untyped privileged path, so that its receipts can describe the complete regulatory state.
  • Existing ERC-3643 tokens can adopt it without reissuance if the token can show that the adapter is its only Agent. ERC-3643 has no such view, so the reference governor requires a non-standard exclusiveAgent() before it seals the setup; frozen amounts and address freezes declared at the seal open FREEZE and RESTRICT cases. The adapter reports Partial: its import manifest verifies only the entries it lists, tokens received by an ordinary transfer stay transferable until the adapter next touches the account, and it is tested against clean-room fixtures, not a live deployment. Fresh deployments with a transfer hook can meet the stricter Verified Full profile.

How it works

Figure 1: Every command takes one path, from typed request to receipt.

The kernel interface, abridged (nine functions in full, ERC-165 id 0x2b020308):

interface IERCTrustKernel is IERC165 {
    error TrustRejected(bytes32 commandId, uint16 reason);
    error TrustOperationalFailure(bytes32 commandId, uint16 reason, bytes32 dependencyRef);

    function executeRegulatoryAction(TrustKernelTypes.ActionRequest calldata request) external returns (bytes32 receiptHash);
    function executeRegulatoryReversal(TrustKernelTypes.ReversalRequest calldata request) external returns (bytes32 receiptHash);
    function receipt(bytes32 commandId) external view returns (TrustKernelTypes.Receipt memory record);
    function caseRecord(bytes32 caseId) external view returns (TrustKernelTypes.CaseRecord memory record);
    function dependencyState() external view returns (bytes32 dependencyRoot, uint64 dependencyEpoch);
    function trustProfile() external view returns (TrustKernelTypes.ProfileDescriptor memory descriptor);
}

The main design choices:

  • Cases with a transition table. A case groups one regulatory matter, and its first command fixes its family: a FREEZE or RESTRICT overlay (a live effect that a later reversal removes), CUSTODY, or a terminal DISPOSITION. Sixteen numbered rules fix what a second command in the same case does, when commands from different matters conflict, and when a case can never be used again. Confiscating tokens in one case doesn’t clear a freeze that another case put on the same holder, and a later transfer that returns confiscated tokens is a new act, never a reversal.
  • A fixed validation order and no partial failure. A command reports its first failure in a fixed order, so a replayed or stale command is rejected before any rule that reads case state. Every revert leaves the endpoint exactly as it was: no key consumed, no record written, no balance changed, no log emitted.
  • An exact-use route for ERC-7943. On a native token the raw setFrozenTokens and forcedTransfer calls fail. A one-time ticket ties each sensitive call to one typed command, so the ERC-7943 surface stays in place without becoming a way around the kernel.

In the model, each case turns the ERC-8319 rules into effects on balances and records (d is a CONFISCATE, LIQUIDATE or RECOVER):

A release hands back exactly what was seized; a disposition closes its case and leaves every other matter’s freeze or restriction in place.

The normative surface stops at the interface, the wire format and observable behaviour: no required proxy, governance product, identity registry, policy language or storage layout, and no delegation or cancellation in the kernel (an authority can itself be a contract, such as a multisig, with its own delegation rules). This version covers fungible tokens. The standard confers no authority on anyone: a receipt shows that a command ran with given commitments, not that the order or settlement behind them is true.

How it fits with other standards

Standard What it covers Relationship to ERC-TRUST
ERC-8319 The legal meaning of the six actions, with no interface Required. Its meanings are what the typed actions carry out
ERC-7943 Frozen balances, forcedTransfer and transfer checks Required. A native endpoint implements it and ties each sensitive call to a typed command
ERC-3643 A permissioned token suite with identity, compliance, freeze, forced transfer and recovery Optional profiles: a Partial adapter over a sealed token, or a Verified Full hook profile for fresh deployments
ERC-8473 The policy an ERC-7943 token consults for every movement A different question. The policy decides whether a movement may happen; the receipt records which action it was
ERC-1450 A token operated by a registered transfer agent Separate. ERC-TRUST doesn’t replace it or infer actions from its function names

How we checked it

The ERC-TRUST abstract model builds on ERC-8319’s checked state machine: four of the six actions are its forward transition labels, the three reversals are its reverse labels, and RECOVER and LIQUIDATE are force transfers modelled in a separate layer, as in ERC-8319. As far as we can tell, ERC-TRUST would be the first security-token standard whose on-chain execution of regulatory actions comes with a formally verified (machine-checked) abstract model. On a registered set of executions, refinement is also checked down to the compiled bytecode.

In the model, one invariant wf over balances, custody backing, and the case and overlay records holds initially and is preserved by every ordinary transfer, authority or dependency change, failed command, and each of the six actions and three reversals, and a rejected or failed command leaves the state untouched:

An ordinary transfer also can’t spend frozen or seized tokens, and no regulatory action creates or destroys tokens. Combinations that usually turn into long threads, such as what remains after a FREEZE and then a SEIZE, are settled in the model. If you think a rule gives the wrong outcome, the most useful reply is a sequence of commands that shows it.

Figure 2: What each tool checks, and where each claim stops.

Check What it covers
Isabelle/HOL The kernel’s abstract model, 34 theories in two sessions; clean build with no oracle dependency, checked on every pull request
Obligation ledger 74 rows for the model conditions the proofs depend on, as identified by review; each closed row links its condition to the source that uses it, a positive test, a negative check and the compiled code that consumes it. 70 closed, 2 open for the runtime link, 2 not applicable
Registered executions 96 Isabelle-checked executions of the native token, the Partial adapter and the development hook adapter, related to the model on their exact compiled runtimes and recorded by hash (the proof sessions aren’t in the public package; other executions aren’t covered); reviewed internally, not a third-party audit
Foundry 102 tests, 9 of which run pinned upstream T-REX 4.1.3 bytecode through the hook adapter; 9 invariants over 1,152,000 calls
Mutation testing 121 of 121 declared faults killed
Kontrol 4 bounded symbolic proofs on the native runtime bytecode: the raw setFrozenTokens and forcedTransfer stay closed, an operational failure and a non-increasing freeze leave the checked state unchanged, and a LIQUIDATE moves the exact amount and emits its receipt last
Certora 4 rules on the ERC-3643 Partial adapter runtime, bounded in scope: the profile never reports Full, the restriction check is exact, and subject and role observations read the token’s actual restriction flags
Deterministic build The native token, Partial adapter and governor runtimes rebuild byte-identically in two isolated clean builds and match a pinned-compiler replay (reproducibility, not compiler correctness or deployment identity)
Reproduction 23 conformance vectors with 401 assertions, reproduced by a separate program written from the specification and the vectors alone; this checks the wire format, not a second implementation

There’s no single theorem yet that the compiled bytecode implements the model for every execution. The repository labels the current state “mapped implementation evidence; end-to-end refinement incomplete” and states, check by check, what each result does and doesn’t establish. The method was discussed on ethresear.ch in Can We Verify an ERC, Not Just Its Code? and written up in arXiv:2608.29134. None of this evidence is normative.

Where we’d like feedback

  1. Profiles. ERC-7943 stays required of a native token. Should the deployment profiles move to a separate conformance document?
  2. Frozen amounts under ERC-7943. A SEIZE or disposition can move tokens counted as frozen while the freeze stays with its own case, and getFrozenTokens is capped at the balance, where ERC-7943 describes the absolute amount. We treat a conforming endpoint as ERC-7943’s multi-party context and depart from its recommendation not to bypass frozen constraints; a single-party deployment would not meet ERC-7943 here. Is that acceptable, or how should the moved frozen tokens be reported?
  3. Rejection versus failure. Is the line between a policy rejection and an operational failure, and the reason classes behind it, clear enough for relayers and monitoring systems?
  4. The receipt. Which of the seventeen fields do you need to compare implementations, and is anything missing for independent reconstruction?
  5. Staleness. Is one dependency root with a global epoch the right unit for invalidating prepared commands, or should some profiles bind per-dependency epochs?
  6. ERC-8473. It already lets a token pass data with a FORCED movement (a reference to a legal order is its own example). Should a token that implements both hand the typed action to its policy that way, or should the two stay independent? Its rule 13, which lowers the frozen amount on such a movement, is where the two currently differ.
  7. Legal reading. Does any typed action narrow or stretch the meaning ERC-8319 gives it? For example, RESTRICT here turns off a holder’s ordinary sends and receives, while ERC-8319 describes a configurable restriction on transferability.
  8. Concurrent orders. A holder can carry only one live freeze across all cases, so a second order’s freeze has to join the first case, where it amends the head, or wait until that freeze is lifted. Does that match how concurrent orders against one holder are handled?
  9. Privacy. A receipt and its commitments show that an address or a case is under regulatory action. Is the guidance in Security Considerations enough for deployments with confidentiality or tipping-off duties?

If you run an ERC-7943 or ERC-3643 token, please tell us whether the exact-use route and the sealed adapter would work for your deployment. That’s the part we can’t answer on our own.

Links

Unaudited. Not for production. No deployment, proxy, migration, or external legal/factual truth is verified.

The proposal text is CC0, and the reference package is open source under the BSD-3-Clause license. Corrections are welcome.

Coming at this from the opposite end of the design space (an immutable, no-admin vault where the whole point is that no privileged path exists), the part worth singling out isn’t the proof count — it’s the obligation ledger. 74 rows each tying a model condition to its source, a positive test, a negative check, and the consuming code is the artifact other “formally verified” proposals should be copying, and the fact that you’re keeping the two runtime-link rows visibly open is more reassuring than a green checkmark would be.

A few things from having lived in the model-vs-bytecode gap:

1. Lead Security Considerations with the bytecode proofs, not the Isabelle session. You’re explicit that the evidence is non-normative and that there’s “no single theorem that the compiled bytecode implements the model” — good. But a reader skims “machine-checked, 34 theories” and assumes the deployed contract inherits it. The four Kontrol bounded proofs on the native runtime (raw setFrozenTokens/forcedTransfer stay closed; LIQUIDATE moves the exact amount and emits last) are the load-bearing ones for a security reviewer, because they’re on bytecode. I’d put those first and the model second.

2. “Full profile = close every untyped privileged path” collapses to one chokepoint: the exact-use ticket. On a native endpoint the Full guarantee is really “the one-time ticket binding to the ERC-7943 surface is airtight.” Two questions that decide whether that holds:

  • Is the ticket bound to the pre-state / dependency root it was checked under, or only to the command id? You say a rebind makes older commands stale — does an already-minted ticket for a sensitive call inherit that same staleness, or can a ticket minted under root R still be spent after a rebind to R’? If the latter, the global-epoch invalidation protects commands but not the one call it most needs to.
  • Can a ticket outlive its command across a reorg or delayed inclusion?

3. On your staleness question — keep the single global root normative. It’s the right default precisely because the failure mode is legible: any rebind voids everything, with no partial validity to reason about. Per-dependency epochs buy availability at the cost of that legibility, which is the wrong trade for actions whose entire value is auditability. Leave per-dependency binding to a profile that has to justify it.

And on privacy: a receipt proving “this address is under a regulatory action” is, in some jurisdictions, the exact tipping-off the underlying order forbids. Commitments hide the contents, but the existence of a case record at a known address is the leak. I’d state plainly in Security Considerations that a Full profile is incompatible with confidentiality/tipping-off duties unless the subject address is itself unlinkable.

1 Like

Thanks, @K0INI, for going through the evidence this closely. The ERC text is now up as a PR and covers most of these, so here are pointers:

  1. Security Considerations: the section is organized by risk rather than by evidence, and its last subsection, Deployment and audit boundary, says the machine-checked evidence doesn’t carry over to a deployment or another implementation. The evidence itself is in the non-normative Reference Implementation section.
  2. The ticket: see ERC-7943 views and exact-use route and _consumeRoute. It’s bound to the command, its exact arguments, and the dependency root and epoch at authorization, and in the reference token it only lives inside one non-reentrant call. So a rebind, a reorg or a late inclusion can’t leave a live ticket behind.
  3. Staleness: agreed, and that’s how it’s drafted (One dependency root and global epoch).
  4. Privacy: Receipt limitations and privacy says a receipt can reveal that an address is under regulatory action and asks for tipping-off duties to be assessed first. Any ERC-7943 freeze or forced transfer shows the same thing, so it isn’t specific to Full. Unlinkability is the right lever, but it lives in the identity layer rather than the kernel.

(post deleted by author)