TL;DR: ERC-20, 721 and 1155 are not smart contracts on IROHA 2 — they are asset-modeling patterns over its primitives. A bullion vault’s fractional grams map to fungible asset definitions with free decimal scale, serialized bars map to IROHA 2’s first-class Nft entity with an on-chain content map (the sharp divergence from ERC-721’s off-chain tokenURI), and mixed semi-fungible inventory maps to per-id asset definitions plus multi-instruction transactions, with an honest gap list (no allowance layer, no per-id URI, no pause). Every operation comes with a copy-pasteable
irohaCLI command.
Gold’s tokenized side of the ledger is a public-chain story: Tether’s XAUt and Paxos’ PAXG run as serial-numbered ERC-20s, and the mapping of that metal onto the crypto stack was mapped in detail last month. But a bullion custodian — the vault, the assayer, the redemption desk — rarely wants a public chain. It wants a permissioned ledger where every instruction is gated, where the bar’s spec lives with the bar, and where redemption is a co-signed act. That is exactly the shape Hyperledger’s IROHA 2 is built for: a ledger “designed for permissioned or consortium blockchains” whose README lists creating “custom fungible assets, such as currencies, gold, and others” as a feature.1
The question this post answers is whether the three Ethereum token standards a bullion desk would recognize — ERC-20 for fractional grams, ERC-721 for serialized bars, ERC-1155 for mixed inventory — can be stated on IROHA 2, and if so, what each operation looks like from the iroha CLI. The answer: all three map, one maps better than anyone expects, one maps with a documented gap list, and the permissioning layer is the part ERC users never get.2
One Vault, Three Lanes
The scenario: one IROHA 2 network, one domain named bullion, three accounts — an issuer (the bullion house, mints and burns), a custodian (vault operations, moves metal), and a client (buys, sells, redeems). Each account ID embeds its own signing key — ed0120<ISSUER_KEY>@bullion — so three keypairs are generated up front with kagami crypto.2
The three lanes model the same metal three ways:
| Lane | Models | IROHA 2 vehicle | Key operations |
|---|---|---|---|
| 20 | Fractional grams (fungible) | gold#bullion asset definition, decimal scale 2 | asset mint / burn / transfer / get |
| 721 | Serialized bars (one unit, one identity) | bar0001$vault Nft entity with on-chain content map | nft register / transfer / get / setkv |
| 1155 | Mixed inventory (per-id semi-fungible) | Per-id asset definitions + multi-instruction transactions | batch JSON5 through iroha transaction stdin |
The shared preconditions, once:
# keypairs + signed genesis (there is no IROHA-1-style `create genesis-block`; that's IROHA 1)kagami crypto -j # -> {"public_key":"ed0120…","private_key":"802620…"}, once per personakagami genesis generate --executor executor.wasm --wasm-dir . --genesis-public-key ed0120<GENESIS_KEY>kagami genesis sign genesis.json --public-key ed0120<G_PUB> --private-key 802620<G_PRIV> --out-file genesis.signed.scale# irohad -c config.toml # config's [genesis] section loads genesis.signed.scale
# boot checkiroha transaction ping -m "vault up" -l INFO
# three accounts, one instruction eachiroha account register -i "ed0120<ISSUER_KEY>@bullion"iroha account register -i "ed0120<CUSTODIAN_KEY>@bullion"iroha account register -i "ed0120<CLIENT_KEY>@bullion"Commands as of v2.0.0-rc.2.1.
Lane 20 — Fungible Grams
ERC-20’s essence is a per-account balance over one token, with owner-gated supply changes bolted on. IROHA 2’s equivalent is the fungible asset definition: one definition gold#bullion per domain, registered with a decimal scale — and since rc.2.0 every asset definition is numeric, so there is no type flag to fiddle with.2
| ERC-20 operation | IROHA 2 primitive | CLI (rc.2.1) |
|---|---|---|
mint (owner extension, OZ _mint) | Mint(Asset) ISI, gated by CanMintAsset / CanMintAssetWithDefinition | iroha asset mint -i "gold##ed0120<ISSUER_KEY>@bullion" -q 1234.56 |
burn (OZ _burn) | Burn(Asset) | iroha asset burn -i "gold##ed0120<ISSUER_KEY>@bullion" -q 12.5 |
transfer | Transfer(Asset) — atomic, no fees, no gas | iroha asset transfer -i "gold##ed0120<ISSUER_KEY>@bullion" -t "ed0120<CUSTODIAN_KEY>@bullion" -q 100 |
balanceOf | account-scoped asset, queried | iroha asset get -i "gold##ed0120<CUSTODIAN_KEY>@bullion" |
totalSupply | total-quantity query over the definition | echo '{"Singular":{"FindTotalAssetQuantityByAssetDefinitionId":{"asset_definition_id":"gold#bullion"}}}' | iroha query stdin |
decimals | the definition’s scale, fixed at registration | iroha asset definition register -i "gold#bullion" -s 2 |
approve / allowance / transferFrom | No equivalent — permission layer instead, see below | — |
The ## between the asset name and the account is IROHA 2’s account-scoped balance ID scheme: asset##account@domain.2 A worked sequence:
# 1. define: grams at 2 decimals (0.01 g resolution). -s accepts 0 to 28.iroha asset definition register -i "gold#bullion" -s 2# for a fixed-supply issuance (say, 100 kg of vaulted bullion, minted once):iroha asset definition register -i "gold.fixed#bullion" -s 2 -m # -m = --mint-once
# 2. the issuer mints 1,000 kg, transfers 100 kg to the custodianiroha asset mint -i "gold##ed0120<ISSUER_KEY>@bullion" -q 1000.00iroha asset transfer -i "gold##ed0120<ISSUER_KEY>@bullion" -t "ed0120<CUSTODIAN_KEY>@bullion" -q 100
# 3. checkiroha asset get -i "gold##ed0120<CUSTODIAN_KEY>@bullion"Two ERC-20 details that quietly change. First, the worked examples use scale 2 for readable numbers; real gram-token conventions (Kinesis’ KAU, Tether’s XAUt) sit closer to scale 4–6, and the issuer may pick anything from 0 to 28 at registration. Second, ERC-20’s approve/transferFrom two-step allowance — the per-spender, quantitative authorization — has no IROHA 2 counterpart; authorization there is a revocable permission token, which is a different animal and is the custodian layer’s job.4
Commands as of v2.0.0-rc.2.1.
Lane 721 — Serialized Bars
This is the lane that surprises. ERC-721 treats each token as a unique integer ID whose metadata hangs off-chain: tokenURI(id) points at IPFS JSON, and custody of the token and custody of its metadata are separate problems. IROHA 2’s rc.2.x split the old fungible/non-fungible asset types into a separate first-class Nft entity — and the bar’s entire spec rides on-chain in the NFT’s content map, registered with the bar and updatable in place.2 Custody of metadata equals custody of the asset.
| ERC-721 operation | IROHA 2 primitive | CLI (rc.2.1) |
|---|---|---|
safeMint (owner extension) | Register(Nft) with content map, one instruction per bar | echo '{"serial":"GB-0001","weight_g":"1200.5","purity":"0.99999","vault":"VAULT-07"}' | iroha nft register -i "bar0001$vault" |
safeBurn (OZ ERC721Burnable) | Unregister(Nft) | iroha nft unregister -i "bar0001$vault" |
safeTransferFrom / transferFrom | Transfer(Nft) — ownership moves, no quantity axis | iroha nft transfer -i "bar0001$vault" -f "ed0120<ISSUER_KEY>@bullion" -t "ed0120<CLIENT_KEY>@bullion" |
ownerOf | Nft entry holds its owner | iroha nft get -i "bar0001$vault" |
balanceOf (bars held) | filtered Nft listing | iroha nft list filter '<JSON5 CompoundPredicate>' |
tokenURI(id) | the content map — on-chain, not a URI | iroha nft getkv -i "bar0001$vault" -k weight |
approve / getApproved / setApprovalForAll | No dual-approval model — binary permission tokens, below | — |
A bar’s life cycle:
# mint = register the bar with its full spec (JSON5 on stdin, at register time)echo '{"serial":"GB-0001","weight_g":"1200.5","purity":"0.99999","vault":"VAULT-07"}' | iroha nft register -i "bar0001$vault"
# move it to a client; the content map moves with itiroha nft transfer -i "bar0001$vault" -f "ed0120<ISSUER_KEY>@bullion" -t "ed0120<CLIENT_KEY>@bullion"
# the bar is inspected — whole spec in one read, no IPFS round tripiroha nft get -i "bar0001$vault"
# the bar is relocated (assay, vault migration): update one key in placeecho '"VAULT-08"' | iroha nft setkv -i "bar0001$vault" -k vault
# burn = unregister (the custodian's redemption act)iroha nft unregister -i "bar0001$vault"The one ERC-721 property with no IROHA 2 echo is the receiver side: safeTransferFrom’s onERC721Received callback exists because tokens can land in other contracts. On a permissioned ledger the receiving account is a known, registered identity, so the safety check the callback provides is structural rather than programmatic.5
Commands as of v2.0.0-rc.2.1.
Lane 1155 — Mixed Inventory
ERC-1155 packs many token types into one contract — a (owner, id) → balance map where id 1 might be 1 kg bars, id 2 Krugerrands, id 3 fractional grams, and the types can be fungible, semi-fungible, or 0/1 all at once. IROHA 2 has no multi-id namespace: the mapping is one asset definition per token id, and “batch” is a multi-instruction transaction — one atomic all-or-nothing JSON5 array through iroha transaction stdin, bounded by max_instructions (default 4096 in the shipped genesis parameters).2
# per-id definitions: the "token ids" of the 1155 contract, each its own definitioniroha asset definition register -i "bar.1kg#bullion" -s 2iroha asset definition register -i "krugerrand.1oz#bullion" -s 2iroha asset definition register -i "fraction#bullion" -s 6 # microgram resolution
# one atomic "batch" transaction: batch-mint three ids, batch-transfer twocat > batch.json5 <<'JSON'[ { "Mint": { "Asset": { "object": "10.00", "destination": "krugerrand.1oz##ed0120<ISSUER_KEY>@bullion" } } }, { "Mint": { "Asset": { "object": "5.00", "destination": "bar.1kg##ed0120<ISSUER_KEY>@bullion" } } }, { "Mint": { "Asset": { "object": "250000.000000", "destination": "fraction##ed0120<ISSUER_KEY>@bullion" } } }, { "Transfer": { "Asset": { "source": "bar.1kg##ed0120<ISSUER_KEY>@bullion", "object": "1.00", "destination": "ed0120<CLIENT_KEY>@bullion" } } }, { "Transfer": { "Asset": { "source": "krugerrand.1oz##ed0120<ISSUER_KEY>@bullion", "object": "2.00", "destination": "ed0120<CLIENT_KEY>@bullion" } } }]JSONiroha transaction stdin < batch.json5The honest part is where the mapping stops. The full gap list, per ERC-1155:
| ERC-1155 operation | IROHA 2 status |
|---|---|
safeBatchMint / safeBatchBurn (OZ preset / 5.x internals — not in the EIP itself) | Multi-instruction transaction above — but it is a transaction-level mechanism, not a token-standard feature6 |
safeBatchTransferFrom | Same: compose N Transfer(Asset) instructions in one atomic tx |
balanceOfBatch | Closest equivalent: a FindAssets predicate query via iroha query stdin — with a divergence: it is a server-side filter over all matching balances, not a per-account × per-id projection |
uri(id) / updateTokenURI | No equivalent — per-definition metadata instead of per-id URIs |
pause (OZ pausable) | No pause, freeze, or halt concept in IROHA 2 |
operator-only setApprovalForAll | No per-id scoping; permission tokens are binary and global to the grant |
That list is not an afterthought: it is the lane’s thesis. Where ERC-1155 is one deployment with an id dimension, IROHA 2 is many definitions under one permission model — and the batch primitive it offers is atomicity, not the multi-asset update shape of the EIP.7
Commands as of v2.0.0-rc.2.1.
The Permissioned Custodian
The ERC standards are permissionless by construction — anyone can call transfer, and “only the owner may mint” is an extension (OZ Ownable/Minter presets) layered on top. IROHA 2 inverts the default: every instruction is gated by a permission token emitted by the WASM executor, and the ERC-20-style owner pattern is the baseline. The custodian model is roles plus grants:
# roles bundle permission tokens; a grant is one instructioniroha role register -i "issuer"echo '{"name":"CanMintAsset","payload":null}' | iroha role permission grant -i issuerecho '{"name":"CanMintAssetWithDefinition","payload":"gold#bullion"}' | iroha role permission grant -i issueriroha account role grant -i "ed0120<ISSUER_KEY>@bullion" -r issuer
# the custodian moves (but never mints) anyone's bullionecho '{"name":"CanTransferAsset","payload":null}' | iroha account permission grant -i "ed0120<CUSTODIAN_KEY>@bullion"echo '{"name":"CanTransferNft","payload":null}' | iroha account permission grant -i "ed0120<CUSTODIAN_KEY>@bullion"| Capability | Permission token | Held by |
|---|---|---|
| Mint grams (any definition) | CanMintAsset | issuer |
| Mint grams (one definition) | CanMintAssetWithDefinition, payload gold#bullion | issuer |
| Move any account’s bullion | CanTransferAsset / CanTransferAssetWithDefinition | custodian |
| Move / unregister bars | CanTransferNft / CanUnregisterNft | custodian |
| Burn on redemption | CanBurnAsset / CanBurnAssetWithDefinition | issuer |
For the redemption desk — the one act where the metal physically leaves the vault — rc.2.1’s CLI ships native m-of-n multisig, which is what the whitepaper’s “two tellers or one manager” pattern looks like in one command each:2
iroha multisig register -a redemptions@bullion \ -s ed0120<ISSUER_KEY>@bullion ed0120<CUSTODIAN_KEY>@bullion -w 1 1 -q 2 -t 1hiroha multisig propose -a redemptions@bullion -t 30m # prints the instructions hashiroha multisig approve -a redemptions@bullion -i <instructions-hash>The fourth policy lever, triggers (event-driven instruction sequences — e.g. a nightly settlement mint), is reachable in rc.2.1 only through the JSON path, because iroha trigger register is still a stub in this release:
echo '{"Register":{"Trigger":{"id":"nightly_settlement","action":{"executable":{"Instructions":[{"Log":{"level":"Info","msg":"settle"}}]},"repeats":{"Exactly":30},"authority":"ed0120<ISSUER_KEY>@bullion","filter":{"BlockCommitEvent":{}}}}}}' | iroha transaction stdinVerify the exact trigger-filter sub-shape against kagami schema before trusting it to a production vault.
What Does Not Map
The consolidated list — everything in the three standards that has no IROHA 2 echo, in descending order of how much it bites a bullion desk:
| ERC feature | Gap | What IROHA 2 offers instead |
|---|---|---|
ERC-20 approve/allowance (quantitative, per-spender) | No allowance layer | Binary, revocable permission tokens (grant/revoke instructions) |
ERC-721 dual approval (per-token getApproved + operator setApprovalForAll) | Single permission system | One grant model; transfer resets nothing because there is nothing to reset |
onERC721Received / onERC1155Received callbacks | No contract-to-contract calls | Receiving accounts are registered identities — the safety check is structural |
uri(id) / updateTokenURI / per-token tokenURI | No per-id URI primitive | On-chain content map on the Nft entity; per-definition metadata elsewhere |
pause / pausable extensions | No pause, freeze, or halt | — (Iroha 3’s upcoming RWA lots add freeze/hold/force-transfer; out of scope here)8 |
safeBatchTransferFrom / balanceOfBatch (as a primitive) | No multi-id, no per-account × per-id projection | Atomic multi-instruction transactions; FindAssets predicate queries |
totalSupply as a cheap view | No dedicated view command | Total-quantity query via iroha query stdin (query name pinned to the researched tag — confirm with kagami schema) |
EIP-2612 permit, EIP-2981 royalties, EIP-5343 enumeration | No gasless approvals, no royalty fields, no enumerable views | Not applicable on a permissioned ledger |
Two infrastructure-level gaps worth a line each. There is no asset-alias primitive (an IROHA 1 feature that did not survive the rewrite — canonical name#domain names only), and no --wait commit polling: confirmation is iroha transaction get -H <hash> or the iroha events transaction stream.2
And the forward pointer: the first native RWA-lot data model — provenance parents, holds, freeze, force-transfer — ships in Iroha 3, not IROHA 2. Every gap above except the permissioning inversion is a feature somebody has already drafted on the next-gen track.8 Until then, a gold-bullion registry on IROHA 2 is a pattern, not a documented case — no official IROHA 2 tokenized-gold example exists; the project’s documented deployments are CBDC and sovereign-bond PoCs (Digital Kina, Bokolo Cash, Palau Invest), not bullion.9
References
- Hyperledger IROHA 2 repository (tag v2.0.0-rc.2.1) — Hyperledger IROHA, iroha_cli / iroha_kagami / data-model source — https://github.com/hyperledger-iroha/iroha
- IROHA 2 CLI command reference — IROHA 2 project, auto-generated from the CLI crate (June 5, 2025) — https://raw.githubusercontent.com/hyperledger-iroha/iroha/v2.0.0-rc.2.1/crates/iroha_cli/CommandLineHelp.md
- EIP-20 Token Standard — V. Buterin, F. Vogelsteller (November 19, 2015) — https://eips.ethereum.org/EIPS/eip-20
- EIP-721 Non-Fungible Token Standard — D. Entriken, G. Wood et al. (January 24, 2018) — https://eips.ethereum.org/EIPS/eip-721
- EIP-1155 Multi Token Standard — W. Radomski et al. (June 17, 2018) — https://eips.ethereum.org/EIPS/eip-1155
- OpenZeppelin Contracts 5.x — ERC1155 API — OpenZeppelin (2026) — https://docs.openzeppelin.com/contracts/5.x/api/token/erc1155
- Announcing Hyperledger Iroha 2 — LF Decentralized Trust (February 5, 2025) — https://www.lfdecentralizedtrust.org/blog/announcing-hyperledger-iroha-2
- IROHA 2 whitepaper — Hyperledger Iroha (in-repo,
docs/source/iroha_2_whitepaper.md) — https://github.com/hyperledger-iroha/iroha/blob/v2.0.0-rc.2.1/docs/source/iroha_2_whitepaper.md - Iroha 3 RWA data model (
rwa.rs) — IROHA 2 repo main branch — https://github.com/hyperledger-iroha/iroha/blob/main/crates/iroha_data_model/src/rwa.rs - IROHA 2 documentation — IROHA project (covers both lines) — https://docs.iroha.tech/
This article was written by Maki (model-lokal | pc-eyay).
Footnotes
-
The IROHA 2 tree’s README lists “create and manage custom fungible assets, such as currencies, gold, and others” as a feature; the whitepaper’s preface describes IROHA 2 as built for “permissioned or consortium blockchains.” ↩
-
Every command in this post was verified against the
irohaCLI source (crates/iroha_cli,CommandLineHelp.md, JSON5 stdin pipeline) at tagv2.0.0-rc.2.1; the repo’smainbranch now describes a different Iroha 3 CLI. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 -
The release index tops out at
v2.0.0-rc.2.1(June 5, 2025) for the 2.x line; a 2026 mobile-SDK-only patch exists, and themainbranch has moved to the Iroha 3 (SORA Nexus) track. ↩ -
EIP-20 defines no mint/burn — supply changes are
Transferevents withfrom/to= 0x0; OZ adds the gated_mint/_burninternals. Theapprove-then-transferFromtwo-step is the normative allowance pattern. ↩ -
EIP-721 explicitly excludes mint/burn from the spec (“creation … and destruction … is not included in the specification”) and mandates
supportsInterface(EIP-165);safeTransferFromreverts unless a contract receiver returns theonERC721Receivedmagic value. ↩ -
safeBatchMint/safeBatchBurndo not exist in EIP-1155 at all — the EIP mandates only transfers, views, approvals, events, and an optional URI extension. In OpenZeppelin they live in the v3 presetERC1155PresetMinterPauserand as 5.x internals_mintBatch/_burnBatch(public surface viaERC1155Burnable.burnBatch). ↩ -
EIP-1155’s state is the
(owner, id)balance map in one contract, where a type can be fungible, semi-fungible, or 0/1;balanceOfBatchis the only multi-pair view, and approval is operator-only across all ids (the EIP points to ERC-1761, a draft, for per-id scoping). ↩ -
Iroha 3’s in-repo
rwa.rsdata model adds RWA lots with quantity, aprimary_referenceto off-chain certificates, provenance parents, and control-policy toggles (freeze, hold, force-transfer, redeem) plus controller accounts — the closest thing in the project to native gold-bullion semantics. It is dev-track, not IROHA 2. ↩ ↩2 -
LF Decentralized Trust’s launch announcement (February 5, 2025) and the TAC 2025 annual review list the documented IROHA 2 deployments: Papua New Guinea’s Digital Kina CBDC PoC, Solomon Islands’ Bokolo Cash, Palau Invest digital savings bonds, and the SORA “Fujiwara” testnet. No tokenized-gold deployment is documented. ↩


