# ERC-3643 ONCHAINID Permissioned RWA Venue KYC Architecture

> Implement ERC-3643 (T-REX) IdentityRegistry, TrustedIssuersRegistry, and modular Compliance hooks for MiFID II, ADGM, and MAS tokenized RWA secondary venues.

Canonical: https://nftvenueledger.com/protocols/erc-3643-onchain-id-permissioned-rwa-venue-whitelisting
Last updated: 2026-11-14T19:39:51.552Z

**Publication:** NFTVenue Ledger
**Category:** Mica Vara VASP Marketplace Licensing
**Published:** 2026-11-14T09:35:25.915Z
**Author:** Dr. Devon Kurosawa, PhD (PhD in Distributed Systems & Cryptographic Protocol Verification)
**Reviewer:** Not recorded

## Answer-first summary

Finalized Ethereum standard ERC-3643 embeds cryptographic ERC-734/735 ONCHAINID claim verification inside every ERC-20 transfer, preventing unauthorized wallets from settling tokenized RWA trades.

## Key takeaways

- ERC-3643 (T-REX) overrides ERC-20 transfer and transferFrom to verify ONCHAINID (ERC-734/735) cryptographic claims and Modular Compliance rules atomically before any state change.
- Zero personal data is stored on-chain: ONCHAINID contracts store only keccak256 claim hashes and ECDSA signatures issued by regulated Trusted Issuers, preserving GDPR compliance.
- Permissioned AMM pools and order-book settlement contracts can trade ERC-3643 tokens seamlessly once the pool contract itself is registered in the Identity Registry.
- Built-in recoveryAddress and freezePartialTokens functions satisfy MiFID II, CSDR, and Swiss DLT Act statutory mandates for lost-key recovery and court-ordered asset freezes.

## Related financial entities

- **EIP-712 Typed Structured Data Standard** (EIP-712) — product: Standard for hashing and signing of typed structured data as opposed to just arbitrary byte strings, providing human-readable authorization.
- **ERC-3643 Tokenized Securities Standard (T-REX)** (ERC-3643) — product: Suite of open-source smart contracts enabling the compliant issuance, management, and transfer of permissioned security tokens using on-chain identity.
- **ERC-5192 Minimal Soulbound Token Standard** (ERC-5192) — product: Standard interface for non-transferable NFTs implementing locking status indicators and transfer-rejection event triggers.

## Analysis

When tokenized sovereign Treasury bills, private-credit funds, or real-estate shares trade on public EVM blockchains, a single unrestricted `transfer(address to, uint256 amount)` to a sanctioned or retail non-accredited wallet can invalidate the issuer's Regulation D / Regulation S securities exemption or breach MiFID II / EU DLT Pilot Regime rules. **ERC-3643 (`T-REX — Token for Regulated Exchanges`)** solves this structural dilemma by overriding ERC-20 `transfer` and `transferFrom` at the smart-contract bytecode layer: every secondary DEX swap, OTC settlement, or peer-to-peer transfer synchronously queries an on-chain **Identity Registry** and **Modular Compliance Contract**—storing **zero cleartext PII on-chain** while cryptographically verifying `ECDSA` KYC/AML claims signed by regulated Trusted Issuers.

Within our [EU MiCA Title V, VARA & Travel Rule master guide](/protocols/eu-mica-title-v-casp-dubai-vara-travel-rule-guide-2026), the [ERC-3643 RWA standard](/tokens/erc-3643-rwa-standard) bridges institutional securities compliance across [Swiss FINMA DLT facilities](/protocols/swiss-finma-dlt-trading-facility-casp-custody-insolvency), [ADGM FSRA Digital Securities](/protocols/adgm-fsra-virtual-asset-mtf-vs-difc-dfsa-crypto-tokens), and [Singapore MAS Project Guardian](/protocols/singapore-mas-psa-dpt-statutory-trust-custody-controls) pools.

## Six-Contract Architecture of ERC-3643 & Zero-PII ONCHAINID Claims

Unlike naive address-whitelist mappings (`mapping(address => bool)`) that break whenever an institutional investor rotates MPC wallets or trades across multiple issuers, ERC-3643 decouples **investor identity (`ONCHAINID` implementing ERC-734 / ERC-735)** from wallet addresses across six interlocking smart contracts:

1. **ONCHAINID Smart Contract (`ERC-734 / ERC-735`)**: Each verified investor controls a dedicated identity contract holding hashed cryptographic attestations (`Claim = { topic, scheme, issuer, signature, dataHash, uri }`)—for example Topic `1` (KYC Passed), Topic `2` (AML/Sanctions Clean), Topic `7` (Accredited / Professional Investor). Alternative lightweight venues pair this with non-transferable [ERC-5192 Soulbound attestations](/tokens/erc-5192-soulbound-standard).
2. **Claim Topics Registry & Trusted Issuers Registry**: The RWA token specifies *which* claim topics are required and *which* licensed CASPs, banks, or KYC authorities (e.g., an [AMF](/frameworks/amf) or [FINMA](/frameworks/finma) regulated entity) are trusted to sign those claims.
3. **Identity Registry & Identity Registry Storage**: Maps a trader's active EVM wallet `0xUser` to their `ONCHAINID` address plus ISO-3166 numeric **Country Code** (`uint16`, e.g., `756` for Switzerland, `276` for Germany), shareable across dozens of distinct RWA tokens!
4. **Modular Compliance Contract**: Enforces stateful offering rules—such as *"Maximum 99 US Reg D 3(c)(1) holders"*, *"Minimum EUR 100,000 ticket size under EU Prospectus Regulation Art. 1(4)(d)"*, or *"12-month Reg S US flow-back lockup"*.

