Skip to content
Logo
Developer Dzedze Kaba

Zcash Dev
Dze egɔme Kaba

Tso eye nàƒu du kple Zcash ƒe ŋgɔyiyi. Tia wò stack eye nàwɔ ɖe mɔfiame la dzi.

Eɖoɖo ɖe dɔa me

Nusiwo dzi woanɔ te ɖo

bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
sudo apt update
sudo apt install libclang-dev clang pkg-config openssl protobuf-compiler npm

Tso Dzɔtsoƒe

bash
git clone https://github.com/ZcashFoundation/zebra.git
cd zebra
git checkout v6.3.0
cargo build --release --bin zebrad
export PATH="$PATH:$(pwd)/target/release"

Alo hã

bash
cargo install --git https://github.com/ZcashFoundation/zebra --tag v6.3.0 zebrad
2

Running zebrad

Ðoɖowɔwɔ Gbãtɔ

Wɔ Ðoɖowɔɖiwo ƒe Nyatakakadzraɖoƒe

bash
zebrad generate -o ~/.config/zebrad.toml

zebrad.toml

toml
[consensus]
checkpoint_sync = true

[mempool]
eviction_memory_time = "1h"
tx_cost_limit = 80000000

[network]
cache_dir = true
crawl_new_peer_interval = "1m 1s"
listen_addr = "[::]:8233"
network = "Mainnet"
peerset_initial_target_size = 25

[rpc]
listen_addr = "127.0.0.1:8232"
cookie_dir = "/home/your_username/.cache/zebra"
enable_cookie_auth = false

[state]
cache_dir = "/home/your_username/.cache/zebra" # (Change to store in external SSD)
delete_old_database = true
ephemeral = false

[sync]
checkpoint_verify_concurrency_limit = 1000
download_concurrency_limit = 50
full_verify_concurrency_limit = 20

[tracing]
buffer_limit = 128000
use_color = true

Starting zebrad

Sedede ƒe Fli

bash
zebrad start
# Or with specific config
zebrad -c ~/.config/zebrad.toml start

Nya Veviwo

  • Gbãtɔ ƒe duƒuƒu ɖea blockchain bliboa ƒe kɔpi (~250 GB) .
  • Gbãtɔ ƒe wɔwɔ ɖekae ate ŋu axɔ gaƒoƒo geɖe
  • Na wò zebrad.toml nanɔ dedie eye nànɔ ɣaɣla
3

Kadodo kple lightwalletd

lightwalletd nye server si naa ŋgɔdonya si le bɔbɔe na Zcash blockchain, si wowɔ na asitelefon kple kplɔ̃dzi gakotoku siwo mehiã be woawɔ node blibo o.

Eɖoɖo ɖe dɔa me

Nusiwo hiã do ŋgɔ

bash
# Install Go
sudo apt install golang-go
# Or download from golang.org

Tu lightwalletd ɖo

bash
git clone https://github.com/zcash/lightwalletd.git
cd lightwalletd
go build
make
make install
export PATH=$PATH:~/go/bin

Ðoɖowɔwɔ

Ðoɖowɔwɔ Gbãtɔ (Mainnet) .

bash
cat > ~/.config/zcash.conf << EOF
rpcport=8232
rpcbind=127.0.0.1
rpcuser=your_rpc_username
rpcpassword=your_rpc_password
EOF

Ðoɖowɔwɔ Gbãtɔ (Testnet) .

bash
cat > ~/.config/zcash.conf << EOF
testnet=1
rpcport=18238
rpcbind=127.0.0.1
rpcuser=your_rpc_username
rpcpassword=your_rpc_password
EOF

Ƒu du

bash
lightwalletd --zcash-conf-path ~/.config/zcash.conf --data-dir ~/data/zebrad/.cache/lightwalletd --log-file ~/.local/state/lwd.log --no-tls-very-insecure

Afɔɖeɖe siwo kplɔe ɖo & Dɔwɔnuwo