← Back to Glossary

Onion Messages

Onion messages are a way to send private and secure messages over the internet.

Onion messages are a way to send private and secure messages over the internet. Think of it like sending a letter inside several envelopes. Each envelope hides the message and the previous envelopes, making it hard for anyone to see the original message or know who sent it.

Onion messages work in several stages. First, the message is encrypted multiple times, each layer of encryption is like a new envelope around the original message. Then, the message travels through several computers (also known as nodes).

Each node opens one “envelope,” decrypting one layer without knowing the entire message or where it came from. And because each node only knows its immediate sender and receiver, the original message and sender’s identity remain hidden from everyone except the final recipient. In the Bitcoin Lightning Network, onion messages help keep transactions and communications private from intermediary nodes, protecting user identities and transaction details from being exposed.

Only the sender and receiver have full knowledge of the transaction, increasing privacy and security within the network.

Onion Messages is a concept within the Lightning Network, Bitcoin's layer-2 scaling solution that enables fast, low-cost transactions. Onramp's glossary covers Onion Messages and related Lightning Network technology to help investors understand Bitcoin's expanding payment infrastructure.

Frequently Asked Questions

What is Onion Messages?

Onion Messages is a component or feature of the Lightning Network, which enables near-instant Bitcoin payments by creating off-chain payment channels between parties.

How does Onion Messages improve Bitcoin payments?

Onion Messages contributes to faster and cheaper Bitcoin transactions by enabling off-chain settlement. Lightning Network transactions typically complete in under a second with fees of fractions of a cent.

Does Onramp support Lightning Network technology?

Onramp provides educational resources on Lightning Network concepts like Onion Messages to help investors understand the full scope of Bitcoin's payment capabilities and scaling solutions.

Related Terms

Multi-Institution Custody

Are you ready?

The best security available for your Bitcoin without the technical burden. It’s time to upgrade.

Sign up