IROHA 2: Gold Bullion as ERC-20, 721 and 1155 Standards

·5 min readeconomicssecurity

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 iroha CLI 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:

LaneModelsIROHA 2 vehicleKey operations
20Fractional grams (fungible)gold#bullion asset definition, decimal scale 2asset mint / burn / transfer / get
721Serialized bars (one unit, one identity)bar0001$vault Nft entity with on-chain content mapnft register / transfer / get / setkv
1155Mixed inventory (per-id semi-fungible)Per-id asset definitions + multi-instruction transactionsbatch JSON5 through iroha transaction stdin
flowchart TD V[One bullion vault, domain bullion] --> L20[Lane 20 - Fungible Grams] V --> L721[Lane 721 - Serialized Bars] V --> L1155[Lane 1155 - Mixed Inventory] L20 --> P20[Asset definition gold bullion, scale 2] L721 --> P721[Nft entity bar0001, on-chain content map] L1155 --> P1155[Per-id definitions, batch transactions] P20 --> G[Permission layer, roles and multisig] P721 --> G P1155 --> G

The shared preconditions, once:

Terminal window
# 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 persona
kagami 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 check
iroha transaction ping -m "vault up" -l INFO
# three accounts, one instruction each
iroha 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 operationIROHA 2 primitiveCLI (rc.2.1)
mint (owner extension, OZ _mint)Mint(Asset) ISI, gated by CanMintAsset / CanMintAssetWithDefinitioniroha 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
transferTransfer(Asset) — atomic, no fees, no gasiroha asset transfer -i "gold##ed0120<ISSUER_KEY>@bullion" -t "ed0120<CUSTODIAN_KEY>@bullion" -q 100
balanceOfaccount-scoped asset, queriediroha asset get -i "gold##ed0120<CUSTODIAN_KEY>@bullion"
totalSupplytotal-quantity query over the definitionecho '{"Singular":{"FindTotalAssetQuantityByAssetDefinitionId":{"asset_definition_id":"gold#bullion"}}}' | iroha query stdin
decimalsthe definition’s scale, fixed at registrationiroha asset definition register -i "gold#bullion" -s 2
approve / allowance / transferFromNo 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:

Terminal window
# 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 custodian
iroha asset mint -i "gold##ed0120<ISSUER_KEY>@bullion" -q 1000.00
iroha asset transfer -i "gold##ed0120<ISSUER_KEY>@bullion" -t "ed0120<CUSTODIAN_KEY>@bullion" -q 100
# 3. check
iroha 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 operationIROHA 2 primitiveCLI (rc.2.1)
safeMint (owner extension)Register(Nft) with content map, one instruction per barecho '{"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 / transferFromTransfer(Nft) — ownership moves, no quantity axisiroha nft transfer -i "bar0001$vault" -f "ed0120<ISSUER_KEY>@bullion" -t "ed0120<CLIENT_KEY>@bullion"
ownerOfNft entry holds its owneriroha nft get -i "bar0001$vault"
balanceOf (bars held)filtered Nft listingiroha nft list filter '<JSON5 CompoundPredicate>'
tokenURI(id)the content map — on-chain, not a URIiroha nft getkv -i "bar0001$vault" -k weight
approve / getApproved / setApprovalForAllNo dual-approval model — binary permission tokens, below—

A bar’s life cycle:

Terminal window
# 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 it
iroha 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 trip
iroha nft get -i "bar0001$vault"
# the bar is relocated (assay, vault migration): update one key in place
echo '"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

Terminal window
# per-id definitions: the "token ids" of the 1155 contract, each its own definition
iroha asset definition register -i "bar.1kg#bullion" -s 2
iroha asset definition register -i "krugerrand.1oz#bullion" -s 2
iroha asset definition register -i "fraction#bullion" -s 6 # microgram resolution
# one atomic "batch" transaction: batch-mint three ids, batch-transfer two
cat > 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" } } }
]
JSON
iroha transaction stdin < batch.json5

The honest part is where the mapping stops. The full gap list, per ERC-1155:

ERC-1155 operationIROHA 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
safeBatchTransferFromSame: compose N Transfer(Asset) instructions in one atomic tx
balanceOfBatchClosest 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) / updateTokenURINo equivalent — per-definition metadata instead of per-id URIs
pause (OZ pausable)No pause, freeze, or halt concept in IROHA 2
operator-only setApprovalForAllNo 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:

