core-lightning/devtools
Rusty Russell f7ebbb2ec5 common: make sphinx code ignorant of payload format.
Now "raw_payload" is always the complete string (including realm or length
bytes at the front).

This has several effects:
1. We can receive an decrypt an onion which is grossly malformed.
2. We can still hand this to the htlc_accepted hook.
3. We then fail it unless the htlc_accepted accepts it manually.
4. The createonion API now takes the raw payload, and does not know
   anything about "style".

The only caveat is that the sphinx code needs to know the payload
length: we have a call for that, which simply tells it to copy the
entire onion (and treat us as the final node) if it's invalid.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-12-09 14:33:31 +01:00
..
.gitignore devtools/.gitignore: Ignore create-gossipstore checkchannels mkquery lightning-checkmessage 2019-10-29 12:18:27 -05:00
bolt11-cli.c common/bolt11: add secret support. 2019-11-24 23:33:17 +00:00
changelog.py changelog: Add a tool to extract changelog entries from the commits 2019-11-08 00:23:09 +00:00
checkchannels.c lightningd: change config-dir from plugin / wallet / hsm POV into <network> subdir 2019-11-23 22:42:34 +00:00
create-gossipstore.c JSON: remove handling of pre-Adelaide (B:T:N) short_channel_ids. 2019-09-06 14:19:14 +02:00
credit devtools: fix credit script. 2019-07-30 17:38:11 +08:00
decode-iolog devtools/decode-iolog: tool to decode hexstrings from io logging. 2019-05-31 18:36:38 +02:00
decodemsg.c common: rename decode_short_channel_ids.{c,h} to decode_array.{c.h} 2019-09-27 02:32:53 +00:00
dump-gossipstore.c gossipd: handle a "push" marker into the gossip_store. 2019-11-04 17:50:58 +01:00
gossipwith.c Init commit to be able to create a tor static service on the fly. 2019-12-03 23:35:18 +01:00
lightning-checkmessage.c devtools: lightning-lightning-checkmessage to validate zbase32 node sigs 2019-10-14 18:58:44 -05:00
Makefile common: make sphinx code ignorant of payload format. 2019-12-09 14:33:31 +01:00
mkclose.c common: allow subdaemons to specify the node_id in status messages. 2019-11-18 04:50:22 +00:00
mkcommit.c devtools: add note when using option-static-remotekey 2019-11-21 01:17:33 +00:00
mkencoded.c common: rename decode_short_channel_ids.{c,h} to decode_array.{c.h} 2019-09-27 02:32:53 +00:00
mkfunding.c devtools: fixup chainparams crash (global now) 2019-11-21 01:17:33 +00:00
mkgossip.c devtools: add privkey+hash printing to mkcommit/mkgossip 2019-11-21 01:17:33 +00:00
mkquery.c devtools/mkquery: tool to generate gossip query messages. 2019-09-30 07:08:07 +00:00
onion.c common: make sphinx code ignorant of payload format. 2019-12-09 14:33:31 +01:00
print_wire.c common: rename decode_short_channel_ids.{c,h} to decode_array.{c.h} 2019-09-27 02:32:53 +00:00
print_wire.h wire: handle bigsize/varint fields. 2019-07-27 21:19:57 -05:00
sql-rewrite.py Fix syntax error in sql-rewrite.py 2019-11-02 16:11:28 +01:00