lnd.xprv/zpay32
Olaoluwa Osuntokun d94777acf6
zpay32: ensure argument to Decode is not an empty string
This commit fixes a possible panic which can arise within the library
due to poor user-data. We now explicitly check for an empty string,
exiting early if found within the Decode method.
2017-01-29 14:58:15 -08:00
..
README.md multi: add link to LICENSE in README license badges (#100) 2017-01-12 16:31:08 -08:00
zbase32check_test.go zpay32: create new package for encoding/decoding payment requests 2017-01-02 15:17:58 -08:00
zbase32check.go zpay32: ensure argument to Decode is not an empty string 2017-01-29 14:58:15 -08:00

zpay32

[Build Status] (https://travis-ci.org/lightningnetwork/lnd) [MIT licensed] (https://github.com/lightningnetwork/lnd/blob/master/LICENSE) [GoDoc] (http://godoc.org/github.com/lightningnetwork/lnd/zpay32)

The zpay32 package implements a basic scheme for the encoding of payment requests between two lnd nodes within the Lightning Network. The zpay32 encoding scheme uses the zbase32 scheme along with a checksum to encode a serialized payment request.

The payment request serialized by the package consist of: the destination's public key, the payment hash to use for the payment, and the value of payment to send.

Installation and Updating

$ go get -u github.com/lightningnetwork/lnd/zpay32