ChainAgnostic / CAIPs

Chain Agnostic Improvement Proposals
https://chainagnostic.org
Creative Commons Zero v1.0 Universal
513 stars 152 forks source link

CAIP-2 (Chain ID): The Bitcoin interface #4

Closed webmaster128 closed 4 years ago

webmaster128 commented 4 years ago

This is ticket is about the details of the Bitcoin interface for #2.


Interface name

The name of this interface should be "bitcoin", referring to the wider Bitcoin ecosystem, including multiple forks of the chain and the code.

Reference definition

The definition is delegated to BIP122. The reference format is bip122-%s, where %s is a 32 character prefix of the block hash from BIP122 (lower case hex).

Blockchains in this interface

Blockchains not in this interface

Examples

# Bitcoin mainnet (see https://github.com/bitcoin/bips/blob/master/bip-0122.mediawiki#definition-of-chain-id)
bitcoin:bip122-000000000019d6689c085ae165831e93

# Litecoin
bitcoin:bip122-12a765e31ffd4059bada1e25190f6e98

# Feathercoin (Litecoin fork)
bitcoin:bip122-fdbe99b90c90bae7505796461471d89a

Open questions:

webmaster128 commented 4 years ago

Done in #9

daira commented 4 months ago

ZCash: BIP122 excluded explicitely by https://github.com/zcash/zips/issues/87#issuecomment-250988155. Further research may be necessary to understand why and if there is an alternative blockchain ID specification.

Just to clarify, Zcash excluded that BIP from its specification because it was in Draft at the time (2016-10-02). It became Active on 2016-11-30 according to its history on GitHub. All Draft BIPs as of 2016-10-02 were excluded, and this one wasn't going to affect consensus anyway.

Mohmmedghalibe commented 1 month ago

000000000019d6689c085ae165831e93