mirror of https://github.com/zcash/zips.git
Move some macros around.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
ac9da8aee8
commit
0d182e6ab8
|
@ -306,6 +306,8 @@
|
|||
\newcommand{\minimum}{\mathsf{min}}
|
||||
\newcommand{\floor}[1]{\mathsf{floor}\!\left({#1}\right)}
|
||||
\newcommand{\ceiling}[1]{\mathsf{ceiling}\!\left({#1}\right)}
|
||||
\newcommand{\vsum}[2]{\smashoperator[r]{\sum_{#1}^{#2}}}
|
||||
\newcommand{\vxor}[2]{\smashoperator[r]{\bigoplus_{#1}^{#2}}}
|
||||
\newcommand{\xor}{\oplus}
|
||||
|
||||
% key pairs:
|
||||
|
@ -340,10 +342,6 @@
|
|||
\newcommand{\TransmitPublicNew}[1]{\mathsf{pk^{new}_{\enc,\mathnormal{#1}}}}
|
||||
\newcommand{\TransmitPrivate}{\mathsf{sk_{enc}}}
|
||||
\newcommand{\TransmitPrivateSup}[1]{\mathsf{sk}^{#1}_\mathsf{enc}}
|
||||
\newcommand{\pksig}{\mathsf{pk_{sig}}}
|
||||
|
||||
\newcommand{\hSigInput}{\mathsf{hSigInput}}
|
||||
\newcommand{\dataToBeSigned}{\mathsf{dataToBeSigned}}
|
||||
|
||||
% PRFs
|
||||
\newcommand{\PRF}[2]{\mathsf{{PRF}^{#2}_\mathnormal{#1}}}
|
||||
|
@ -379,6 +377,8 @@
|
|||
\newcommand{\TransmitPlaintext}[1]{\Ptext^\enc_{#1}}
|
||||
\newcommand{\TransmitCiphertext}[1]{\Ctext^\enc_{#1}}
|
||||
\newcommand{\TransmitKey}[1]{\Key^\enc_{#1}}
|
||||
\newcommand{\Adversary}{\mathcal{A}}
|
||||
\newcommand{\CryptoBoxSeal}{\mathsf{crypto\_box\_seal}}
|
||||
|
||||
% Key agreement
|
||||
\newcommand{\KA}{\mathsf{KA}}
|
||||
|
@ -415,10 +415,15 @@
|
|||
\newcommand{\NoteAddressPreRand}{\mathsf{\upvarphi}}
|
||||
\newcommand{\NoteAddressPreRandLength}{\mathsf{\ell_{\NoteAddressPreRand}}}
|
||||
\newcommand{\NoteCommitS}{\mathsf{s}}
|
||||
\newcommand{\cm}{\mathsf{cm}}
|
||||
\newcommand{\cmOldX}[1]{\mathsf{{cm}^{old}_\mathrm{#1}}}
|
||||
\newcommand{\cmNew}[1]{\mathsf{{cm}^{new}_\mathnormal{#1}}}
|
||||
\newcommand{\snOldX}[1]{\mathsf{{sn}^{old}_\mathrm{#1}}}
|
||||
\newcommand{\nf}{\mathsf{nf}}
|
||||
\newcommand{\nfOld}[1]{\nf^\mathsf{old}_\mathnormal{#1}}
|
||||
\newcommand{\Memo}{\mathsf{memo}}
|
||||
\newcommand{\DecryptNote}{\mathtt{DecryptNote}}
|
||||
\newcommand{\ReplacementCharacter}{\textsf{U+FFFD}}
|
||||
|
||||
% Signatures
|
||||
\newcommand{\JoinSplitSigAlg}{\mathsf{JoinSplitSigAlg}}
|
||||
|
@ -428,19 +433,15 @@
|
|||
\newcommand{\JoinSplitSigVerify}{\mathsf{JoinSplitSig.Verify}}
|
||||
\newcommand{\JoinSplitSigSpecific}{\mathsf{Ed25519}}
|
||||
\newcommand{\JoinSplitSigHashName}{\mathsf{SHA\mhyphen512}}
|
||||
\newcommand{\cm}{\mathsf{cm}}
|
||||
\newcommand{\cmOldX}[1]{\mathsf{{cm}^{old}_\mathrm{#1}}}
|
||||
\newcommand{\cmNew}[1]{\mathsf{{cm}^{new}_\mathnormal{#1}}}
|
||||
\newcommand{\snOldX}[1]{\mathsf{{sn}^{old}_\mathrm{#1}}}
|
||||
\newcommand{\Adversary}{\mathcal{A}}
|
||||
\newcommand{\ReplacementCharacter}{\textsf{U+FFFD}}
|
||||
\newcommand{\CryptoBoxSeal}{\mathsf{crypto\_box\_seal}}
|
||||
\newcommand{\EdDSAr}{R}
|
||||
\newcommand{\EdDSAs}{S}
|
||||
\newcommand{\EdDSAR}{\bytes{R}}
|
||||
\newcommand{\EdDSAS}{\bytes{S}}
|
||||
\newcommand{\RandomSeedLength}{\mathsf{\ell_{Seed}}}
|
||||
\newcommand{\RandomSeedType}{\bitseq{\mathsf{\ell_{Seed}}}}
|
||||
\newcommand{\pksig}{\mathsf{pk_{sig}}}
|
||||
\newcommand{\hSigInput}{\mathsf{hSigInput}}
|
||||
\newcommand{\dataToBeSigned}{\mathsf{dataToBeSigned}}
|
||||
|
||||
% Merkle tree
|
||||
\newcommand{\MerkleDepth}{\mathsf{d}}
|
||||
|
@ -461,8 +462,6 @@
|
|||
\newcommand{\vJoinSplit}{\mathtt{vJoinSplit}}
|
||||
\newcommand{\vpubOldField}{\mathtt{vpub\_old}}
|
||||
\newcommand{\vpubNewField}{\mathtt{vpub\_new}}
|
||||
\newcommand{\vsum}[2]{\smashoperator[r]{\sum_{#1}^{#2}}}
|
||||
\newcommand{\vxor}[2]{\smashoperator[r]{\bigoplus_{#1}^{#2}}}
|
||||
\newcommand{\anchorField}{\mathtt{anchor}}
|
||||
\newcommand{\joinSplitSig}{\mathtt{joinSplitSig}}
|
||||
\newcommand{\joinSplitPubKey}{\mathtt{joinSplitPubKey}}
|
||||
|
@ -470,9 +469,7 @@
|
|||
\newcommand{\commitments}{\mathtt{commitments}}
|
||||
\newcommand{\ephemeralKey}{\mathtt{ephemeralKey}}
|
||||
\newcommand{\encCiphertexts}{\mathtt{encCiphertexts}}
|
||||
\newcommand{\RandomSeed}{\mathsf{randomSeed}}
|
||||
\newcommand{\randomSeed}{\mathtt{randomSeed}}
|
||||
\newcommand{\rt}{\mathsf{rt}}
|
||||
\newcommand{\Varies}{\textit{Varies}}
|
||||
\newcommand{\heading}[1]{\multicolumn{1}{c|}{#1}}
|
||||
\newcommand{\type}[1]{\texttt{#1}}
|
||||
|
@ -549,6 +546,8 @@
|
|||
\newcommand{\nNew}[1]{\NoteTuple{#1}^\mathsf{new}}
|
||||
\newcommand{\vOld}[1]{\mathsf{v}_{#1}^\mathsf{old}}
|
||||
\newcommand{\vNew}[1]{\mathsf{v}_{#1}^\mathsf{new}}
|
||||
\newcommand{\RandomSeed}{\mathsf{randomSeed}}
|
||||
\newcommand{\rt}{\mathsf{rt}}
|
||||
\newcommand{\treepath}[1]{\mathsf{path}_{#1}}
|
||||
\newcommand{\Receive}{\mathsf{Receive}}
|
||||
\newcommand{\EnforceCommit}[1]{\mathsf{enforce}_{#1}}
|
||||
|
|
Loading…
Reference in New Issue