Files
papers/lux-achain-attestation/sections/13-appendix-b-vendor-root-ca-management.tex
zeekay abf99d05fc papers: reorganize into per-paper dirs, add Antje Worring as co-author
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.
2026-04-18 21:50:07 -07:00

29 lines
836 B
TeX

\section{Appendix B: Vendor Root CA Management}
\begin{lstlisting}[language=Solidity, basicstyle=\footnotesize\ttfamily]
contract RootCARegistry {
mapping(TEEVendor => bytes) public rootCertificates;
mapping(TEEVendor => uint256) public lastUpdate;
event RootCAUpdated(
TEEVendor vendor,
bytes32 oldRoot,
bytes32 newRoot,
uint256 timestamp
);
function updateRootCA(
TEEVendor vendor,
bytes calldata newRoot
) external onlyGovernance {
require(newRoot.length > 0, "Invalid root CA");
bytes32 oldRoot = keccak256(rootCertificates[vendor]);
rootCertificates[vendor] = newRoot;
lastUpdate[vendor] = block.timestamp;
emit RootCAUpdated(vendor, oldRoot, keccak256(newRoot), block.timestamp);
}
}
\end{lstlisting}