GithubHelp home page GithubHelp logo

admiraladmirable / genesis_testnets Goto Github PK

View Code? Open in Web Editor NEW

This project forked from topl/genesis_testnets

0.0 0.0 0.0 319 KB

Contains the blockchain genesis data files for Topl's testnets

License: Mozilla Public License 2.0

genesis_testnets's Introduction

Genesis (Testnets)

This repository contains data files which encode "genesis" blocks for Topl's testnets. A "genesis" block (a.k.a. "big bang" block) is the first block in a blockchain. In particular, it contains the initial distribution of tokens and staking registrations for the network.

Structure

Unlike the Topl "Mainnet", there may be many Topl "Testnets", especially as we iterate and improve upon the technology. As such, this repository contains a sub-directory for each unique testnet blockchain that is launched. A testnet may conclude if a breaking change is implemented in the protocol, and a fork would need to be avoided. For example, this repository may be structured like:

  • README.md
  • testnet0/
  • testnet1/
  • testnet2/
  • ...

Genesis structure

Within each testnet directory, a genesis block is encoded using protobuf in a normalized structure. The contents should include:

  • {blockId}.header.pbuf
    • A protobuf-encoded BlockHeader file, where {blockId} is the ID of the genesis block
  • {blockId}.body.pbuf
    • A protobuf-encoded BlockBody file, where {blockId} is the ID of the genesis block
    • From the decoded BlockBody, the transactionIds can be extracted which should map to the following files
  • {transactionId0}.transaction.pbuf
    • A protobuf-encoded IoTransaction file, where {transactionId0} is the ID of the transaction contained within the genesis block
  • {transactionId1}.transaction.pbuf
  • {transactionId2}.transaction.pbuf
  • ...
  • {transactionIdN}.transaction.pbuf

Creation

A testnet genesis block can be created using the Bifrost CLI (not yet implemented at this time). The CLI will output the files that should be uploaded (via Pull Request) to this repository.

Node Launch

A Bifrost node can be configured to point to this repository for its genesis configuration. The custom configuration would include:

bifrost:
  big-bang:
    type: public
    genesis-id: b_6D8mXdqjsGrJbnXf6PqfWQrdTfKr3U5nbLGJGyYVgjqs
    source-path: https://raw.githubusercontent.com/Topl/Genesis_Testnets/main/testnet0/

genesis_testnets's People

Contributors

seancheatham avatar admiraladmirable avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.