Giter Site home page Giter Site logo

emengkeng / bithodl-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from overtorment/bithodl-app

0.0 0.0 0.0 2.4 MB

A bitcoin wallet that locks your funds for a certain time period.

Home Page: https://bithodl.com

License: Apache License 2.0

JavaScript 98.69% Objective-C 1.31%

bithodl-app's Introduction

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.

bithodl-app's People

Contributors

timothyej avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.