0

According to the specifications: https://github.com/lightning/bolts/blob/master/04-onion-routing.md#onion-messages

What's the maximum number of hops an onion message can travel?

1 Answer 1

0

I've found that headers are 66 bytes (version 1, public_key 33, HMAC 32) so the payload is 32834 - 66 = 32768 bytes. OM intermediary hops payloads are at least 70 bytes (length 1, HMAC 32, type 1, subtype 1, blinded_node_id 33, enclen 2). Hence the maximum travel distance is 32768 / 70 = 468 hops. Are these calculations correct?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.