lnd/record
Elle Mouton 9ada4a9068
record: add Padding field to BlindedRouteData
When we start creating blinded paths to ourselves, we will want to be
able to pad the data for each hop so that the `encrypted_recipient_data`
for each hop is the same. We add a `PadBy` method that allows a caller
to add a certain number of bytes to the padding field. Note that adding
n bytes won't always mean that the encoded payload will increase by size
n since there will be overhead for the type and lenght fields for the new
TLV field. This will also be the case when the number of bytes added
results in a BigSize bucket jump for TLV length field. The
responsibility of ensuring that the final payloads are the same size is
left to the caller who may need to call PadBy iteratively to achieve the
goal. I decided to leave this to the caller since doing this at the
actual TLV level will be quite intrusive & I think it is uneccessary to
touch that code for this unique use case.
2024-07-10 09:12:40 +02:00
..
amp.go multi: Fix final hop payload size for AMP payments. 2024-02-03 12:16:06 +00:00
blinded_data_test.go record: add Padding field to BlindedRouteData 2024-07-10 09:12:40 +02:00
blinded_data.go record: add Padding field to BlindedRouteData 2024-07-10 09:12:40 +02:00
custom_records.go routerrpc+record: move custom set validation 2019-12-12 17:49:34 +01:00
experimental.go multi: rename key_send, key-send and key send to keysend 2020-01-16 18:37:16 -08:00
hop.go multi: add blinded path TLVs to onion payload / hops 2023-10-06 16:38:33 -07:00
mpp.go multi: formatting and comment fixes 2022-02-10 11:02:02 +01:00
record_test.go record: convert child_index from uint16 to uint32 2021-04-07 12:08:29 -07:00