![ERC-3643 T-REX synchronous on-chain identity claim and compliance verification during DEX or OTC transfer](/api/figure?type=flow&title=ERC-3643%20Synchronous%20Transfer%20Verification%20Flow&subtitle=Atomic%20execution%20check%20inside%20transferFrom%28%29%20before%20any%20balance%20state%20mutation%20occurs&steps=1.%20DEX%20%2F%20OTC%20Match%3A%3APool%20or%20order%20book%20invokes%20token.transferFrom%28seller%2C%20buyer%2C%20qty%29%7C2.%20Identity%20Lookup%3A%3AIdentityRegistry.isVerified%28buyer%29%20checks%20ONCHAINID%20ECDSA%20claims%7C3.%20Stateful%20Rules%3A%3AModularCompliance.canTransfer%28%29%20checks%20country%20caps%20%26%20lockups%7C4.%20Balance%20%2B%20State%20Sync%3A%3AMutate%20balances%20%26%20call%20compliance.transferred%28%29%20atomically&metrics=ON-CHAIN%20PII%3A%3A0%20Bytes%3A%3AOnly%20keccak256%20claim%20hashes%20%2B%20ECDSA%20sigs%7CEXTRA%20GAS%20OVERHEAD%3A%3A%2B42k%20-%2068k%20Gas%3A%3APer%20ERC-3643%20compliant%20transfer%20on%20EVM%7CRECOVERY%20FUNCTION%3A%3AforcedTransfer%28%29%3A%3AAgent%20key-loss%20%26%20court-order%20recovery%7CEIP%20FINAL%20STATUS%3A%3AFinal%20Standard%3A%3AEthereum%20Standards%20Track%20ERC-3643)

## Integrating ERC-3643 with Permissioned AMMs & Uniswap v4 Hooks

Can an ERC-3643 security token trade inside an Automated Market Maker or order-book DEX (comparing permissionless venues in our [marketplaces directory](/marketplaces) like [Beethoven X](/marketplaces/beethoven-x) or [Astroport](/marketplaces/astroport) against institutional RWA pools)? Yes—provided **both** the human swapper **and** the **AMM Pool / Vault Smart Contract address itself** hold valid `ONCHAINID` registrations in the `IdentityRegistry`!

In modern architectures, institutional venues combine ERC-3643 token-level checks with `beforeSwap` and `beforeAddLiquidity` hooks verifying [EIP-712 signed session permits](/tokens/eip-712-typed-signature-standard) so an unverified wallet reverts cleanly at quote simulation before wasting gas, while preserving statutory Agent `forcedTransfer` and `recoveryAddress` capabilities required under MiFID II / CSDR and Swiss CO `Art. 973h` court-ordered key recovery.

## Token-Level Compliance Comparison: ERC-20 vs ERC-1404 vs ERC-3643

| Compliance Feature | Raw ERC-20 + UI Geo-Block | Simple Address Whitelist (`ERC-1404`) | ERC-3643 (`T-REX + ONCHAINID`) |
| :--- | :--- | :--- | :--- |
| Direct RPC Contract Bypass Protection | Zero (Anyone calls contract via RPC) | Protected on-chain | Protected on-chain across all venues |
| Cross-Issuer Portable KYC Reusability | None | None (Per-token manual whitelisting) | Shared `IdentityRegistryStorage` + Claims |
| Dynamic Claim Revocation (Sanctions Hit) | Impossible on-chain | Requires manual admin tx per token | Revoking 1 Claim freezes transfer across all tokens |
| Investor Cap & Country Lockup State | Impossible | Custom ad-hoc code | Standardized plug-and-play `ModularCompliance` |
| Lost Hardware Wallet Key Recovery | Permanent total loss | Requires full contract upgrade | Built-in `recoveryAddress` to new ONCHAINID wallet |

