EIP.tools

EIP.tools

SupersededStandard:

CAIP-26: Blockchain Reference for the Tezos Namespace

Authors
Created2020-12-12
Discussion Linkhttps://github.com/ChainAgnostic/CAIPs/pull/36, https://gitlab.com/tezos/tezos/-/issues/1029
Requires

Markdown

https://raw.githubusercontent.com/ChainAgnostic/CA...

EIP-GPT summary

Contents
Simple SummaryAbstractMotivationSpecificationTezos NamespaceReference DefinitionRationaleBackwards CompatibilityTest CasesLinksCopyright

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.

EIP.tools

EIP.tools

Search, read, and map Ethereum improvement proposals, ERCs, RIPs, and CAIPs from one focused interface.

Farcaster
by @apoorveth