BIP122 Namespace - Addresses
Author | Simon Warta, ligi, Pedro Gomes |
---|---|
Discussions-To | https://github.com/ChainAgnostic/namespaces/pulls/3 |
Status | Draft |
Type | Standard |
Created | 2019-12-05 |
Updated | 2022-03-27 |
Requires | CAIP-2, CAIP-10 |
Withdrawal reason | CAIP-4 |
Table of Contents
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.
Citation
Please cite this document as:
Simon Warta, ligi, Pedro Gomes, "namespaces/bip122-caip10: BIP122 Namespace - Addresses [DRAFT]," Chain Agnostic Namespaces, bip122-caip10, December 2019 / March 2022. [Online serial]. Available: https://github.com/ChainAgnostic/namespaces/bip122-caip10.md