Skip to content
ClassicBitcoin Core V1.0.0.16 (BTC/ZClassic fork), Please Update Now.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build-aux/m4
cbtcutil
contrib
depends
doc
qa
share
src
COPYING
INSTALL
Makefile.am
README.md
autogen.sh
code_of_conduct.md
configure.ac
fork-instructions.md
libzcashconsensus.pc.in

README.md

Bitcoin Private

Bitcoin Private v1.0.13

P2P Port: 7123

RPC Port: 7612

Bitcoin Private is a fork of Zclassic, merging in a snapshotted UTXO set of Bitcoin. CBTC is financial freedom.

Build

Linux

Get dependencies:

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

Build:

# Checkout
git clone https://github.com/CBitcoin/ClassicBitcoin.git
cd ClassicBitcoin
# Build
./cbtcutil/build.sh -j$(nproc)
# Fetch Zcash ceremony keys
./cbtcutil/fetch-params.sh

Download CBTC Fork UTXO. https://drive.google.com/open?id=1zUZB06NzLbVvee_KEn3TqAZfEh-GlQMQ A folder named utxo_snapshot containing CBTC UTXO Data is expected in the coin Data Directory.

Create Config File:

mkdir ~/.cbitcoin
touch ~/.cbitcoin/cbitcoin.conf
vi ~/.cbitcoin/cbitcoin.conf

Add following lines to cbitcoin.conf and be sure to change the rpcpassword:

rpcuser=cbitcoinrpc
rpcpassword=set-a-password
rpcallowip=127.0.0.1
#addnode=dnsseed.classicbitcoin.info
#addnode=dnsseed.dnsseed.bitclassic.info

Run:

./src/cbtcd

Windows

Windows is not a fully supported build - however there are two ways to build CBTC for Windows:

  • On Linux using Mingw-w64 cross compiler tool chain. Ubuntu 16.04 Xenial is proven to work and the instructions is for such release.
  • On Windows 10 (64-bit version) using Windows Subsystem for Linux (WSL) and Mingw-w64 cross compiler tool chain.

With Windows 10, Microsoft released a feature called WSL. It basically allows you to run a bash shell directly on Windows in an ubuntu environment. WSL can be installed with other Linux variants, but as mentioned before, the distro proven to work is Ubuntu. Follow this link for installing WSL first

Building for Windows 64-Bit

  1. Get the usual dependencies:
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 make cmake mingw-w64
  1. Set the default mingw32 gcc/g++ compiler option to posix, fix problem with packages in Xenial
sudo apt install software-properties-common
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu zesty universe"
sudo apt update
sudo apt upgrade
sudo update-alternatives --config x86_64-w64-mingw32-gcc
sudo update-alternatives --config x86_64-w64-mingw32-g++
  1. Install Rust
curl https://sh.rustup.rs -sSf | sh
source ~/.cargo/env
rustup install stable-x86_64-unknown-linux-gnu
rustup install stable-x86_64-pc-windows-gnu
rustup target add x86_64-pc-windows-gnu
vi  ~/.cargo/config

and add:

[target.x86_64-pc-windows-gnu]
linker = "/usr/bin/x86_64-w64-mingw32-gcc"

Note that in WSL, the CBitcoin source code must be somewhere in the default mount file system. i.e /usr/src/CBitcoin, and not on /mnt/d/. What this means is that you cannot build directly on the windows system

  1. Build for Windows
PATH=$(echo "$PATH" | sed -e 's/:\/mnt.*//g') # strip out problematic Windows %PATH% imported var
./cbtcutil/build-win.sh -j$(nproc)
  1. Installation

If compiling on linux, use the following command to build the executables in `./depends/x86_64-w64-mingw32/bin/

sudo make install DESTDIR=

If compiling using WSL, use the following command to build the executables in `c:\cbtc\CBitcoin

sudo make install DESTDIR=/mnt/c/cbtc/CBitcoin

Mac

Get dependencies:

# Install xcode
xcode-select --install

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install cmake autoconf libtool automake coreutils pkgconfig gmp wget

brew install gcc5 --without-multilib

Install:

# Build
./cbtcutil/build-mac.sh -j$(sysctl -n hw.physicalcpu)
# fetch key
./cbtcutil/fetch-params.sh
# Run
./src/cbtcd

Additional notes

If you plan to build for windows and linux at the same time, be sure to delete all the built files for whatever you build first. An easy way to do this is by taking the binaries out of the repo, delete all files except the .git folder and then do a git hard reset.

Testnet

Build the latest version of CBTC using the instructions below, then follow the testnet guide

About

Bitcoin Private, like Zclassic and Zcash, is an implementation of the "Zerocash" protocol. Based on Zclassic's code, it intends to offer a far higher standard of privacy through a sophisticated zero-knowledge proving scheme that preserves confidentiality of transaction metadata. Technical details are available in the Zcash Protocol Specification.

This software is the Bitcoin Private client. It downloads and stores the entire history of Bitcoin Private transactions. Depending on the speed of your computer and network connection, the synchronization process could take a day or more once the blockchain has reached a significant size.

It includes both cbtcd (the daemon) and cbtc-cli (the command line tools).

Security Warnings

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

Bitcoin Private is unfinished and highly experimental. Use at your own risk.

Deprecation Policy

This release is considered deprecated 16 weeks after the release day. There is an automatic deprecation shutdown feature which will halt the node some time after this 16 week time period. The automatic feature is based on block height and can be explicitly disabled.

Where do I begin?

We have a guide for joining the main Bitcoin Private network: https://github.com/zcash/zcash/wiki/1.0-User-Guide

Need Help?

Want to participate in development?

  • Code review is welcome!
  • If you want to get to know us join our Discord: https://discord.gg/9xezcaK
  • We have a brief guide for joining the Bitcoin private testnet here

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

Building

Build CBTC along with most dependencies from source by running ./cbtcutil/build.sh. Currently only Linux is officially supported.

License

For license information see the file COPYING.

You can’t perform that action at this time.