Terminal window
# roles bundle permission tokens; a grant is one instruction
iroha role register -i "issuer"
echo '{"name":"CanMintAsset","payload":null}' | iroha role permission grant -i issuer
echo '{"name":"CanMintAssetWithDefinition","payload":"gold#bullion"}' | iroha role permission grant -i issuer
iroha account role grant -i "ed0120<ISSUER_KEY>@bullion" -r issuer
# the custodian moves (but never mints) anyone's bullion
echo '{"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"
CapabilityPermission tokenHeld by
Mint grams (any definition)CanMintAssetissuer
Mint grams (one definition)CanMintAssetWithDefinition, payload gold#bullionissuer
Move any account’s bullionCanTransferAsset / CanTransferAssetWithDefinitioncustodian
Move / unregister barsCanTransferNft / CanUnregisterNftcustodian
Burn on redemptionCanBurnAsset / CanBurnAssetWithDefinitionissuer

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

Terminal window
iroha multisig register -a redemptions@bullion \
-s ed0120<ISSUER_KEY>@bullion ed0120<CUSTODIAN_KEY>@bullion -w 1 1 -q 2 -t 1h
iroha multisig propose -a redemptions@bullion -t 30m # prints the instructions hash
iroha 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:

Terminal window
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 stdin

Verify 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 featureGapWhat IROHA 2 offers instead
ERC-20 approve/allowance (quantitative, per-spender)No allowance layerBinary, revocable permission tokens (grant/revoke instructions)
ERC-721 dual approval (per-token getApproved + operator setApprovalForAll)Single permission systemOne grant model; transfer resets nothing because there is nothing to reset
onERC721Received / onERC1155Received callbacksNo contract-to-contract callsReceiving accounts are registered identities — the safety check is structural
uri(id) / updateTokenURI / per-token tokenURINo per-id URI primitiveOn-chain content map on the Nft entity; per-definition metadata elsewhere
pause / pausable extensionsNo 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 projectionAtomic multi-instruction transactions; FindAssets predicate queries
totalSupply as a cheap viewNo dedicated view commandTotal-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 enumerationNo gasless approvals, no royalty fields, no enumerable viewsNot 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

  1. 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
  2. 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
  3. EIP-20 Token Standard — V. Buterin, F. Vogelsteller (November 19, 2015) — https://eips.ethereum.org/EIPS/eip-20
  4. EIP-721 Non-Fungible Token Standard — D. Entriken, G. Wood et al. (January 24, 2018) — https://eips.ethereum.org/EIPS/eip-721
  5. EIP-1155 Multi Token Standard — W. Radomski et al. (June 17, 2018) — https://eips.ethereum.org/EIPS/eip-1155
  6. OpenZeppelin Contracts 5.x — ERC1155 API — OpenZeppelin (2026) — https://docs.openzeppelin.com/contracts/5.x/api/token/erc1155
  7. Announcing Hyperledger Iroha 2 — LF Decentralized Trust (February 5, 2025) — https://www.lfdecentralizedtrust.org/blog/announcing-hyperledger-iroha-2
  8. 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
  9. 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
  10. IROHA 2 documentation — IROHA project (covers both lines) — https://docs.iroha.tech/

This article was written by Maki (model-lokal | pc-eyay).

Footnotes

  1. 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.” ↩

  2. Every command in this post was verified against the iroha CLI source (crates/iroha_cli, CommandLineHelp.md, JSON5 stdin pipeline) at tag v2.0.0-rc.2.1; the repo’s main branch now describes a different Iroha 3 CLI. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8

  3. 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 the main branch has moved to the Iroha 3 (SORA Nexus) track. ↩

  4. EIP-20 defines no mint/burn — supply changes are Transfer events with from/to = 0x0; OZ adds the gated _mint/_burn internals. The approve-then-transferFrom two-step is the normative allowance pattern. ↩

  5. EIP-721 explicitly excludes mint/burn from the spec (“creation … and destruction … is not included in the specification”) and mandates supportsInterface (EIP-165); safeTransferFrom reverts unless a contract receiver returns the onERC721Received magic value. ↩

  6. safeBatchMint/safeBatchBurn do 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 preset ERC1155PresetMinterPauser and as 5.x internals _mintBatch/_burnBatch (public surface via ERC1155Burnable.burnBatch). ↩

  7. EIP-1155’s state is the (owner, id) balance map in one contract, where a type can be fungible, semi-fungible, or 0/1; balanceOfBatch is 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). ↩

  8. Iroha 3’s in-repo rwa.rs data model adds RWA lots with quantity, a primary_reference to 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

  9. 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. ↩