A bitcoin wallet that locks your funds for a certain time period.
Switch branches/tags
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.
.github
__mocks__
__tests__
ios
src
.babelrc
.buckconfig
.editorconfig
.eslintrc
.flowconfig
.gitattributes
.gitignore
.travis.yml
.watchmanconfig
AUTHORS
CONTRIBUTING.md
LICENSE
README.md
app.json
contributing.json
index.js
package-lock.json
package.json
shim.js

README.md

BitHodl

GitHub Release Build Status Coverage Status

The bitcoin wallet for hodlers. Make sure to hold on to your bitcoins even through the most volatile roller coasters. BitHodl locks your BTC using pay-to-script hashes, making them impossible to spend before a specified date.

Getting Started

Install Node.js and npm

Install Node.js (v8) using nvm:

$ nvm install v8

Install dependencies

$ npm install
$ npm install -g react-native-cli
$ react-native link

Start the iOS application

$ react-native run-ios

Hacks

This project is using Bitcore Library. And to get that to work in React Native, these hacks was necessary:

  • Used rn-nodify to add support for Node modules (Look into ReactNativify instead?)

  • node_modules/bitcore-lib/lib/script/script.js needs to be manually modified like this:

    +Address = require('../address');
    
    if (BufferUtil.isBuffer(from)) {
      return Script.fromBuffer(from);
    } else if (from instanceof Address) {
    ...

Use with testnet

During development and testing it is recommended to use the testnet network. By doing so you can use testnet coins and don't risk losing any real money.

  1. Configure and run a Bitcore node with testnet

    You need to run a Bitcore node and configure it to use the testnet. Follow the instructions in the BitHodl Service repo.

  2. Configure the BitHodl app to use testnet

    Open src/config.js and set network to testnet instead of livenet.

  3. Point the app to your testnet service

    Once you've built and started the app, go to settings and enter the url to your testnet node from step 1.

Contributing

Want to help us making BitHodl better? Great, but first read the CONTRIBUTING.md file for instructions.

Licensing

BitHodl is licensed under the Apache License, Version 2.0. See LICENSE for full license text.