Files
papers/lux-zchain/sections/16-solidity-interfaces.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

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.