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.
28 lines
838 B
TeX
28 lines
838 B
TeX
\section{Pseudorandom Function for Stability}
|
|
|
|
\label{sec:prf}
|
|
|
|
FPC uses a cryptographic PRF to ensure deterministic thresholds:
|
|
|
|
\begin{lstlisting}[language=Go, caption=PRF-based threshold stability]
|
|
func deterministicThreshold(round int, seed []byte) float64 {
|
|
input := append(seed, uint64ToBytes(round)...)
|
|
hash := blake3.Sum256(input)
|
|
|
|
// Map hash to [0, 1]
|
|
val := binary.BigEndian.Uint64(hash[:8])
|
|
normalized := float64(val) / float64(^uint64(0))
|
|
|
|
// Scale to [thetaMin, thetaMax]
|
|
return thetaMin + (thetaMax-thetaMin)*normalized
|
|
}
|
|
\end{lstlisting}
|
|
|
|
This provides:
|
|
\begin{itemize}
|
|
\item \textbf{Determinism}: Same threshold for given round across honest nodes
|
|
\item \textbf{Testability}: Reproducible simulations
|
|
\item \textbf{Security}: Prevents adversarial threshold manipulation
|
|
\end{itemize}
|
|
|