Giter Club home page Giter Club logo
tinychain photo

tinychain Goto Github PK

repos: 19.0 gists: 0.0

Name: tinychain

Type: Organization

Bio: A tiny blockchain supporting free transactions and state transition experimentally.

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.

tinychain's Projects

design icon design

ewasm Design Overview and Specification

dmc-lib icon dmc-lib

Smart contract library of Damoclis blockchain

go-cid icon go-cid

Content ID v1 implemented in go

go-dfinity-crypto icon go-dfinity-crypto

A high-level API for signing and verifying message digests using the BLS threshold signature scheme.

life icon life

A secure WebAssembly VM catered for decentralized applications.

schnorr icon schnorr

Go implementation of the BIP Schnorr signature scheme.

tiny-oracle icon tiny-oracle

[WIP] A solution for fetching data and events from reality, and interacting with blockchain.

tiny-storage icon tiny-storage

[WIP] Decentralized storage in Tinychain, based on IPFS.

tiny-wasm icon tiny-wasm

[WIP] A WebAssembly-based Go interpreter based on wagon.

vrf icon vrf

a VRF implementation following this ietf draft: https://tools.ietf.org/html/draft-goldbe-vrf-00

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.