package
0.0.0-20191201205449-f379a713d0c2
Repository: https://github.com/rjected/lit.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
GetStateIdxFromTx returns the state index from a commitment transaction.
No description provided by the author
No description provided by the author
No description provided by the author
NewLitNode starts up a lit node.
RemoteControlAuthorizationFromBytes parses a byteslice into a RemoteControlAuthorization object.
SetStateIdxBits modifies the tx in place, setting the sequence and locktime fields to indicate the given state index.
the scriptsig to put on a P2SH input.

# Constants

Current design only supports single dualfund request at a time.
Not enough balance to accept the request.
We don't have that coin type, so we declined automatically.
User manually declined.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
key derivation path for contract spending keys (the keys the contract pays FROM, and the funding TX pays TO).
key derivation path for contract payout keys (the keys the contract pays TO combined with the oracle's signature).
key derivation path for contract payout PKH (the hash the contract pays TO).
key derivation path for HTLC pubkeys.
links Id and channel.
No description provided by the author

# Variables

map of channel index to outpoint.
No description provided by the author
htlc outpoints to watch.
array of multihop payments.
map of peer index to pubkey.
all peer data is in this bucket.
Remote control authorization.
txids & signatures for export to watchtowers.
elkrem receiver.
hostname where peer lives.
index for key derivation.
nickname where peer lives.
channel close outpoint & height.
channel state.
serialized utxo for the channel.

# Structs

ChanData is a struct used as a surrogate for going between Qchan and the JSON representation stored on disk.
ChannelStateUpdateEvent is a struct for a channel state update event.
No description provided by the author
4 + 1 + 8 + 32 + 4 + 33 + 33 + 1 + 5 + 32 + 64 = 217 bytes.
InFlightDualFund is a dual funding transaction that has not yet been broadcast.
InFlightFund is a funding transaction that has not yet been broadcast.
No description provided by the author
No description provided by the author
No description provided by the author
LitMsgWrapperMessage is a wrapper type for adapting things to other things.
LitNode is the main struct for the node, keeping track of all channel state and communicating with the underlying UWallet.
Uhh, quick channel.
No description provided by the author
RCRequestAuthArgs contains the required parameters to request authorization for remote control.
For now, this is simple: Allowed yes or no In the future allow more finegrained control over which RPCs are allowed and which are not, and perhaps authorize up to a certain amount for commands like send / push.
No description provided by the author
SimplePeerInfo .
StatComs are State Commitments.

# Interfaces

The UWallet interface are the functions needed to work with the LnNode Verbs are from the perspective of the LnNode, not the underlying wallet.