Rust implementation of Zcash protocol
Installing pzec from source requires rustc and cargo.
Minimal supported version is rustc 1.23.0 (766bd11c8 2018-01-01)
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 | shWindows binaries can be downloaded from rust-lang website.
You will need the cc and gcc compilers to build some of the dependencies.
On macOS
build-essential is a Debian package. 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 --installOn Linux
sudo apt-get update
sudo apt-get install build-essentialNow let's clone pzec and enter it's directory:
git clone https://github.com/paritytech/parity-zcash
cd parity-zcash
# builds pzec in release mode
cargo build -p pzec --releasepzec is now available at ./target/release/pzec.
In any of the supported Linux distros:
sudo snap install parity-zcash --edgepzec has internal unit tests and it conforms to external integration tests.
Assuming that repository is already cloned, we can run unit tests with this command:
cargo test --allBy 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/pzecTo start syncing the testnet:
./target/release/pzec --testnetTo not print any syncing progress add --quiet flag:
./target/release/pzec --quietIt 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/pzec import "$ZCASH_DB/blocks"By default, import verifies the imported blocks. You can disable this, by adding the --verification-level=none option.
./target/release/pzec --verification-level=none import "$ZCASH_DB/blocks"Full list of CLI options, which is available under pzec --help: see here
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/pzecpzec started with this environment variable will print all logs coming from verification module with verbosity info or higher. Available log levels are:
errorwarninfodebugtraceIt'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/pzecOnce released, pzec documentation will be available here. Meanwhile it's only possible to build it locally:
cd parity-zcash
./tools/doc.sh
open target/doc/pzec/index.htmlNo open issues yet, or sync has not completed.