進階
Route Hints 路由提示
了解閃電網路發票中的路由提示,如何幫助付款人找到私有通道路徑。
8 分鐘
什麼是路由提示?
路由提示是 BOLT 11 發票中包含的額外路由資訊,告訴付款人如何到達使用私有通道的接收者。
私有通道必需: 如果接收者只有私有通道,發票必須包含路由提示。
工作原理
Route Hints Solve This Problem
Without Route Hints:
[Alice] --> [Hub A] --> [Hub B] --> ???
Bob 只有私有通道,Alice 看不到 Bob
With Route Hints:
發票包含:{ pubkey: Hub B, scid: 私有通道, fee: ... }
Alice 知道:找到 Hub B,使用私有通道到 Bob
[Alice] --> [Hub A] --> [Hub B] --private--> [Bob] BOLT 11 格式
Each Hop Hint Contains: pubkey: 33 bytes • 前一節點公鑰 short_channel_id: 8 bytes fee_base_msat: 4 bytes fee_proportional_millionths: 4 bytes cltv_expiry_delta: 2 bytes
BOLT 11 限制
路由提示會暴露私有通道資訊。BOLT 12 盲化路徑解決這問題。
SCID Alias
使用通道別名而非真實 ID,提供一定程度的隱私保護。
相關資源
已複製連結