Giter Club home page Giter Club logo

vrf's Introduction

Tinychain

This project is working in progress. A tiny blockchain

Features

Consensus

In consensus module, we design and implements different consensus algorithm, and make them pluggable.

please read document

Network

We use go-libp2p to implements network layer, including:

  • peers discovering
  • peers communication
    • blocks transferring
    • transactions transferring
    • consensus information transferring

Cryptography

We decide to use Ed25519 cryptographic algorithm to identify peers and produce signature.

Ed25519 is a public-key signature system with several attractive features:

  • Fast single-signature verification
  • Even faster batch verification
  • Very fast signing
  • Fast key generation
  • High security level
  • Collision resilience
  • so on...

Smart Contract

Virtual machine

The VM module is designed as pluggable modules.

At step 1, we will support EVM. And in the future version, we'll implement the below virtual machine step by step:

Contract language

At this EVM version, developers are coding with solidity, which is widely used to develop Dapps.

After implementing the virtual machine based on WebAssembly, you can use any languages to write contracts.

Database

LevelDB

Merkle tree

In tinychain, we use Bucket tree to induce transactions and world state.

Bucket tree is a variant merkle tree with several features that are different from the common merkle tree:

  1. fix height of tree when initialize and will not be changed by the amount of transactions.
  2. low-cost to recompute the root hash when add or remove a kv pair to/from tree.
  3. customizable capacity and aggreation.

Event Hub

Eventhub in tinychain is extended from TypeMux and feed in Ethereum. We combine them and re-implement a new event hub to achieve a better performance and readability, and make the processing flow clearer.

vrf's People

Watchers

 avatar  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.