Commit Graph

29 Commits

Author SHA1 Message Date
Michael Schmoock
7953dc0011 noise: fix _msat purge leftover 2022-12-29 14:37:05 +01:00
Christian Decker
7ef9e6c172 docs: Rename from c-lightning to core-lightning for local plugins 2022-05-13 18:07:13 +02:00
Michael Schmoock
43317e0901 noise: rename last_id to msg_id and make code more readable 2022-02-21 17:54:11 +01:00
Michael Schmoock
ac9d1e4be1 noise: cleanup some nits 2022-02-21 17:54:11 +01:00
Michael Schmoock
8e0c748253 noise: adds testcase that checks correct order
Just to check the latest fix does not break anything.
2022-02-21 17:54:11 +01:00
Michael Schmoock
23a8f09b4d noise: fix #331
fixes an off by one error
2022-02-21 17:54:11 +01:00
Michael Schmoock
f472484acd noise: adds xfail testcase for #331 2022-02-21 17:54:11 +01:00
Michael Schmoock
a7448c91c1 noise: revert broken fix #332 for #331 2022-02-21 17:54:11 +01:00
Michael Schmoock
689be5a70d noise: adds docstrings to plugin methods 2022-02-21 17:54:11 +01:00
PestToast
6df68dcebc Update noise.py
This fixes the problems described in issue #331
2022-02-08 17:32:51 +01:00
Christian Decker
6a3a90ae08 noise: Disable flaky test 2021-06-22 19:18:13 +02:00
Christian Decker
ce9aaebad4 noise: Disable timing out tests
squash! noise: Disable timing out tests
2021-01-13 11:23:56 +01:00
Christian Decker
b0784e4ae2 meta: Add development requirements where missing
We're about to start testing in isolation, so better make sure that
each plugin can be tested in isolation.
2021-01-13 11:23:56 +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
d738a77c6e noise: Fixup documentation about waiting for next message 2020-12-11 11:03:22 +01:00
Christian Decker
8668a2244d noise: Disabled retry test for being way too flaky 2020-05-18 22:44:49 +02: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
3a39b61ab7 noise: Remove overeager limitation for varints 2020-02-04 12:32:07 +01:00
Christian Decker
c3e316d79e noise: Sort TlvPayload fields before serializing
This is part of the spec
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