Writing date: 2026-05-05
Current implementation
| Capability | Code | Status |
|---|---|---|
| Persistent RWA state | pkg/rwa/state_manager.go, pkg/rwa/state_snapshot.go, pkg/rwa/leveldb_store.go | Implemented and tested |
| Enterprise RPC | pkg/rpc/rwa_rpc.go, pkg/rpc/rwa_enterprise_rpc_test.go | Full flow tested |
| Standard contract template | contracts/zorai-token-templates/ZORAIRWAToken.sol | Template implemented |
| Contract tests | contracts/hardhat/test/ZORAIRWAToken.test.ts | ERC20 logs and controls covered |
| ERC3643 precompile | pkg/evm/erc3643_precompiled.go | Signed low-level support |
| RWA compliance precompile | pkg/evm/rwa_precompiled.go | Signed admin support, not enough alone for production assets |
| Institutional modules | pkg/rwa/compliance.go, pkg/rwa/state_enterprise.go | Dynamic compliance, funds and RegTech tested |
Recommended enterprise flow
- Issuer onboarding and multisig binding.
- Asset registration with jurisdiction, document hash/URI and securities metadata.
- Verifier and valuer registration.
- Document vault records for legal files, audits, custody proofs and disclosures using hash/URI/version/revocation metadata.
- Investor KYC state recording without storing raw private files on-chain.
- Primary issuance through standard ERC3643/ERC20 contract assets.
- Secondary compliant transfer with KYC, freeze, blacklist, jurisdiction and limit checks.
- Dividend snapshots, payment proof records, redemption burn records and external settlement proof.
- Pre-trade compliance for DEX/OTC venues using
rwa_preTradeCheck. - Fund/SPV/tranche/NAV records and withholding-tax cashflow policy.
- External attestation and regulatory report export with data hash.
Verified test commands
go test ./cmd/xihud ./pkg/rpc ./pkg/rwa ./pkg/evm
go test -tags explorer ./cmd/explorer
cd contracts/hardhat && npm run compile && npm test -- --grep ZORAIRWAToken
Production RWA assets must be standard EVM contract assets that emit standard ERC20/ERC3643 events. RPC or precompile-local state alone is not enough for wallet, DEX and explorer compatibility. External legal review, custody, payment rails, KYC provider integration and independent security audits are still required before mainnet issuance.