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.
29 lines
836 B
TeX
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}
|
|
|