This website requires JavaScript.
7ec419bde5
lnwallet: add docstrings to script_utils.go
Olaoluwa Osuntokun
2016-01-02 14:10:14 -06:00
f257690788
lnwallet: finish docstrings within coin select code
Olaoluwa Osuntokun
2016-01-02 14:09:56 -06:00
b2cb33c3c2
lnwallet: add documentation to ChannelReservation
Olaoluwa Osuntokun
2016-01-02 14:09:31 -06:00
b4c644c99a
Added Error message type to wire protocol
Joseph Poon
2016-01-05 08:53:42 -08:00
f3849f5c10
Structs for Wire Protocol HTLCs and Commitments
Joseph Poon
2016-01-05 08:19:22 -08:00
58f0bfe252
plasma daemon can connect, receive connections, and send chat msgs.
Tadge Dryja
2016-01-02 00:27:40 -04:00
5bafdc4bc6
rpc client can tell plasma to listen, it can listen & auth
Tadge Dryja
2016-01-01 22:44:52 -04:00
919b0002b1
put MSGID bytes back in to lnwire
Tadge Dryja
2015-12-31 12:38:33 -04:00
19233dc42d
wallet creation works, takes 11 seconds
Tadge Dryja
2015-12-31 12:17:41 -04:00
726ba629f5
ok now it works. Sortof. Still hangs, but hangs later, after writing pkh.
Tadge Dryja
2015-12-31 12:14:08 -04:00
8cc057bbd4
Cooperative Close
Joseph Poon
2015-12-31 02:42:25 -08:00
bf8e0d727d
Added ReservationID for funding_requeset
Joseph Poon
2015-12-31 01:19:54 -08:00
84df87255f
Oops typo
Joseph Poon
2015-12-31 00:48:41 -08:00
b3f812e5da
Notes on payment amount
Joseph Poon
2015-12-31 00:41:55 -08:00
266c121510
Changed type in Accept/Complete & lnwire refactor
Joseph Poon
2015-12-31 00:25:00 -08:00
2d3253b95d
Cleanup
Joseph Poon
2015-12-30 23:34:40 -08:00
1772108544
lnwallet: start of HTLC update logic
Olaoluwa Osuntokun
2015-12-31 00:36:01 -06:00
5a7b98a9e4
lnwallet: remove CLTV funding tx gen
Olaoluwa Osuntokun
2015-12-31 00:32:33 -06:00
41f4992218
lnwallet: add utils to generate HTLC scripts, split up commit output scripts
Olaoluwa Osuntokun
2015-12-31 00:32:09 -06:00
c41f7d1a7d
lnwallet: update to 20 byte revocation hashes
Olaoluwa Osuntokun
2015-12-31 00:30:52 -06:00
f49da92a4e
shachain: revocation hashes are now hash160's
Olaoluwa Osuntokun
2015-12-31 00:30:00 -06:00
20e367c4e7
lncli: note to self about future auth
Olaoluwa Osuntokun
2015-12-31 00:28:22 -06:00
c4af4017da
channeldb: revocation hashes are 20 bytes
Olaoluwa Osuntokun
2015-12-31 00:28:00 -06:00
0d4c78e90d
FundReq/FundResp update / Refactor tests
Joseph Poon
2015-12-30 22:28:14 -08:00
cb32ab1fb9
identify where it freezes. in btcwallet/walletdb/interface.go:271
Tadge Dryja
2015-12-31 11:51:40 -04:00
8504362c5e
trying to store id pkh. Doesn't work; wallet creation never completes
Tadge Dryja
2015-12-31 11:29:00 -04:00
e70c6aa367
trying to store private identity key. Doesn't work.
Tadge Dryja
2015-12-31 01:40:41 -04:00
8bd8293c8c
can send messages from shell over grpc. doesn't do anything yet.
Tadge Dryja
2015-12-30 23:56:57 -04:00
e5e2a9a162
rpcprotos: remove now called lnrpc
Olaoluwa Osuntokun
2015-12-30 21:04:32 -06:00
40ff68a541
lnrpc: re-build proto files
Olaoluwa Osuntokun
2015-12-30 21:02:24 -06:00
8a50faaf47
add functions to rpc.proto, start lnshell
Tadge Dryja
2015-12-30 22:58:15 -04:00
6647bdd2b8
trying to get shell to connect over grpc
Tadge Dryja
2015-12-30 17:30:43 -04:00
31f3df2183
add gitignore, cli shell
Tadge Dryja
2015-12-30 16:19:09 -04:00
a93b6dcee4
Messages for funding flow.
Joseph Poon
2015-12-30 05:38:57 -08:00
a5f0d3e56e
lnwallet: require TLS for rpc client
Olaoluwa Osuntokun
2015-12-29 21:52:20 -06:00
ace1aca43c
lnwallet: actually connect the rpc client...
Olaoluwa Osuntokun
2015-12-29 21:08:56 -06:00
75132e631a
plasma: don't return, exit
Olaoluwa Osuntokun
2015-12-29 20:59:16 -06:00
d3da6e8f42
cmd/lncli: properly pretty print json response
Olaoluwa Osuntokun
2015-12-29 20:58:58 -06:00
f2d3c2455b
cmd/lncli: add new package, implements cli for plasma
Olaoluwa Osuntokun
2015-12-29 20:31:03 -06:00
47801bd927
Script fix and notes reflecting wire protocol change
Joseph Poon
2015-12-29 17:10:00 -08:00
56d31697d1
plasma: skeleton for main method for daemon
Olaoluwa Osuntokun
2015-12-29 18:23:27 -06:00
0620580937
rpcserver: add compile time interface assertion
Olaoluwa Osuntokun
2015-12-29 17:21:42 -06:00
02aa54f127
rpcprotos: rename service so it shows up as LightningServer
Olaoluwa Osuntokun
2015-12-29 17:21:27 -06:00
2c42fdb629
rpcserver: server implementation for basic rpc commands
Olaoluwa Osuntokun
2015-12-29 17:09:38 -06:00
b3e821c4d2
lnwallet: make KeyGenMtx public, roc server needs to synchronize
Olaoluwa Osuntokun
2015-12-29 17:09:32 -06:00
1acc528bda
rpcprotos: switch amount in sendmany from uint64 to int64
Olaoluwa Osuntokun
2015-12-29 17:08:04 -06:00
dcd9e69d90
rpcprotos: add protos for basic wallet usage
Olaoluwa Osuntokun
2015-12-29 16:47:24 -06:00
e07e7cfec9
lnwallet: actually add the config file
Olaoluwa Osuntokun
2015-12-29 16:04:23 -06:00
7640e57cdc
lnwallet: add dirty config
Olaoluwa Osuntokun
2015-12-29 15:59:57 -06:00
f1717b9620
lnwallet: embed btwallet within LightningWallet, exposes all methods publicly
Olaoluwa Osuntokun
2015-12-29 12:44:59 -06:00
6a9011654a
"typo" correction
Joseph Poon
2015-12-29 05:46:51 -08:00
ba56797b43
Ohhh... right.
Joseph Poon
2015-12-29 05:46:03 -08:00
1e79ad7236
Minor note
Joseph Poon
2015-12-29 05:43:07 -08:00
02a9b1e237
While making things match closely with Rusty's wire protocol, I noticed he didn't allow for multiple HTLCs. Gotta explain the rationale for that that... will merge the progress in the next commit tomorrow.
Joseph Poon
2015-12-29 05:24:02 -08:00
bc7bdcd22b
lnwallet: remove draft wire structs from reservation.go, now lives in lnwire
Olaoluwa Osuntokun
2015-12-28 23:58:06 -06:00
1c4887e746
lnwallet: drop some comments upon script_utils.go
Olaoluwa Osuntokun
2015-12-28 23:55:36 -06:00
7648fee903
lnwallet: note to future roasbeef
Olaoluwa Osuntokun
2015-12-28 23:54:48 -06:00
ef7a2aa553
lnwallet: properly set sequence number in tx for CSV usage
Olaoluwa Osuntokun
2015-12-28 23:41:58 -06:00
774192ecc7
lnwallet: store their commit sig in channel reservation
Olaoluwa Osuntokun
2015-12-28 23:38:50 -06:00
1b9d34f614
channeldb: don't store commit sig separately, expected to be within the txin of the commit tx
Olaoluwa Osuntokun
2015-12-28 14:16:55 -06:00
1fd1d87e34
lnwallet/tests: include csv delay in channel reservation init, add doc strings
Olaoluwa Osuntokun
2015-12-28 14:16:20 -06:00
b95eb25595
lnwallet: generate a commitment transaction signature fo bob in wallet_test.go
Olaoluwa Osuntokun
2015-12-28 14:15:46 -06:00
9840585757
lnwallet: actually use 'amount' parameter
Olaoluwa Osuntokun
2015-12-28 14:14:26 -06:00
6eb77b02c2
lnwallet: add comments to wallet.go
Olaoluwa Osuntokun
2015-12-28 14:14:00 -06:00
8ca8eb60fb
lnwallet: verify received commitment tx signature is valid
Olaoluwa Osuntokun
2015-12-28 14:13:41 -06:00
695a1e6c45
lnwallet: sign the REDEEMSCRIPT not the p2sh script :)
Olaoluwa Osuntokun
2015-12-28 14:13:07 -06:00
17f37cc254
lnwallet: shutdown rpc connection during stoppage
Olaoluwa Osuntokun
2015-12-28 14:12:39 -06:00
36e7c38812
lnwallet: introduce mutex around coin selection logic
Olaoluwa Osuntokun
2015-12-28 14:12:18 -06:00
7874357384
lnwallet: remove unused struct
Olaoluwa Osuntokun
2015-12-28 14:11:32 -06:00
161b1b5e4c
Message interface and stuff.
Joseph Poon
2015-12-28 03:24:16 -08:00
f51a5a6458
Holy shit pointer crap was annoying! Serialize/deserialize works now.
Joseph Poon
2015-12-26 23:52:20 -08:00
0c0900006d
Upon further reflection Our/Their seperation makes no sense
Joseph Poon
2015-12-26 20:37:17 -08:00
b79d0cc65a
(still need to fix deserialize... io wasn't working so I'm using bytes)
Joseph Poon
2015-12-26 18:23:58 -08:00
09f07770fd
Funding request serialize/deserialize (io reader/writer and pointers were very confusing -_-;)
Joseph Poon
2015-12-26 18:20:25 -08:00
7990d9501a
Merge branch 'master' of li.lan:labs/plasma
Olaoluwa Osuntokun
2015-12-26 12:35:42 -06:00
4fdb2763e6
channeldb: create new channeldb package, update lnwallet to use new API
Olaoluwa Osuntokun
2015-12-26 12:35:15 -06:00
d7a1c5d337
lnwallet: check for nil buckets during fetch in channeldb
Olaoluwa Osuntokun
2015-12-26 00:12:31 -06:00
3e2a753271
lnwallet: touch config smelly
Olaoluwa Osuntokun
2015-12-26 00:11:39 -06:00
a10a678505
add some daemon related skeleton files
Olaoluwa Osuntokun
2015-12-26 00:09:17 -06:00
0307f321ad
lnwallet: switch LightningChannel struct to use channeldb instead of raw namespace
Olaoluwa Osuntokun
2015-12-26 00:08:04 -06:00
890ceecc1a
lnwallet: csv delay is a uint32, fill forgotten fields in channel state
Olaoluwa Osuntokun
2015-12-26 00:07:30 -06:00
b4e33587b1
lnwallet: switch to using channeldb
Olaoluwa Osuntokun
2015-12-26 00:05:55 -06:00
ff92efe7df
lnwallet: add node's ID to reservation workflow
Olaoluwa Osuntokun
2015-12-26 00:05:07 -06:00
4bb526854a
lnwallet: fix bug don't set TheirCommitSig twice
Olaoluwa Osuntokun
2015-12-26 00:03:53 -06:00
e345f72d69
lnwallet: implement FetchOpenChannel and PutOpenChannel
Olaoluwa Osuntokun
2015-12-25 18:00:44 -06:00
1386d798f5
lnwallet: add tests for serialization of OpenChannelState
Olaoluwa Osuntokun
2015-12-25 17:00:53 -06:00
8e5f028eea
lnwallet: create channeldb.go add serialization methods for OpenChannel
Olaoluwa Osuntokun
2015-12-25 17:00:20 -06:00
c2403d4b2d
shachain: switch encode/decode methods to use io.Reader/Writer
Olaoluwa Osuntokun
2015-12-24 12:48:24 -06:00
5840786922
lnwallet: save redeemScript in channel state
Olaoluwa Osuntokun
2015-12-24 12:42:29 -06:00
15f15bb3af
rename revocation package to shachain
Olaoluwa Osuntokun
2015-12-24 12:42:03 -06:00
07646d05db
move channel state struct to channeldb.go
Olaoluwa Osuntokun
2015-12-24 12:41:15 -06:00
868ac0aca0
revocation: switch to tadge's bit-shifting to figure out log2 instead of using math
Olaoluwa Osuntokun
2015-12-23 12:12:53 -06:00
fc9ebb52f3
Refactor funding request, will separate to multiple files later
Joseph Poon
2015-12-23 00:08:34 -08:00
a4762b818f
Merge branch 'master' of li.lan:labs/plasma
Olaoluwa Osuntokun
2015-12-22 22:39:28 -06:00
882e7640d5
lnwallet: update tests to switch to new workflow
Olaoluwa Osuntokun
2015-12-22 22:32:18 -06:00
d24831dc29
lnwallet: update workflow around contributions
Olaoluwa Osuntokun
2015-12-22 22:31:17 -06:00
e762d328fa
lnwallet: add ChannelContribution, finalize ChannelReservation API/workflow
Olaoluwa Osuntokun
2015-12-22 22:30:11 -06:00
b606804934
lnwallet: add comments to fields of OpenChannelState
Olaoluwa Osuntokun
2015-12-22 22:27:33 -06:00
55c8710cb9
Minor optimization in script opcodes
Joseph Poon
2015-12-22 16:45:21 -08:00
fbc5f37d0b
remove dependencies on mathematics
Tadge Dryja
2015-12-21 22:36:28 -05:00