-
Notifications
You must be signed in to change notification settings - Fork 0
/
notation.sty
66 lines (62 loc) · 2.25 KB
/
notation.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
% Generic
\newcommand{\pk}{\vn{pk}}
\newcommand{\sk}{\vn{sk}}
\newcommand{\lang}{\mathcal{L}}
\newcommand{\nizkproof}{\pi}
\newcommand{\ledgerstate}{\Sigma}
\newcommand{\prf}{\vn{prf}}
\newcommand{\sn}{\vn{sn}}
\newcommand{\cm}{\vn{cm}}
\newcommand{\comm}{\vn{comm}}
\newcommand{\tx}{\tau}
\newcommand{\txid}{\mathsf{txid}}
% Kachina
\newcommand{\kachinaname}{Kachina}
\newcommand{\kachina}{{\text{\rmfamily\scshape\kachinaname}}}
\newcommand{\ankachina}{a \kachina}
\newcommand{\kachinaes}{\kachina's}
\newcommand{\contractclass}[1]{\mathbb{C}_{#1}}
\newcommand{\classkachina}{\contractclass{\kachina}}
\newcommand{\oracle}{\mathcal{O}}
\newcommand{\transcript}{\mathcal{T}}
\newcommand{\utm}{\mathcal{U}}
\newcommand{\decomm}{\mathsf{decomm}}
\newcommand{\tnsfnmainkachina}{\tnsfn_{\kachina}}
\newcommand{\lkgfnmainkachina}{\lkgfn_{\kachina}}
\newcommand{\confirmations}{\vec{\boldsymbol c}}
\newcommand{\splittranscript}{\vec{\boldsymbol\transcript}}
\newcommand{\partresults}{\vec{\boldsymbol y}}
% UC names
\newcommand{\gledger}{{\gfunct{ledger}}}
\newcommand{\gsimpleledger}{{\gfunct{simpleLedger}}}
\newcommand{\gdelayledger}[1][\delay]{{\gfunct{delayLedger}^{#1}}}
\newcommand{\gperfectledger}{{\gfunct{perfectLedger}}}
\newcommand{\gl}{\gfunct{L}}
\newcommand{\gclock}{{\gfunct{clock}}}
\newcommand{\fsc}[1][\tnsfn,\lkgfn]{\funct{sc}^{#1}}
\newcommand{\fnizk}[1][\lang]{\funct{nizk}^{#1}}
\newcommand{\fnizkr}{\fnizk[\lang,r]}
\newcommand{\delay}{\delta}
\newcommand{\proofs}{{\Pi}}
\newcommand{\disproofs}{{\overline{\Pi}}}
\newcommand{\Rho}{P}
\newcommand{\costmodel}{\boldsymbol\$}
\newcommand{\tnsfncostmodel}{\costmodel_{\vn{zk}}}
\newcommand{\oraclecostmodel}{\costmodel_{\vn{std}}}
\newcommand{\oraclecostmodelest}{{\mathrm E}_{\vn{std}}}
% Misc
\def\btc{%
\leavevmode
\vtop{\offinterlineskip %\bfseries
\setbox0=\hbox{B}%
\setbox2=\hbox to\wd0{\hfil\hskip-.03em
\vrule height .3ex width .15ex\hskip .08em
\vrule height .3ex width .15ex\hfil}
\vbox{\copy2\box0}\box2}}
\newcommand{\eoe}{{\color[RGB]{204,36,29}\vspace{.5em}\hrule\vspace{.2em}\hrule\hrule\vspace{.2em}\hrule\vspace{.5em}}}
\newcommand{\starttoc}{
\section*{Table of Contents}
\def\authcount##1{\setcounter{auco}{##1}\setcounter{@auth}{1}}
\setcounter{tocdepth}{2}
\@starttoc{toc}
}