70 Commits (fa4c2ff1cff2313ab4a3cdd10b46fb3760046bb8)

Author SHA1 Message Date
Rusty Russell 8c984fbf1d common: make sphinx.c use hmac.c. 5 years ago
Rusty Russell c66b3d4c04 common: make sphinx use struct secret internally. 5 years ago
Rusty Russell 24984ec680 common/sphinx: add realm flag so we can avoid legacy parsing. 5 years ago
Christian Decker 37105497f0 sphinx: Use fromwire_tal_arrn() to deserialize compressed onions 5 years ago
Christian Decker ef86ee0bae sphinx: Migrate sphinx compression to new interface 5 years ago
Christian Decker 6dd14a2039 sphinx: Kill read_buffer with fire 🔥 5 years ago
Christian Decker e79cda8c9a sphinx: Treat compressed onions as a standalone struct 5 years ago
Christian Decker fd37c5b672 sphinx: Expose the shared secret creation function 5 years ago
Christian Decker 49a3321d7e sphinx: Add functions to decompress 5 years ago
Christian Decker 59b6159e56 sphinx: Functions to enable RV mode and serialize compressed onions 5 years ago
Christian Decker 96dc0238ba sphinx: Working onion wrapping with filler cancellation 5 years ago
Rusty Russell c51c6f9133 sphinx: use crypto_stream_chacha20_xor to generate stream and xor at once. 5 years ago
Rusty Russell 2aad3ffcf8 common: tal_dup_talarr() helper. 5 years ago
Rusty Russell c11212bb52 pytest: test that we handle WIRE_UPDATE_FAIL_MALFORMED_HTLC correctly. 5 years ago
Christian Decker 9038364c63 sphinx: Actually use the pad stream to generate the packet 5 years ago
Rusty Russell 262e4c840f sphinx: use struct secret for shared secret. 5 years ago
Rusty Russell 1099f6a5e1 common: use struct onionreply. 5 years ago
Rusty Russell aae5148206 common: remove onionreply type from sphinx.c 5 years ago
Christian Decker 5e44895264 sphinx: Check the payload size at construction and in createonion 5 years ago
Christian Decker dff0a13bd1 sphinx: Make payload size computation publicly available 5 years ago
Rusty Russell 839909d2cf Protocol: make var_onion, payment_secret and basic_mpp non-EXPERIMENTAL. 5 years ago
Christian Decker ff5f7b194f sphinx: Return the error in parse_onionpacket 5 years ago
Rusty Russell f7ebbb2ec5 common: make sphinx code ignorant of payload format. 5 years ago
Rusty Russell bb538a1862 common: don't crash on bad sphinx payload. 5 years ago
Christian Decker 626675c83c tlv: Migrate tlv serialization to typesafe function 5 years ago
Christian Decker f569b52681 sphinx: Make the sphinx_hop struct public 5 years ago
Christian Decker 714b57241b sphinx: Promote TLV payloads to be non-experimental 5 years ago
Rusty Russell ebac3d2a85 spec: update to experimental BOLTs with secret/total_amount. 5 years ago
Christian Decker e46f423ae9 sphinx: Cleanup route_step_decode_* functions 5 years ago
Christian Decker baffa84291 sphinx: Decode payload and place shortcuts in the route-step 5 years ago
Christian Decker d69a43780c sphinx: Use the new `fromwire_tlv_payload` function 5 years ago
lisa neigut ea9faf6ff1 onion fixup: use enum for type, not length of packet 5 years ago
Christian Decker dda792c766 plugin: Pass the full raw_payload including realm to htlc_accepted 5 years ago
Rusty Russell 9dc8cff9b4 devtools/onion: use raw sphinx helper or new style, allow TLV. 5 years ago
Rusty Russell 0211712f5e sphinx: separate nonfinal from final interface, add tlv option. 5 years ago
Rusty Russell 2a2259083a lightningd: handle tlv-style payloads. 5 years ago
Rusty Russell b7bbccd6fa common/sphinx: handle decoding of TLV payload. 5 years ago
Rusty Russell a76518a029 common/sphinx: rename hop_data to hop_data_legacy. 5 years ago
Rusty Russell c62f0cb6ff sphinx: fix potential data leak. 5 years ago
Rusty Russell 3fa375881a bigsize: make it a proper first-class type. 6 years ago
Rusty Russell e23f183468 common/sphinx: use bigsize_get not varint_get. 6 years ago
Chirimen-Jako b7119150a7 Fix build fail on 32bit environment. 6 years ago
Christian Decker 78c7edb889 sphinx: Switch to big-endian number encoding 6 years ago
Christian Decker c752c3318d sphinx: Cleanup sphinx onion construction, remove realm 6 years ago
Christian Decker 660921a9dd sphinx: Introduce a `runtest` command to the onion tool 6 years ago
Christian Decker b83d15ea4a sphinx: Remove standalone v0 payload in favor of the unionized one 6 years ago
Christian Decker d607afd195 sphinx: Variable left-shift when unwrapping onion 6 years ago
Christian Decker 7bc4cf83b1 sphinx: Expose sphinx_add_raw_hop for testing 6 years ago
Christian Decker 75c0160c08 sphinx: Simplify the filler generation code 6 years ago
Christian Decker a0a1a1f752 sphinx: Add function to add a new v0 hop to a sphinx_path 6 years ago