![Gas overhead and compliance coverage across ERC-20, ERC-1404, Soulbound ERC-5192, and ERC-3643 on L1 vs L2](/api/figure?type=bars&title=ERC-3643%20Execution%20Cost%20Across%20EVM%20Settlement%20Layers&subtitle=Total%20gas%20units%20and%20USD%20settlement%20cost%20per%20compliant%20secondary%20trade%20across%20L1%20and%20L2s&steps=Standard%20ERC-20%20Swap%3A%3A~52k%20transfer%20gas%3B%20zero%20on-chain%20regulatory%20enforcement%7CERC-3643%20%281%20Claim%20%2B%20Cap%29%3A%3A~108k%20transfer%20gas%20%28%240.85%20on%20L1%20%40%202.5%20gwei%3B%20%3C%240.01%20on%20L2%29%7CERC-3643%20%283%20Claims%20%2B%20Country%29%3A%3A~146k%20transfer%20gas%3B%20multi-topic%20ECDSA%20ecrecover%20loop%7CBatch%20Settlement%20%2820%20Fills%29%3A%3AERC-3643%20batchTransfer%20cuts%20per-fill%20gas%20by%20~34%25&metrics=L2%20TRANSFER%20COST%3A%3A%3C%20USD%200.008%3A%3ABase%20%2F%20Arbitrum%20%2F%20Polygon%20CDK%7CCLAIM%20REVOCATION%3A%3AInstant%20Global%3A%3A1%20tx%20invalidates%20across%20all%20RWA%20pools%7CMAX%20INVESTOR%20CAP%3A%3ADeterministic%3A%3AEnforces%20Reg%20D%2099%20%2F%202%2C000%20holder%20limits%7CPAUSABLE%20%2F%20FREEZE%3A%3AToken%20%2B%20Partial%3A%3AsetAddressFrozen%20%26%20freezePartialTokens)

## Quantitative Gas & Verification Cost Model for Multi-Claim ERC-3643 Transfers

Smart-contract architects bound `isVerified(address _userAddress)` gas scaling by minimizing redundant on-chain `ecrecover` loops across required claim topics `N_topics`:

```formula
ERC-3643 Compliant Transfer Gas Model (EVM Cancun/Prague):
 Gas_ERC3643 = Gas_Base_ERC20 (51,500)
 + Gas_IdentityRegistry_SLOADs (8,400)
 + N_topics * (Gas_Claim_SLOAD (6,300) + Gas_ECDSA_ecrecover (3,000) + Gas_Revocation_Check (2,600))
 + N_modules * Gas_Compliance_Hook_Avg (14,500)

Worked Institutional RWA Secondary Trade (2 Topics: KYC + Accredited; 2 Modules: Country_Restrict + Max_Holders):
 Gas_ERC3643 = 51,500 + 8,400 + 2 * (11,900) + 2 * (14,500) = 112,700 gas units
 On Ethereum Mainnet (BaseFee = 4.0 gwei, ETH = USD 3,100):
 Settlement_Cost_L1 = 112,700 * 4e-9 * 3,100 = USD 1.40 per compliant RWA settlement
 On Institutional L2 Rollup (L2 Gas + EIP-4844 Blob Share):
 Settlement_Cost_L2 = USD 0.0042 per compliant RWA settlement (99.7% cheaper than traditional CSD clearing!)
```

## Bridging Permissioned RWA Securities and MiCA Utility Venues

Return to our [EU MiCA Title V, VARA & Travel Rule hub](/protocols/eu-mica-title-v-casp-dubai-vara-travel-rule-guide-2026) or compare non-security NFT exemptions in [ESMA NFT fractionalization guidelines](/protocols/esma-rts-nft-fractionalization-large-series-exemption) inside the [MiCA, VARA & VASP licensing hub](/topics/mica-vara-vasp-marketplace-licensing).

## Frequently asked questions

### Does ERC-3643 expose investor names or passport numbers on public blockchains?

No. ERC-3643 stores zero cleartext PII on-chain; an investor ONCHAINID contract holds only cryptographic claim topic IDs, data hashes, and ECDSA signatures from approved KYC issuers.

### What happens if an ERC-3643 token holder loses their hardware wallet private key?

Unlike raw bearer ERC-20 tokens where lost keys mean permanent asset loss, ERC-3643 provides an authorized Agent recoveryAddress function that burns/migrates balances to the verified investor new ONCHAINID-linked wallet.

### Can ERC-3643 tokenized securities trade inside Automated Market Maker (AMM) liquidity pools?

Yes, provided the AMM pool contract address is registered as an eligible institutional vault in the Identity Registry and every liquidity provider or swapper interacting with the pool holds valid ONCHAINID claims.

### How does ERC-3643 handle immediate sanctions revocations across multiple RWA tokens?

When a Trusted Issuer revokes a single AML/sanctions claim signature or an Agent flags an Identity Registry entry, every ERC-3643 token sharing that registry immediately blocks transfers from that wallet in real time.


## Source URLs

- https://eips.ethereum.org/EIPS/eip-3643
- https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32022R0858
- https://www.esma.europa.eu/esmas-activities/digital-finance-and-innovation/dlt-pilot-regime

## Citation

- APA: Dr. Devon Kurosawa, PhD. (2026). ERC-3643 ONCHAINID Claims Registry: Permissioned RWA Venue KYC Transfer Gates. NFTVenue Ledger. https://nftvenueledger.com/protocols/erc-3643-onchain-id-permissioned-rwa-venue-whitelisting
- Canonical article: [ERC-3643 ONCHAINID Claims Registry: Permissioned RWA Venue KYC Transfer Gates](https://nftvenueledger.com/protocols/erc-3643-onchain-id-permissioned-rwa-venue-whitelisting)
- Site research index: [NFTVenue Ledger](https://nftvenueledger.com/llms-full.txt)
