Skip to content

Latest commit

 

History

History
65 lines (47 loc) · 2.11 KB

caip10.md

File metadata and controls

65 lines (47 loc) · 2.11 KB
namespace-identifier title author discussions-to status type created updated requires replaces
bip122-caip10
BIP122 Namespace - Addresses
Simon Warta (@webmaster128), ligi <ligi@ligi.de>, Pedro Gomes (@pedrouid)
Draft
Standard
2019-12-05
2022-03-27
CAIP-2
CAIP-10
CAIP-4

CAIP-10

For context, see the CAIP-10 specification.

Rationale

While Ethereum "accounts" were the unstated norm in the definition of CAIP-10, the "script hashes" addressing schemed defined by BIP13 map well enough to "account"-model blockchains that these can be described by a CAIP-10 reference.

Syntax

See Specification section of BIP13.

Backwards Compatibility

Previously, the legacy CAIP-10 schema was defined by appending as suffix the CAIP-2 chainId delimited by the at sign (@)

Legacy example

128Lkh3S7CkDTBZ8W7BbpsN3YYizJMp8p6@bip122:000000000019d6689c085ae165831e93

Test Cases

# Bitcoin mainnet
bip122:000000000019d6689c085ae165831e93:128Lkh3S7CkDTBZ8W7BbpsN3YYizJMp8p6

# Litecoin
bip122:12a765e31ffd4059bada1e25190f6e98:128Lkh3S7CkDTBZ8W7BbpsN3YYizJMp8p6

References

  • BIP13: Bitcoin Improvement Proposal specifying "Script Hash" addresses
  • BIP21: Bitcoin Improvement Proposal specifying bitcoin URI scheme
  • BIP122: Bitcoin Improvement Proposal specifying blockchain URI scheme

Rights

Copyright and related rights waived via CC0.