Commit Graph

13 Commits

Author SHA1 Message Date
PestToast
6df68dcebc Update noise.py
This fixes the problems described in issue #331
2022-02-08 17:32:51 +01:00
Michael Schmoock
de5489c1d6 noise: fix flake8 nits 2020-12-13 15:36:15 +01:00
Christian Decker
b0d462a303 noise: Add total_messages key when returning a message 2020-12-11 11:03:22 +01:00
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