mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-20 18:12:30 +02:00
htlcswitch/test: add encrypted data to blinded intermediate hop
Blinding points will always be accompanied by encrypted data, so update the test to more accurately represent reality.
This commit is contained in:
@ -247,6 +247,8 @@ var decodePayloadTests = []decodePayloadTest{
|
|||||||
0x02, 0x00,
|
0x02, 0x00,
|
||||||
// cltv
|
// cltv
|
||||||
0x04, 0x00,
|
0x04, 0x00,
|
||||||
|
// encrypted data
|
||||||
|
0x0a, 0x03, 0x03, 0x02, 0x01,
|
||||||
// blinding point (type / length)
|
// blinding point (type / length)
|
||||||
0x0c, 0x21,
|
0x0c, 0x21,
|
||||||
},
|
},
|
||||||
@ -254,6 +256,7 @@ var decodePayloadTests = []decodePayloadTest{
|
|||||||
testPubKey.SerializeCompressed()...,
|
testPubKey.SerializeCompressed()...,
|
||||||
),
|
),
|
||||||
shouldHaveBlinding: true,
|
shouldHaveBlinding: true,
|
||||||
|
shouldHaveEncData: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "final hop with mpp",
|
name: "final hop with mpp",
|
||||||
|
Reference in New Issue
Block a user