Latest | 1.0.6 |
---|---|
Homepage | https://github.com/swtcpro/jingtum-lib-objectc |
License | MIT |
Platforms | ios 10.0, requires ARC |
Dependencies | CoreBitcoin, OpenSSL-Universal, ISO8601DateFormatter, SocketRocket |
Frameworks | UIKit |
Authors |
jingtum-lib-objective-c
The jingtum-lib-objective-c library to be used for interacting with jingtum blockchain network.
This is the objective-c version.
Jingtum introduction
Jingtum is one of the most mature block chain platforms at home and abroad. It is the only block chain technology that has been tested by large-scale applications. Jingtum company has built up a well connected block chain platform (public chain), which is located in the development of a block chain ecosystem with various applications. [website][1]
Source code
- src/jingtum-lib – The source codes of jingtum lib.
- src/ViewController.m – The tests for jingtum lib.
- Samples – The samples to use the jingtum lib.
- docs – The documentation for the jingtum lib.
Supporting Environment
- MacOS
Development Environment
- MacOS
- Xcode
References:
The following libraries are referenced.
- SocketRocket (https://github.com/facebook/SocketRocket)
- CoreBitcoin (https://github.com/oleganza/CoreBitcoin)
Installation
After download this sourcecode, we should run
pod install
to download the nessessary libraries
Also jingtum-lib-objectc is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod "jingtum-lib-objectc"
Attention
After run
pod install
we get all the needed libraries, then we should modify the file: Pods/CoreBitcoin/CoreBitcoin/BTCBase58.m
from
static const char* BTCBase58Alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
to
static const char* BTCBase58Alphabet = "jpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65rkm8oFqi1tuvAxyz";
Summary
The jingtum-lib-objective-c library is based on the ws protocol to connect with jingtum system.
The Remote class provides public APIs to create two kinds of objects: Request object by GET
method, and Transaction object by POST method. And then can submit data to server through
Submit() method.
How to use
1) Create a new instance of Remote class.
Remote *remote = [Remote instance];
2) Connect to server.
[remote connectWithURLString:@"ws://123.57.219.57:5020" local_sign:true];
3) Close the connection
remote.Disconnect();
Contributing
Please feel free to send me pull requests or And other ways of contact to add links.
QQ : 3107251779
Licensing
jingtum-lib-objective-c is released under the terms of the MIT license. See COPYING for more information or see MIT
Latest podspec
{ "name": "jingtum-lib-objectc", "version": "1.0.6", "summary": "jingtum-lib to be used for interacting with jingtum blockchain networku3002This is the objective-c versionu3002", "description": "jingtum-lib to be used for interacting with jingtum blockchain networku3002This is the objective-c versionu3002", "homepage": "https://github.com/swtcpro/jingtum-lib-objectc", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "jerry": "[email protected]" }, "platforms": { "ios": "10.0" }, "source": { "git": "https://github.com/swtcpro/jingtum-lib-objectc.git", "tag": "1.0.6" }, "source_files": [ "WebSocketClient/jingtum-lib/*.{h,m}", "WebSocketClient/WebSocket/*.{h,m}" ], "frameworks": "UIKit", "requires_arc": true, "dependencies": { "CoreBitcoin": [], "OpenSSL-Universal": [ "1.0.1.16" ], "ISO8601DateFormatter": [], "SocketRocket": [] } }
Sun, 02 Sep 2018 01:20:04 +0000