Skip to content

Instantly share code, notes, and snippets.

View coreyphillips's full-sized avatar

Corey coreyphillips

View GitHub Profile

Been giving some thought to Arc's hybrid custody model. This model operates on the premise that you maintain custody of your funds unless you go offline for x weeks or longer, at which point your funds can be reclaimed or swept by the other party involved.

While it's unlikely that most nodes would consent to establishing channels that propose unilateral, fund-sweeping arrangements, such channels could be beneficial for close-knit relationships like family and friends. This is particularly true in situations where one party is more likely to lose their device or private keys than the other. In these cases, the more tech-savvy, reliable or attuned party can sweep and reclaim the funds that their family member or friend would have otherwise lost. With such an arrangement, even grandma could use the lightning network without worrying about losing access to her funds if she misplaces the device or forgets her seed.

To implement this kind of arrangement in the Lightning Network, we would need to define a new ty

2020-07-31 14:22:51.494 27080-27080/? I/act_native_dem: Not late-enabling -Xcheck:jni (already on)
2020-07-31 14:22:51.523 27080-27080/? I/act_native_dem: Unquickening 12 vdex files!
2020-07-31 14:22:51.530 27080-27080/? W/act_native_dem: Unexpected CPU variant for X86 using defaults: x86
2020-07-31 14:22:51.624 27080-27080/com.react_native_demo I/act_native_dem: The ClassLoaderContext is a special shared library.
2020-07-31 14:22:51.826 27080-27080/com.react_native_demo D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2020-07-31 14:22:51.827 27080-27080/com.react_native_demo D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2020-07-31 14:22:51.835 27080-27080/com.react_native_demo D/SoLoader: init start
2020-07-31 14:22:51.835 27080-27080/com.react_native_demo D/SoLoader: adding system library source: /vendor/lib
2020-07-31 14:22:51.837 27080-27080/com.react_native_demo D/SoLoader: adding system library source: /system/lib
2020-07-31 14
/**
* @fileOverview a low level action to proxy GRPC api calls to and from lnd
* mobile via a native module. This module should not be invokes directly
* from the UI but rather used within other higher level actions.
*/
import "../shim";
import base64 from "base64-js";
import { lnrpc } from "./rpc";
import { toCaps } from "./helpers";
//
// LndReactModule.m
// lightning
//
// Created by Johan Torås Halseth on 05/11/2018.
//
#import "LndReactModule.h"
#import <React/RCTLog.h>
#import <React/RCTConvert.h>
@coreyphillips
coreyphillips / apkdiff.py
Last active July 19, 2022 20:05
Compares two apk files for differences.
import sys
from zipfile import ZipFile
#Source: https://github.com/DrKLO/Telegram/blob/master/apkdiff.py
def compareFiles(first, second):
while True:
firstBytes = first.read(4096);
secondBytes = second.read(4096);
if firstBytes != secondBytes:
@coreyphillips
coreyphillips / bitcoinjs-lib_Setup.md
Last active March 5, 2024 01:24
How To Add bitcoinjs-lib To A React Native v0.60+ Project

How To Add bitcoinjs-lib To A React Native v0.60+ Project

Add/Link the following dependencies:

  • yarn add bitcoinjs-lib ecpair @bitcoinerlab/secp256k1 react-native-randombytes buffer readable-stream
  • yarn add --dev rn-nodeify
  • cd ios && pod install && cd ..
  • Add the following postinstall to your script in package.json: "postinstall": "rn-nodeify --install buffer,stream,assert,events,crypto,vm,process --hack"

Install any remaining dependencies and run postinstall.

@coreyphillips
coreyphillips / rn-bitcoinjs-lib-5.0.5_Setup.md
Last active August 7, 2019 13:32
How To Add bitcoinjs-lib Version 5.0.5 To A React Native Project

Newer version available. Please see 5.1.1

How To Add bitcoinjs-lib Version 5.0.5 To A React Native Project

Add/Link the following dependencies:

  • yarn add bitcoinjs-lib@5.0.5 react-native-randombytes buffer-reverse buffer@5
  • yarn add --dev rn-nodeify
  • react-native link react-native-randombytes
  • Add the following postinstall to your script in package.json: "postinstall": "rn-nodeify --install buffer,stream,assert,events,crypto,vm --hack && cd node_modules/bs58 && yarn add base-x@3.0.4 && cd ../../"
@coreyphillips
coreyphillips / Moonshine_Altcoin_Implementation_Guide.md
Last active March 13, 2020 17:15
Moonshine Altcoin Implementation Guide

Altcoin Support

Please be aware and take note that my primary focus is on expanding the core functionality of this wallet and not on adding altcoins. However, for those wishing to add a specific altcoin for personal use, this guide was created so that you may fork off in a proper fashion. If you have any questions I'm always happy to help so don't hesitate to reach out.

Feel free to use the following commit as a reference to what changes need to be made: https://github.com/coreyphillips/moonshine/commit/0eeecdeea7a9004bacf6db369cec61bc2c930962

Files that will need to be modified/updated for this process:

@coreyphillips
coreyphillips / rn-bitcoinjs-lib-4.0.3_Setup.md
Last active May 30, 2019 18:52
How To Add bitcoinjs-lib Version 4.0.3 To A React Native Project

Newer version available. Please see 5.0.5

How To Add bitcoinjs-lib Version 4.0.3 To A React Native Project

Add/Link the following dependencies:

  • yarn add bitcoinjs-lib@4.0.3 react-native-randombytes buffer-reverse buffer@5
  • yarn add --dev rn-nodeify
  • react-native link react-native-randombytes
  • Add the following postinstall to your script in package.json: "postinstall": "rn-nodeify --install buffer,stream,assert,events,crypto,vm --hack && cd node_modules/bs58 && yarn add base-x@3.0.4 && cd ../../"
### Keybase proof
I hereby claim:
* I am coreyphillips on github.
* I am coreyphillips (https://keybase.io/coreyphillips) on keybase.
* I have a public key ASBe0KXIw_GNtgCJGDPO9mp_ayNa37mhGAOGc8ENRvZfRwo
To claim this, I am signing this object: