CAIP-26: Blockchain Reference for the Tezos Namespace

Author Stanly Johnson
Discussions-To https://github.com/ChainAgnostic/CAIPs/pull/36, https://gitlab.com/tezos/tezos/-/issues/1029
Status Superseded
Type Standard
Created 2020-12-12
Updated 2020-12-12
Requires 2
Superseded By https://github.com/ChainAgnostic/namespaces/tree/main/tezos

Simple Summary

This document is about the details of the Tezos namespaces and references for CAIP-2.

Abstract

In CAIP-2 a general blockchain identification scheme is defined. This is the implementation of CAIP-2 for Tezos.

Motivation

See CAIP-2.

Specification

Tezos Namespace

The namespace “tezos” refers to the Tezos open-source blockchain platform.

Reference Definition

The definition for this namespace will use the genesis-block-hash as an indentifier for different Tezos chains. The method for calculating the chain ID is as follows

tezosB58CheckEncode('Net',
  firstFourBytes(
    blake2b(msg = tezosB58CheckDecode('B', genesisBlockHash),
            size = 32)))

Rationale

Blockchains in the “tezos” namespace are identified by their chain ID as mentioned in the Reference Definition Section.

Backwards Compatibility

Not applicable

Test Cases

This is a list of manually composed examples

# Tezos Mainnet
tezos:NetXdQprcVkpaWU

# Tezos DelphiNet (Current active testnet)
tezos:NetXm8tYqnMWky1

Copyright and related rights waived via CC0.

Citation

Please cite this document as:

Stanly Johnson, "CAIP-26: Blockchain Reference for the Tezos Namespace," Chain Agnostic Improvement Proposals, no. 26, December 2020. [Online serial]. Available: https://github.com/ChainAgnostic/CAIPs/blob/master/CAIPs/caip-26.md