GithubHelp home page GithubHelp logo

krisu021 / zend_oo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from horizenofficial/zend_oo

1.0 2.0 0.0 38.65 MB

License: Other

Makefile 1.72% Shell 1.71% M4 1.97% Python 12.88% Dockerfile 0.18% C++ 72.67% C 7.53% HTML 0.60% CSS 0.01% Assembly 0.34% Java 0.36% Objective-C 0.03%

zend_oo's Introduction

Zen 2.1.0-beta4

What is Horizen?

Horizen is an inclusive and scalable platform where everyone is empowered and rewarded for their contributions. Horizen’s sidechain platform enables real-world applications mapped onto a public blockchain architecture with the largest node network in the industry. Horizen’s Sidechain-SDK provides developers with all necessary components to deploy their own fully customizable blockchains on Horizen’s open sidechain protocol, Zendoo.

Zend_oo - the Zendoo-powered Sidechain Platform

Zend_oo is the beta version of zend allowing the Horizen mainchain to manage and interact with any number of sidechains. It downloads and stores the entire history of Horizen transactions. Depending on the speed of your computer and network connection, the synchronization process could take a day or more.

This version of zend implements the Zendoo verifiable Cross-Chain Transfer Protocol (CCTP) that allows the creation of ad-hoc sidechains with independently customizable business logic. Additionally, it enables the transfer of coins from the mainchain to sidechains and from sidechains back to the mainchain through verifiable withdrawal certificates.

Horizen Sidechains are fully decentralized:

  • Sidechain nodes observe the mainchain but the mainchain only observes cryptographically authenticated certificates received from the sidechain.
  • Certificate authentication and validation are achieved through the innovative use of SNARK technology, which enables constant-sized proofs of arbitrary computations, without involving a trusted third party and keeps the mainchain totally agnostic from any sidechain rules.

The main feature of our construction is the high degree of generalization. Sidechains are allowed to use their own rules and data, defining custom SNARKs to let the mainchain authenticate their certificates without any knowledge of the sidechain internals.

You can read more about the Zendoo protocol in our whitepaper, and explore our default sidechain implementation and SDK in our Sidechains-SDK.

Beta features

  • Sidechain declaration with customizable SNARK verification key
  • Forward transfer transaction to sidechain
  • Sidechain epoch management with liveness monitoring and ceasing procedure
  • Sidechain backward transfer by means of withdrawal certificate
  • Agnostic withdrawal certificate validation via custom SNARK proof verification (powered by zendoo-mc-cryptolib)
  • Extended RPC interface to create and dispatch sidechain declaration, forward transfer transactions, and withdrawal certificates
  • Extensive unit tests and integrations tests for verifying sidechain functionality
  • Public sidechain testnet is separate from the normal testnet
  • Graphical wallet allowing easy sidechain creation, forward transfers to sidechains, list of existing sidechains and more: Sphere by Horizen.

Branching strategy

  • sidechains_testnet - Sidechain testnet branch is the release branch of sidechain testnet beta versions. Compile from this branch to run a mainchain node on the sidechain test network.
  • sidechains_dev - Sidechain development branch. Ongoing development takes place here. Any time a release is being done this branch will be merged into sidechains_testnet.

Building from source

  1. Get dependencies:
    1. Debian
    sudo apt-get install \
          build-essential pkg-config libc6-dev m4 g++-multilib \
          autoconf libtool ncurses-dev unzip git python \
          zlib1g-dev bsdmainutils automake curl
    
    1. Centos 7:
    sudo yum group install 'Development Tools'
    sudo yum install \
    autoconf libtool unzip git python \
    curl automake gcc gcc-c++ patch \
    glibc-static libstdc++-static
    
    Please execute the below commands in order.
    sudo yum install centos-release-scl-rh
    sudo yum install devtoolset-3-gcc devtoolset-3-gcc-c++
    sudo update-alternatives --install /usr/bin/gcc-4.9 gcc-4.9 /opt/rh/devtoolset-3/root/usr/bin/gcc 10
    sudo update-alternatives --install /usr/bin/g++-4.9 g++-4.9 /opt/rh/devtoolset-3/root/usr/bin/g++ 10
    scl enable devtoolset-3 bash
    
    1. Windows
    sudo apt-get install \
        build-essential pkg-config libc6-dev m4 g++-multilib \
        autoconf libtool ncurses-dev unzip git python \
        zlib1g-dev wget bsdmainutils automake mingw-w64
    
    1. Arm
    sudo apt-get install \
        build-essential pkg-config libc6-dev m4 g++-multilib-arm-linux-gnueabihf \
        autoconf libtool ncurses-dev unzip git python \
        zlib1g-dev curl bsdmainutils automake cmake cargo
    
  • Install for Linux
