zpay32: create new package for encoding/decoding payment requests

This commit adds a new package “zpay32”: which is used within the
daemon to encode/decode payment requests. A payment request currently
consists of: the public key of the payee, the payment hash to use, and
finally the amount to send over the network. The encoded payment
request consists of the mentioned fields concatenated to each other, a
cc32 checksum is added, then the blob is finally encoded using zbas32.
I call the resulting scheme “zpay32”.

A number of extensions may be explored in future commits including
adding a version byte, adding “hint” routing information,
cryptographically signed receipts and more,
This commit is contained in:
Olaoluwa Osuntokun committed 2017-01-02 15:17:58 -08:00
1 parent d2e712c19d
commit bd0cf51581
4 files changed
+235 -3

No files matched your search

+1
View File
@@ -60,3 +60,4 @@ import:
- package: github.com/btcsuite/btcd
subpackages:
- connmgr
- package: github.com/tv42/zbase32