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.
23 lines
692 B
TeX
23 lines
692 B
TeX
\section{Solidity Interfaces}
|
|
|
|
|
|
\begin{verbatim}
|
|
interface IZChainPrivacy {
|
|
// Deposit into shielded pool
|
|
function deposit(uint256 amount, bytes32 commitment)
|
|
external returns (bool);
|
|
|
|
// Shielded transfer (requires zk-SNARK proof)
|
|
function transfer(bytes32 nullifier, bytes32 newCommitment,
|
|
bytes calldata zkProof) external returns (bool);
|
|
|
|
// Withdraw from shielded pool
|
|
function withdraw(uint256 amount, bytes calldata zkProof,
|
|
address recipient) external returns (bool);
|
|
}
|
|
\end{verbatim}
|
|
|
|
\vspace{1em}
|
|
\noindent\textit{Disclaimer.} This document describes a testnet protocol. Mainnet security guarantees depend on successful audits and cryptographic assumptions.
|
|
|