Commit 6e7fd12
committed
Introduce
Add a generic `BlindedPathWithPadding` struct to handle padding
for `ForwardTlvs` and `ReceiveTlvs` used in `BlindedMessagePath`
and `BlindedPaymentPath`.
This struct applies padding to the contained TLVs, rounding them off to
a specified value.
This design provides flexibility in padding TLVs of varying sizes. The
`PADDING_ROUND_OFF` value is chosen to be sufficiently large to
properly mask the data type of the contained TLVs.BlindedPathWithPadding struct1 parent dd8a77f commit 6e7fd12
1 file changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
0 commit comments