# A Treasure Hunt Inside Every Lightning Payment

DevFeed: [A Treasure Hunt Inside Every Lightning Payment](<https://devfeed.tech/articles/a-treasure-hunt-inside-every-lightning-payment-84151.md>)

Original publisher: [Read original article](<https://hackernoon.com/a-treasure-hunt-inside-every-lightning-payment?source=rss>)

Author: Camillarhi

Published: 2026-10-09T07:50:16Z

Content type: tutorial

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [Bitcoin](<https://devfeed.tech/topics/bitcoin.md>), [Cryptography](<https://devfeed.tech/topics/cryptography.md>), [Nano](<https://devfeed.tech/topics/nanocurrency.md>)

Tags: [bitcoin](<https://devfeed.tech/tags/bitcoin.md>), [bitcoin-lightning](<https://devfeed.tech/tags/bitcoin-lightning.md>), [bitcoin-lightning-network](<https://devfeed.tech/tags/bitcoin-lightning-network.md>), [bolt-4](<https://devfeed.tech/tags/bolt-4.md>), [code](<https://devfeed.tech/tags/code.md>), [cryptography](<https://devfeed.tech/tags/cryptography.md>), [fingerprint](<https://devfeed.tech/tags/fingerprint.md>), [hackernoon-top-story](<https://devfeed.tech/tags/hackernoon-top-story.md>), [lightning-network](<https://devfeed.tech/tags/lightning-network.md>), [lightning-network-security](<https://devfeed.tech/tags/lightning-network-security.md>), [onion-routing](<https://devfeed.tech/tags/onion-routing.md>), [sphinx-protocol](<https://devfeed.tech/tags/sphinx-protocol.md>)

## AI overview

This tutorial explains how Lightning payment onions use encrypted, fixed-size routing packets to hide the full route from intermediate nodes. It walks through BOLT 4's test vector, including per-hop instructions, ECDH-derived keys, seals, and precomputed filler, and notes that neighboring nodes can still infer some information from amounts and timelocks.

## Source excerpt

A Lightning payment passes through strangers without revealing its route. A treasure hunt with sealed envelopes shows what is really inside the onion.