Latest 0.5.1
Homepage https://github.com/blockchaincommons/iOS-CBitcoin
License Apache
Platforms ios 11.0
Authors

CI Status
Version
License
Platform

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

Blog Post

On January 25, 2019 I published an announcement for this framework on my blog here.

Requirements

  • 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
/usr/local/bin/git
$ git --version
git version 2.20.1

Unit Tests

Tests for CBitcoin are available in the Bitcoin framework.

Installation

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 build_frameworks.sh script to build the frameworks for libbitcoin, libboost, and libsecp256k1 from scratch. This will take significant time.

Author

Wolf McNally, [email protected]

License

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

Latest podspec

{
    "name": "CBitcoin",
    "version": "0.5.1",
    "summary": "C Bindings for libbitcoin, breadwalletcore, and sss (Shamir Secret Sharing).",
    "homepage": "https://github.com/blockchaincommons/iOS-CBitcoin",
    "license": {
        "type": "Apache",
        "file": "LICENSE"
    },
    "authors": {
        "Wolf McNally": "[email protected]"
    },
    "source": {
        "git": "https://github.com/blockchaincommons/iOS-CBitcoin.git",
        "tag": "0.5.1"
    },
    "swift_versions": "5.0",
    "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" "${PODS_TARGET_SRCROOT}/CBitcoin/Frameworks/breadwalletcore.framework/Headers" "${PODS_TARGET_SRCROOT}/CBitcoin/Frameworks/libsss.framework/Headers""
    },
    "platforms": {
        "ios": "11.0"
    },
    "module_name": "CBitcoin",
    "prepare_command": "pushd CBitcoinnrm -rf Frameworks/nunzip -o -q Frameworks.zipnpopd"
}

Pin It on Pinterest

Share This