Channels
Status: on Arctic.
A channel is a 32-byte secret K that a sender and a recipient share. A first contact sets it up once. Every later payment between them uses it, and no payment does its own key agreement.
Opening a channel
The sender encapsulates to the recipient's ML-KEM-768 key, which it reads from the address's channel receiver. The ciphertext, 1,088 bytes, travels with the sender's first payment as its first contact. Both ends then compute
K = BLAKE2b-256(
"Styx_ChannelSec_", ss ‖ ek ‖ ct)
from the shared secret ss, the encapsulation key ek and the ciphertext ct, so K is bound to the whole exchange.
What a channel derives
The sender numbers its payments on the channel i = 0, 1, 2, …, and derives, for each:
| What | Derivation |
|---|---|
| The memo's tag | the first 16 bytes of BLAKE2b-256("Styx_MemoTag____", K ‖ i) |
| The memo's key | BLAKE2b-256("Styx_MemoKey____", K ‖ i ‖ cmx), for the note's commitment cmx |
and once for the channel:
| What | Derivation |
|---|---|
| The Δ key | kΔ = BLAKE2b-256("Styx_DeltaKey___", K) |
Integers are 64-bit little-endian. Binding cmx makes every memo key single-use, even if a sender reuses an index; after opening a memo, the recipient recomputes cmx and rejects a mismatch. The Δ key lets the recipient of a bundle's designated output derive the seed of Δ's blinds itself (Recognising a program).
The self channel
A wallet also keeps a channel to itself, K = BLAKE2b-256("Styx_SelfChannel", sk) for its spending key sk. Change goes over it, and so do backups. Backup n has the tag made of the first 16 bytes of BLAKE2b-256("Styx_BackupTag__", K ‖ n), and is sealed under BLAKE2b-256("Styx_BackupKey__", K ‖ n).
Who can follow a channel
Only the channel's two ends know K. Its tags look random to anyone else, so an observer can't tell that two payments share a channel. The sender knows every tag it will use; the recipient learns of each payment by looking up the next tag.