Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blockchaincommons/ios-cbitcoin
libbitcoin bindings for C
https://github.com/blockchaincommons/ios-cbitcoin
Last synced: 2 months ago
JSON representation
libbitcoin bindings for C
- Host: GitHub
- URL: https://github.com/blockchaincommons/ios-cbitcoin
- Owner: BlockchainCommons
- License: other
- Created: 2018-10-24T19:30:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-16T09:16:58.000Z (almost 5 years ago)
- Last Synced: 2024-10-08T13:00:55.323Z (3 months ago)
- Language: C++
- Homepage:
- Size: 38.1 MB
- Stars: 5
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# CBitcoin
C bindings for [libbitcoin](https://github.com/libbitcoin). Intended primarily as support for the [Bitcoin](https://github.com/BlockchainCommons/iOS-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](https://wolfmcnally.com/125/announcing-open-source-bitcoin-framework-for-ios/).
## Requirements
* Swift 5.1
* Xcode 11.3
* 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:
```bash
$ brew install git
$ brew install git-lfs
$ which git
/usr/local/bin/git
$ git --version
git version 2.21.0
```## Installation
`CBitcoin` no longer supports building via Cocoapods, but since it also relies on embedding several third-party pre-built binary frameworks (libbitcoin etc.) it is also not suitable for distribution via the Swift Package Manager at this time. So for now, it is built directly as an Xcode project.
In the shell:
```bash
$ git clone https://github.com/BlockchainCommons/iOS-CBitcoin.git CBitcoin
$ cd CBitcoin/Sources
$ unzip -q Frameworks.zip
$ cd ..
$ open CBitcoin.xcodeproj/
```Within Xcode:
* Build the `CBitcoin` target for an available platform.
## Unit Tests
`CBitcoin` does not have built-in unit tests, but the `Bitcoin` Swift framework builds on `CBitcoin` and contains unit tests for all `CBitcoin` functionality.
## 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 Apache 2 license. See the LICENSE file for more info.