Christian Decker
3290e4e456
noise: Add a Payment class for keysend payments
...
Suggested-by: Richard Bondi <@rsbondi>
2020-02-04 12:32:07 +01:00
Christian Decker
41aeed024d
noise: Don't assume that we have the required fields
2020-02-04 12:32:07 +01:00
Christian Decker
f80cc060b9
noise: Do not expect TlvPayloads without checking
...
Suggested-by: @darosior
2020-02-04 12:32:07 +01:00
Christian Decker
11a946f152
noise: Add timestamp to payload
2020-02-04 12:32:07 +01:00
Christian Decker
f58d0292a5
noise: Don't depend on unstable pyln-proto features
2020-02-04 12:32:07 +01:00
Christian Decker
d2ca541728
noise: Added keysend functionality to attach a payment to a message
2020-02-04 12:32:07 +01:00
Christian Decker
528aa8410b
noise: Implement signature verification of chat messages
...
Since we don't pass the public key we just rely on the pubkey recovery and the
`checkmessage` interface to tell us whether it is a publicly known `node_id`
or not.
2020-02-04 12:32:07 +01:00
Christian Decker
3d3c7f75ba
noise: Allow malformed onion if it's the last hop
...
This was counted as a failure before, but it actually means we delivered
successfully.
2020-02-04 12:32:07 +01:00
Christian Decker
374fdadcbe
noise: Use the onion classes and fix the length prefix issue
2020-02-04 12:32:07 +01:00
Christian Decker
ac49e8bd07
noise: Initial version of the noise chat plugin
...
Based on the WhatSat idea by @joostjager, this plugin implements a simple chat
protocol based on top of `createonion` and `sendonion`.
2020-02-04 12:32:07 +01:00