This is allowed for ReactNative apps. Source
AppHub.io is one option, open source coming soon.
| #!/bin/sh | |
| SDK=`dirname $0` | |
| SCRIPT=`basename $0` | |
| SDKPARENT=`dirname $SDK` | |
| DEVROOT=`xcode-select --print-path` | |
| SDKVER=`xcodebuild -showsdks | grep iphoneos | awk '{print $2}' | tail -n 1` | |
| SDKROOT="$DEVROOT/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS$SDKVER.sdk" | |
| SDKsROOT="$DEVROOT/Platforms/iPhoneOS.platform/Developer/SDKs" | |
| PLATFORM=`uname -sp` |
| /* | |
| pipe_source.m | |
| clang pipe_source.m -o pipe -framework Foundation -D [ USE_SOURCE | USE_IO | USE_FILEHANDLE [ FILEHANDLE_READABILITY | FILEHANDLE_WAIT ] ] | |
| */ | |
| #import <Foundation/Foundation.h> | |
| int main(void) { | |
| enum RunLoop { |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
| const bitcoinjs = require('bitcoinjs-lib') // @3.3.2 | |
| const bchaddrjs = require('bchaddrjs') | |
| const bip39 = require('bip39') | |
| const clone = require('lodash.clonedeep') | |
| const networks = bitcoinjs.networks | |
| const script = bitcoinjs.script | |
| /* | |
| Bitcoin 0x0488b21e - xpub 0x0488ade4 - xprv P2PKH or P2SH |