Skip to content

qtumproject/qtum-ios

Repository files navigation

About

Combining a modified Bitcoin Core infrastructure with an intercompatible version of the Ethereum Virtual Machine (EVM), Qtum merges the reliability of Bitcoin’s unfailing blockchain with the endless possibilities provided by smart contracts. Designed with stability, modularity and interoperability in mind, Qtum is the foremost toolkit for building trusted decentralized applications, suited for real-world, business oriented use cases. Its hybrid nature, in combination with a first-of-its-kind PoS consensus protocol, allow Qtum applications to be compatible with major blockchain ecosystems, while providing native support for mobile devices and IoT appliances.

Getting Started

  1. Clone project
  2. Install CocoaPods

To install CocoaPods on your computer.

$ gem install cocoapods

ios version 8+.

Using Terminal open project folder and enter following command to load and connect required libraries

$ pod install
  1. Install Carthage

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

Using Terminal open project folder and enter following command to load and connect required libraries

$ carthage update --platform iOS

Using Terminal open project folder and enter following command to create configuration file

$ ./configure

Change API URLs

Open the project and in the config.xcconfig file change APP_SERVER_HOST

Switch network testnet/mainnet

Open the project and in the config.xcconfig file change APP_IS_MAINNET_SETTINGS to YES/NO

You can set your own settings or use the following

//MAINNET
APP_IS_MAINNET_SETTINGS = YES
APP_SERVER_HOST = walletapi.qtum.org

//TESTNET
APP_IS_MAINNET_SETTINGS = NO
APP_SERVER_HOST = testnet-walletapi.qtum.org

Change network parameters

In BTCAddress+Extension.m file set required enum value

enum
{
CustomBTCPublicKeyAddressVersion         = 58,
CustomBTCPrivateKeyAddressVersion        = 128,
CustomBTCScriptHashAddressVersion        = 50,
CustomBTCPublicKeyAddressVersionTestnet  = 120,
CustomBTCPrivateKeyAddressVersionTestnet = 239,
CustomBTCScriptHashAddressVersionTestnet = 110,
};

Technologies

Third Party Libraries

  • 'AFNetworking' – HTTP Client
  • 'MTBBarcodeScanner' – QR-Code/Barcode scanner
  • 'SVProgressHUD' – Custom Loader
  • 'CoreBitcoin' Bitcoin toolkit for Objective-C

Core Bitcoin

CoreBitcoin implements Bitcoin protocol in Objective-C and provides many additional APIs to make great apps. CoreBitcoin deliberately implements as much as possible directly in Objective-C with limited dependency on OpenSSL. This gives everyone an opportunity to learn Bitcoin on a clean codebase and enables all Mac and iOS developers to extend and improve Bitcoin protocol.

Link: https://github.com/oleganza/CoreBitcoin

License

Qtum is GPLv3 licensed.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •