Coder Social home page Coder Social logo

redot's Introduction

Redot

Redot serves as Polkadot's re-staking layer. It includes a specialized parachain, essentially an adapter for Polkadot's consensus layer, designed to extend the capabilities of the consensus layer. Redot comprises a parachain and redlight. The parachain facilitates on-chain management of various tasks and validators. redlight is a lightweight client for validators, used for completing different validation tasks.

Philosophy

  • Zero Knowledge Leakage: As a consensus layer, Polkadot should not be privy to information about layers like data availability. This focus on consensus allows Polkadot to be more efficient. Redot, as an adapter to the consensus layer, extends its capabilities to the data availability layer through re-staking.
  • Neutrality: Redot imposes no restrictions on the nature of tasks. It supports tasks beyond data availability and accommodates various data availability layers.
  • Lightweight: Validator tasks should be sufficiently lightweight. Only information pertinent to the consensus layer should be incorporated into these tasks.

Modules

Redot includes the following modules:

  • core-primitives: Implements specific primitives for DKG, threshold signature encryption.
  • rc-validator: Depends on the validator network to execute different methods.
  • rc-validator-fetch: A module that supports storing and fetching validator information in different environments.
  • rc-validator-network: Implementation of the validator network for communication among validators.
  • task: Task module for managing different tasks and key rotation, etc.
  • validator-registry: Validator registration and deletion module, using OCW for verification.
  • redlight: A lightweight client for validators to complete various validation tasks.
  • redoxt: A module for communication with the parachain.

Building

Setup rust

Install Rust:

curl https://sh.rustup.rs -sSf | sh

You will also need to install the following packages:

mac

brew install cmake pkg-config openssl git llvm

Linux

sudo apt install cmake pkg-config libssl-dev git clang libclang-dev protobuf-compiler

More: Redot is based on Substrate, for more information please go to Substrate.

Build

  1. Compile the parachain:
make build-default
  1. Compile the redlight node:
make build-light

3. Run

You can start a development chain with:

make run-dev

However, this does not produce actual blocks. Since Redot is a parachain, it is recommended to use Zombienet for actual operation.

To launch a light node:

make run-light

redot's People

Contributors

darkinglee avatar

Stargazers

 avatar

Watchers

Chen Zhidong 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.