Documentation
¶
Index ¶
Constants ¶
View Source
const ( MagicString = "rv" Len = magicbytes.Len + 1 + net.IPv6len + 2 )
Variables ¶
View Source
var (
Magic = slice.Bytes(MagicString)
)
Functions ¶
This section is empty.
Types ¶
type OnionSkin ¶
type OnionSkin struct {
// AddrPort is the address of the next relay in the return leg of a
// circuit.
*netip.AddrPort
types.Onion
}
OnionSkin is reply messages, distinct from forward.OnionSkin messages in that the header encryption uses a different secret than the payload. The magic bytes signal this to the relay that receives this, which then looks up the PayloadHey matching the To address in the message header. And lastly, each step the relay budges up it's message to the front of the packet and puts csprng random bytes into the remainder to the same length.
Click to show internal directories.
Click to hide internal directories.