Skip to content

Bitcoin, Bitcoin Cash and Litecoin full node C-API library

Notifications You must be signed in to change notification settings

dario-ramos/bitprim-node-cint

 
 

Repository files navigation

Bitprim C-API Library Gitter Chat

Bitcoin, Bitcoin Cash and Litecoin full node C-API library

master(linux/osx) dev(linux/osx) master(windows) dev(windows)
Build Status Build StatusB Appveyor Status Appveyor StatusB

In version2, the bitcoin-node console app is for demonstration purposes only. See bitprim-server for release quality full node functionality.

Table of Contents

Installation

Using Conan (recommended)

Conan is a Python package for dependency management; it only requires Python and Pip. With Conan, install can be performed on any OS. If there are no prebuilt binaries for a given OS-compiler-arch combination, Conan will build from source.

pip install conan
conan remote add bitprim https://api.bintray.com/conan/bitprim/bitprim
conan install bitprim-node-cint/0.1@bitprim/stable

The last step will install binaries and headers in Conan's cache, a directory outside the usual system paths. This will avoid conflict with system packages such as boost. Also, notice it references the stable version 0.1. To see which versions are available, please check Bintray.

Build from sources

Debian/Ubuntu

Make sure you have installed bitprim-core, bitprim-database, bitprim-blockchain, bitprim-consensus (optional), bitprim-network and bitprim-node beforehand according to their build instructions.

$ git clone https://github.com/bitprim/bitprim-node-cint.git
$ cd bitprim-node-cint
$ mkdir build
$ cd build
$ cmake .. -DENABLE_TESTS=OFF -DWITH_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-std=c++11" 
$ make -j2
$ sudo make install

bitprim-node-cint is now installed in /usr/local/.

Windows with Visual Studio

This project, unlike secp256k1, has external dependencies such as boost. The easiest way to build them is to use Conan from the CMake script, which will install boost and other libraries in non-system directories.

From a Visual Studio Developer Command Prompt:

$ pip install conan
$ git clone https://github.com/bitprim/bitprim-node-cint.git
$ cd bitprim-node-cint
$ mkdir build
$ cd build
$ conan install ..
$ cmake .. -DUSE_CONAN=ON -DNO_CONAN_AT_ALL=OFF
$ msbuild ALL_BUILD.vcxproj

About

Bitcoin, Bitcoin Cash and Litecoin full node C-API library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 83.7%
  • C 8.9%
  • CMake 3.6%
  • JavaScript 2.0%
  • Python 1.3%
  • Shell 0.5%