Latest 0.2.2
License Apache
Platforms ios 11.0, osx 10.13, tvos 11.0

CI Status

C bindings for libbitcoin. Intended primarily as support for the Bitcoin framework, which depends on this one and provides Swift bindings for libbitcoin.


  • Swift 4.2

  • This distribution includes pre-built fat frameworks for libbitcoin and its dependencies: libboost, and libsecp256k1. In order to check out this large pre-built file, you need to install the latest version of Git and the Git Large File Storage handler:
$ brew install git
$ brew install git-lfs
$ which git
$ git --version
git version 2.20.1

Unit Tests

Tests for CBitcoin are available in the Bitcoin framework.


CBitcoin is available through Cocoapads. To install it, add the following line to your Podfile:

pod 'CBitcoin'

Building the frameworks yourself

If you wish, you can run the included script to build the frameworks for libbitcoin, libboost, and libsecp256k1 from scratch. This will take significant time.


Wolf McNally, [email protected]


CBitcoin is available under the MIT license. See the LICENSE file for more info.

Latest podspec

    "name": "CBitcoin",
    "version": "0.2.2",
    "summary": "C Bindings for libbitcoin.",
    "homepage": "",
    "license": {
        "type": "Apache",
        "file": "LICENSE"
    "authors": {
        "Wolf McNally": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.2.2"
    "swift_version": "4.2",
    "source_files": "CBitcoin/Classes/**/*",
    "private_header_files": "CBitcoin/Classes/Private/**/*.hpp",
    "vendored_frameworks": "CBitcoin/Frameworks/*",
    "pod_target_xcconfig": {
        "OTHER_CFLAGS": "-w",
        "HEADER_SEARCH_PATHS": "$(inherited) "${PODS_TARGET_SRCROOT}/CBitcoin/Frameworks/libboost.framework/Headers" "${PODS_TARGET_SRCROOT}/CBitcoin/Frameworks/libsecp256k1.framework/Headers" "${PODS_TARGET_SRCROOT}/CBitcoin/Frameworks/libbitcoin.framework/Headers""
    "platforms": {
        "ios": "11.0",
        "osx": "10.13",
        "tvos": "11.0"
    "module_name": "CBitcoin",
    "prepare_command": "pushd CBitcoinnrm -rf Frameworks/nunzip -o -q Frameworks.zipnpopd"

Pin It on Pinterest

Share This