Description
CAIP-2
Suggested namespace: monero
.
There is one mainnet and two public testnets: https://monerodocs.org/infrastructure/networks/. These networks don't have universally-agreed chain IDs. Most of the time people use labels mainnet
, stagenet
and testnet
, and the software returns these labels in some RPC responses, for example here:
https://www.getmonero.org/resources/developer-guides/daemon-rpc.html#get_info
nettype - string; Network type (one of mainnet, stagenet or testnet).
Internally, software defines NETWORK_ID
constants for each network, but I don't know where these identifiers are used:
https://github.com/monero-project/monero/blob/v0.18.1.2/src/cryptonote_config.h
It is also possible to create a private testnet, often referred to as regtest
.
There's a number of Monero forks, most notable of them is Wownero: https://wownero.org (as far as I know it is a separate chain which has a different genesis block).
Wownero community uses the same network labels (mainnet
, stagenet
, testnet
), but in the source code Wownero has different NETWORK_ID
constants:
https://git.wownero.com/wownero/wownero/src/tag/v0.10.0.3/src/cryptonote_config.h
If forks will not be included in the namespace, we can just use network labels. Otherwise, it might make sense to use NETWORK_ID
, truncated hash of genesis transaction or some other identifier.
CAIP-10
Monero currently has three types of addresses:
- https://monerodocs.org/public-address/standard-address/
- https://monerodocs.org/public-address/subaddress/
- https://monerodocs.org/public-address/integrated-address/
The length varies between 95 and 106 characters, so it exceeds 64-char limit set by CAIP-10 (which is being discussed in ChainAgnostic/CAIPs#179).
The public spend key has the size of 32 bytes, so it potentially can be used as CAIP-10 account identifier, though I'm not sure if it's safe to do that.