Go to file
Dimitris Apostolou ce3c1b9933 Bitcoin -> Zcash (#177) 2019-09-23 12:13:08 -07:00
.github/workflows Namespace built containers by github-org/repo/branch 2019-09-06 12:59:24 -04:00
docs More design sketches. (#166) 2019-08-27 13:34:13 -07:00
fuzz Prefix workspace crates with zebra- (#70) 2019-07-02 15:07:06 -04:00
res fix test and new verifying key 2019-04-29 17:41:00 +03:00
snap Renaming (#1) 2019-06-17 03:25:49 -04:00
tools Tidy travis (#76) 2019-07-02 03:24:41 -04:00
zebra-bencher Move workspace members (#98) 2019-07-02 15:44:00 -04:00
zebra-chain Move workspace members (#98) 2019-07-02 15:44:00 -04:00
zebra-crypto Move workspace members (#98) 2019-07-02 15:44:00 -04:00
zebra-db Bump parking_lot from 0.8.0 to 0.9.0 2019-07-18 22:05:19 -04:00
zebra-import Move workspace members (#98) 2019-07-02 15:44:00 -04:00
zebra-keys Move workspace members (#98) 2019-07-02 15:44:00 -04:00
zebra-logs Bump ansi_term from 0.11.0 to 0.12.0 2019-08-14 00:55:11 -04:00
zebra-message Move workspace members (#98) 2019-07-02 15:44:00 -04:00
zebra-miner Move workspace members (#98) 2019-07-02 15:44:00 -04:00
zebra-network Move workspace members (#98) 2019-07-02 15:44:00 -04:00
zebra-p2p Bump parking_lot from 0.8.0 to 0.9.0 2019-07-18 22:05:19 -04:00
zebra-primitives Move workspace members (#98) 2019-07-02 15:44:00 -04:00
zebra-rpc Bump jsonrpc-pubsub from 12.0.0 to 12.1.0 2019-07-15 19:32:34 -04:00
zebra-script Move workspace members (#98) 2019-07-02 15:44:00 -04:00
zebra-serialization Move workspace members (#98) 2019-07-02 15:44:00 -04:00
zebra-serialization_derive Move workspace members (#98) 2019-07-02 15:44:00 -04:00
zebra-storage Bump parking_lot from 0.8.0 to 0.9.0 2019-07-18 22:05:19 -04:00
zebra-sync Bump parking_lot from 0.8.0 to 0.9.0 2019-07-18 22:05:19 -04:00
zebra-test-data Move workspace members (#98) 2019-07-02 15:44:00 -04:00
zebra-verification Bump parking_lot from 0.8.0 to 0.9.0 2019-07-18 22:05:19 -04:00
zebrad Bitcoin -> Zcash (#177) 2019-09-23 12:13:08 -07:00
zebrad2 Rename binaries until rewrite is finished 2019-07-19 19:31:43 -04:00
.dockerignore Add GitHub Actions CI workflow, including fuzzers (#36) 2019-06-22 01:59:19 +02:00
.editorconfig tests for block hash, .editorconfig and bitcoin network enum 2016-08-16 14:32:24 +02:00
.gitignore Add GitHub Actions CI workflow, including fuzzers (#36) 2019-06-22 01:59:19 +02:00
AUTHORS.md Prefix workspace crates with zebra- (#70) 2019-07-02 15:07:06 -04:00
CLI.md Renaming (#1) 2019-06-17 03:25:49 -04:00
Cargo.lock Bump blake2b_simd from `004e488` to `a312979` 2019-08-29 14:27:34 -04:00
Cargo.toml Rename binaries until rewrite is finished 2019-07-19 19:31:43 -04:00
Dockerfile Namespace built containers by github-org/repo/branch 2019-09-06 12:59:24 -04:00
JSON-RPC.md Update JSON_RPC.md to mention regtest mode (#45) 2019-06-23 18:54:01 +02:00
LICENSE Initial commit 2016-08-15 11:30:16 +02:00
README.md Update README re current code flux, alpha status (#50) 2019-06-25 11:17:32 +02:00
cloudbuild.yaml Namespace built containers by github-org/repo/branch 2019-09-06 12:59:24 -04:00

README.md

Zebra: the Zcash Foundation client.

Build Status

⚠️ Zebra is currently alpha software and subject to change. We do not recommend running Zebra on mainnet yet. ⚠️

We are currently in the process of heavy refactoring; for the next several weeks, it's very likely that external PRs may fall out of sync or have code refactored out from under them.

Blog: Parity teams up with Zcash Foundation for Parity Zcash client

Installing from source

Installing zebra from source requires rustc and cargo.

Minimal supported version is rustc 1.35.0 (fd19989 2019-05-23), and we generally target the stable channel.

Install rustc and cargo

Both rustc and cargo are a part of rust tool-chain.

An easy way to install the stable binaries for Linux and Mac is to run this in your shell:

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

Windows binaries can be downloaded from rust-lang website.

Install C and C++ compilers

You will need the clang and gcc compilers plus cmake to build some of the dependencies.

On macOS

You will need to make sure you have Xcode installed. If you already have Homebrew installed, you probably also already have the Xcode tools installed as well. If not, you can run the command below:

xcode-select --install

On Linux

sudo apt-get update
sudo apt-get install build-essential cmake clang

Clone and build zebra

Now let's clone zebra and enter it's directory:

git clone https://github.com/ZcashFoundation/zebra
cd zebra

# builds zebra in release mode
cargo build -p zebra --release

zebra is now available at ./target/release/zebra.

Installing the snap

In any of the supported Linux distros:

sudo snap install zebra --edge

Running tests

zebra has internal unit tests and it conforms to external integration tests.

Running unit tests

Assuming that repository is already cloned, we can run unit tests with this command:

cargo test --all

Going online

By default parity connects to Zcash seednodes. Full list is here.

To start syncing the main network, just start the client without any arguments:

./target/release/zebra

To start syncing the testnet:

./target/release/zebra --testnet

To not print any syncing progress add --quiet flag:

./target/release/zebra --quiet

Importing zcashd database

It it is possible to import existing zcashd database:

# where $ZCASH_DB is path to your zcashd database. By default:
# on macOS: "/Users/user/Library/Application Support/Zcash"
# on Linux: "~/.zcash"
./target/release/zebra import "$ZCASH_DB/blocks"

By default, import verifies the imported blocks. You can disable this, by adding the --verification-level=none option.

./target/release/zebra --verification-level=none import "$ZCASH_DB/blocks"

Command line interface

Full list of CLI options, which is available under zebra --help: see here

Logging

This is a section only for developers and power users.

You can enable detailed client logging by setting the environment variable RUST_LOG, e.g.,

RUST_LOG=verification=info ./target/release/zebra

zebra started with this environment variable will print all logs coming from verification module with verbosity info or higher. Available log levels are:

  • error
  • warn
  • info
  • debug
  • trace

It's also possible to start logging from multiple modules in the same time:

RUST_LOG=sync=trace,p2p=trace,verification=trace,db=trace ./target/release/zebra

Internal documentation

Once released, zebra documentation will be available here. Meanwhile it's only possible to build it locally:

cd zebra
./tools/doc.sh
open target/doc/zebra/index.html