mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-28 13:52:55 +02:00
htlcswitch: add docs for circuit bucket hierarchy
This commit is contained in:
@@ -137,11 +137,31 @@ var (
|
||||
// a packet to the source link, potentially including an error
|
||||
// encrypter for applying this hop's encryption to the payload in the
|
||||
// reverse direction.
|
||||
//
|
||||
// Bucket hierarchy:
|
||||
//
|
||||
// circuitAddKey(root-bucket)
|
||||
// |
|
||||
// |-- <incoming-circuit-key>: <encoded bytes of PaymentCircuit>
|
||||
// |-- <incoming-circuit-key>: <encoded bytes of PaymentCircuit>
|
||||
// |
|
||||
// ...
|
||||
//
|
||||
circuitAddKey = []byte("circuit-adds")
|
||||
|
||||
// circuitKeystoneKey is used to retrieve the bucket containing circuit
|
||||
// keystones, which are set in place once a forwarded packet is
|
||||
// assigned an index on an outgoing commitment txn.
|
||||
//
|
||||
// Bucket hierarchy:
|
||||
//
|
||||
// circuitKeystoneKey(root-bucket)
|
||||
// |
|
||||
// |-- <outgoing-circuit-key>: <incoming-circuit-key>
|
||||
// |-- <outgoing-circuit-key>: <incoming-circuit-key>
|
||||
// |
|
||||
// ...
|
||||
//
|
||||
circuitKeystoneKey = []byte("circuit-keystones")
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user