Files
papers/lux-mchain-mpc/sections/02-system-architecture.tex

55 lines
1.9 KiB
TeX

\section{System Architecture}
\subsection{M-Chain Overview}
\begin{figure}[h]
\centering
\begin{verbatim}
+---------------------------------------+
| M-Chain VM |
|---------------------------------------|
| \textbullet{} KeyShareRegistry (G1, G2, PK) |
| \textbullet{} SwapSigTx verifier |
| \textbullet{} SLA / Slashing manager |
| \textbullet{} RewardDistributor |
+------------------+--------------------+
|
WarpMsg<MProof> | ZAP /sign_swap(id)
v
+-----------+ +---------------------+ +-----------+
| X-Chain |<----| mpckeyd (per signer)|---->| BTC / ETH |
| SwapFx | +---------------------+ | XRPL… |
+-----------+ +-----------+
\end{verbatim}
\label{fig:architecture}
\end{figure}
\textbf{Key Components:}
\begin{itemize}
\item \textbf{M-Chain VM}: Coordinates threshold signature generation and validates SwapSigTx
\item \textbf{mpckeyd}: Validator-side daemon holding threshold key shares
\item \textbf{X-Chain Integration}: Consumes M-Chain proofs via Warp messaging
\item \textbf{External Chains}: Bitcoin, Ethereum, XRPL, etc.
\end{itemize}
\subsection{Consensus and Validator Set}
\textbf{Consensus Engine:} Lux consensus with 2-second finality
\textbf{Staking Requirements:}
\begin{itemize}
\item Minimum stake: 5,000 LUX per MPC signer
\item Committee sizes: BTC $\approx$ 15, ETH $\approx$ 15, XRPL $\approx$ 10
\item Threshold: $t = \lceil \frac{2n}{3} \rceil$ (e.g., 11-of-15 for BTC)
\end{itemize}
\textbf{Economic Alignment:}
\begin{align}
\text{Validator Reward} &= \text{Base Staking} + \text{MPC Fees} \\
\text{MPC Fee per Swap} &= 0.5 \text{ LUX} \times \frac{1}{t} \\
\text{Daily Revenue} &\approx 10{,}000 \text{ swaps} \times 0.5 \text{ LUX} = 5{,}000 \text{ LUX}
\end{align}