mirror of
https://github.com/lux-apps/papers.git
synced 2026-10-30 18:15:21 +00:00
Restructured from flat .tex/.pdf files into per-paper subdirectories. Added Antje Worring as co-author on all papers. Synced PDFs to pdfs/ for download site.
12 lines
511 B
TeX
12 lines
511 B
TeX
\section{Domain Separator}
|
|
\label{sec:domain}
|
|
|
|
The domain separator prevents cross-protocol and cross-network message confusion:
|
|
|
|
$$\text{domainSeparator} = \text{keccak256}(\text{abi.encode}($$
|
|
$$\quad \text{``LuxTeleport''}, \text{version}, \text{networkID}, \text{srcChain}, \text{routerAddress}$$
|
|
$$))$$
|
|
|
|
Two messages from different networks, different protocol versions, different source chains, or different router contracts will have different domain separators, even if all other fields are identical.
|
|
|