From 3f74cee0230ab755f12e21236cd555f853e2925b Mon Sep 17 00:00:00 2001 From: Paul Capestany Date: Sun, 17 Jan 2016 19:14:47 -0800 Subject: [PATCH 1/4] Address `go install` issues Error messages: peer.go:12:2: cannot find package "li.lan/labs/plasma/lnwallet" peer.go:13:2: cannot find package "li.lan/labs/plasma/lnwire" --- peer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peer.go b/peer.go index d36aac44..012ed148 100644 --- a/peer.go +++ b/peer.go @@ -9,8 +9,8 @@ import ( "github.com/btcsuite/btcd/wire" "github.com/lightningnetwork/lnd/lndc" - "li.lan/labs/plasma/lnwallet" - "li.lan/labs/plasma/lnwire" + "github.com/lightningnetwork/lnd/lnwallet" + "github.com/lightningnetwork/lnd/lnwire" ) var ( From 5bddb611dce8dc58e55209f1c68a3b6e4a66cb21 Mon Sep 17 00:00:00 2001 From: Paul Capestany Date: Sun, 17 Jan 2016 19:18:08 -0800 Subject: [PATCH 2/4] Fix build issue for `lncli` Error message: cmd/lncli/commands.go:27: undefined: shell --- cmd/lncli/commands.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index 7517b22f..a31a1b68 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -22,9 +22,11 @@ func printRespJson(resp interface{}) { } var ShellCommand = cli.Command{ - Name: "shell", - Usage: "enter interactive shell", - Action: shell, + Name: "shell", + Usage: "enter interactive shell", + Action: func(c *cli.Context) { + println("not implemented yet") + }, } var NewAddressCommand = cli.Command{ From 80b20bd039b167e10c5e84dac2fbfcc6edaa07f6 Mon Sep 17 00:00:00 2001 From: Paul Capestany Date: Sun, 17 Jan 2016 19:53:50 -0800 Subject: [PATCH 3/4] Update README with general build instructions --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ee181e85..cdbbbf7f 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,19 @@ This version of Lnd is not yet fully-operational, but a proof of concept on test Don't try to port it to mainnet or an altcoin and use it today! No really. Lightning transactions will be fast, but for now, please wait just a little bit. +## Installation + +* If necessary, install Go according to the installation instructions here: http://golang.org/doc/install. It is recommended to add `$GOPATH/bin` to your `PATH` at this point. +* Run the following command to obtain and install lnd, lncli, lnshell and all dependencies: + +``` +go get -u -v github.com/LightningNetwork/lnd/... +``` + +Feel free to disregard any errors/warnings related to the lnstate and uspv packages. + +## Packages and Utilities + ### chainntfs A package centered around a generic interface for receiving transaction/confirmation based notifications concerning the blockchain. Such notifications are required in order for pending payment channels to be notified once the funding transaction gains a specified number of confirmations, and in order to catch a counter-party attempting a non-cooperative close using a past commitment transaction to steal funds. @@ -32,7 +45,7 @@ This is useful for the hashed secrets in LN payment channels. ### lndc Library for authenticated encrypted communication between LN nodes. It uses chacha20_poly1305 for the symmetric cipher, and the secp256k1 curve used in bitcoin for public keys. No signing is used, only two ECDH calculations: first with ephemeral key pairs and second with persistent identifying public keys. -### lnrpc +### lnrpc lnd's RPC interface. Currently [gRPC](http://www.grpc.io/), a high-performance RPC framework is used. gRPC provides features such as a stub-based client interface in several languages, streaming RPCs, payload agnostic request/response handling, and more. In addition to gRPC, lnd will also offer a basic REST-based http RPC interface. For now, connections are not encrypted, or authenticated. For authentication, [macaroons](http://research.google.com/pubs/pub41892.html) will likely be integrated due to their simplicity, flexibility, and expressiveness. From f24d9af85a6ba71ca0611fdb66dc6f6af5ad20b6 Mon Sep 17 00:00:00 2001 From: Paul Capestany Date: Sun, 17 Jan 2016 19:59:54 -0800 Subject: [PATCH 4/4] Fix capitalization so `go get` instructions work properly --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cdbbbf7f..95321baa 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Don't try to port it to mainnet or an altcoin and use it today! No really. Lig * Run the following command to obtain and install lnd, lncli, lnshell and all dependencies: ``` -go get -u -v github.com/LightningNetwork/lnd/... +go get -u -v github.com/lightningnetwork/lnd/... ``` Feel free to disregard any errors/warnings related to the lnstate and uspv packages.