git clone https://github.com/HorizenOfficial/zend_oo.git
cd zend_oo
# Build
./zcutil/build.sh -j$(nproc)
# fetch key
./zcutil/fetch-params.sh
# Run
./src/zend
  • Install for Mac OS (using clang)
Read and follow the README.md at https://github.com/HorizenOfficial/zencash-apple

https://github.com/HorizenOfficial/zencash-apple

  • Install for Windows (Cross-Compiled, building on Windows is not supported yet)
export HOST=x86_64-w64-mingw32
./zcutil/build.sh -j$(nproc)
  • Install for aarch64(ARM64)
mkdir -p ~/bin
cd ~/bin
ln -s /usr/bin/ar aarch64-unknown-linux-gnu-ar
ln -s /usr/bin/g++ aarch64-unknown-linux-gnu-g++
ln -s /usr/bin/gcc aarch64-unknown-linux-gnu-gcc
ln -s /usr/bin/nm aarch64-unknown-linux-gnu-nm
ln -s /usr/bin/ranlib aarch64-unknown-linux-gnu-ranlib
ln -s /usr/bin/strip aarch64-unknown-linux-gnu-strip
PATH=$PATH:~/bin
cd ~/zen/
export HOST=aarch64-unknown-linux
./zcutil/build.sh -j$(nproc)

Running Regression Tests

  1. Get dependencies:
    1. Debian
    sudo apt-get install \
          python python-dev python-pip python-setuptools \
          python-wheel python-wheel-common python-zmq
    sudo pip install --upgrade pyblake2
    
    1. MacOS
    brew install python@2
    sudo pip install --upgrade pyblake2 pyzmq
    
  2. Start test suite
    if [[ "$OSTYPE" == "darwin"* ]]; then
      TEST_ARGS="btest gtest sec-hard no-dot-so util-test secp256k1 libsnark univalue rpc --rpc-extended --rpc-exclude=rpcbind_test.py"
    else
      TEST_ARGS="--rpc-extended"
    fi
    export HOST=$(gcc -dumpmachine)
    ./zcutil/fetch-params.sh
    ./qa/zcash/full_test_suite.py ${TEST_ARGS}
    

Security Warnings

See important security warnings in doc/security-warnings.md.

Horizen is unfinished and highly experimental. Use at your own risk.

Where do I begin?

The easiest way to get started is to download our flagship app Sphere by Horizen which is the entry point of most Horizen services.

Need Help?

Help is available at Horizen’s Discord #sidechains channel.

Want to Participate in Development?

  • Code review is welcomed!
  • Please submit any identified issues here
  • Enroll in the Horizen Early Adopter Program HEAP to take part in new product and feature testing

Participation in the Horizen project is subject to a Code of Conduct.

License

For license information see the file COPYING.

zend_oo's People

Contributors

laanwj avatar gavinandresen avatar sipa avatar str4d avatar abi87 avatar theuni avatar bitcartel avatar alsala avatar non-github-bitcoin avatar ebfull avatar franckdg avatar zkbot avatar cronicc avatar luke-jr avatar gmaxwell avatar jonasschnelli avatar daira avatar fanquake avatar thebluematt avatar defuse avatar cozz avatar petertodd avatar jtimon avatar pierstab avatar marcool94 avatar ageis avatar paveljanik avatar muggenhor avatar sdaftuar avatar codeshark avatar

Stargazers

Krystian avatar

Watchers

James Cloos avatar Krystian 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.