59 Commits (41b18050a09bf4110f14164d55a8dc205eb71516)

Author SHA1 Message Date
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. 5 years ago
Rusty Russell e23f183468 common/sphinx: use bigsize_get not varint_get. 5 years ago
Chirimen-Jako b7119150a7 Fix build fail on 32bit environment. 5 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
Christian Decker 71cf4e1b39 sphinx: Add sphinx_path struct to encapsulate routing related info 6 years ago
Christian Decker ea4831363e sphinx: Consolidate some of the hard-coded parameter naming 6 years ago
lisa neigut 5c07afac7d bolt: update to BOLT spec changes (extract format + type specifications) 6 years ago
Christian Decker adb984dd45 hooks: Add the raw payload to the htlc_accepted call 6 years ago
Rusty Russell e0ec9ac521 libwally: update to 0.6.8. 6 years ago
Rusty Russell 837a095d68 pubkey: rename PUBKEY_DER_LEN to PUBKEY_CMPR_LEN. 6 years ago
Rusty Russell 3ac0e814d0 daemons: use amount_msat/amount_sat in all internal wire transfers. 6 years ago
Rusty Russell 7e8dbc1c37 sphinx: use struct pubkey. 6 years ago
Rusty Russell 59febcb968 sphinx: explain why parse_onionpacket fails. 6 years ago
Rusty Russell 5cf34d6618 Remove tal_len, use tal_count() or tal_bytelen(). 7 years ago
Rusty Russell 8553edb7e2 common: fix up BOLT 4 references. 7 years ago