Skip to content

Instantly share code, notes, and snippets.

View coreyphillips's full-sized avatar

Corey coreyphillips

View GitHub Profile
//
// LndReactModule.m
// lightning
//
// Created by Johan Torås Halseth on 05/11/2018.
//
#import "LndReactModule.h"
#import <React/RCTLog.h>
#import <React/RCTConvert.h>
/**
* @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";
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

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