Skip to content

Commit 892f9cc

Browse files
committed
feat: use macro for addresses in shorthand and command
1 parent 6c180ca commit 892f9cc

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

hub/scenario/shorthands/precompile.tex

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -114,24 +114,24 @@
114114
\scenPrecompileWeightedSum _{i}
115115
\define
116116
\left[ \begin{array}{rcl}
117-
+ \; \mathtt{0x\,01} & \cdot & \scenEcrecover _{i} \\
118-
+ \; \mathtt{0x\,02} & \cdot & \scenShaTwo _{i} \\
119-
+ \; \mathtt{0x\,03} & \cdot & \scenRipemd _{i} \\
120-
+ \; \mathtt{0x\,04} & \cdot & \scenIdentity _{i} \\
121-
+ \; \mathtt{0x\,05} & \cdot & \scenModexp _{i} \\
122-
+ \; \mathtt{0x\,06} & \cdot & \scenEcadd _{i} \\
123-
+ \; \mathtt{0x\,07} & \cdot & \scenEcmul _{i} \\
124-
+ \; \mathtt{0x\,08} & \cdot & \scenEcpairing _{i} \\
125-
+ \; \mathtt{0x\,09} & \cdot & \scenBlake _{i} \\
126-
+ \; \mathtt{0x\,0a} & \cdot & \scenPointEvaluation _{i} \\
127-
+ \; \mathtt{0x\,0b} & \cdot & \scenBlsGOneAdd _{i} \\
128-
+ \; \mathtt{0x\,0c} & \cdot & \scenBlsGOneMsm _{i} \\
129-
+ \; \mathtt{0x\,0d} & \cdot & \scenBlsGTwoAdd _{i} \\
130-
+ \; \mathtt{0x\,0e} & \cdot & \scenBlsGTwoMsm _{i} \\
131-
+ \; \mathtt{0x\,0f} & \cdot & \scenBlsPairingCheck _{i} \\
132-
+ \; \mathtt{0x\,10} & \cdot & \scenBlsMapFpToGOne _{i} \\
133-
+ \; \mathtt{0x\,11} & \cdot & \scenBlsMapFpTwoToGTwo _{i} \\
134-
+ \; \mathtt{0x\,100} & \cdot & \scenPVerify _{i} \\
117+
+ \; \prcAddressEcRecoverValue & \cdot & \scenEcrecover _{i} \\
118+
+ \; \prcAddressShaValue & \cdot & \scenShaTwo _{i} \\
119+
+ \; \prcAddressRipemdValue & \cdot & \scenRipemd _{i} \\
120+
+ \; \prcAddressIdentityValue & \cdot & \scenIdentity _{i} \\
121+
+ \; \prcAddressModexpValue & \cdot & \scenModexp _{i} \\
122+
+ \; \prcAddressEcAddValue & \cdot & \scenEcadd _{i} \\
123+
+ \; \prcAddressEcMulValue & \cdot & \scenEcmul _{i} \\
124+
+ \; \prcAddressEcPairingValue & \cdot & \scenEcpairing _{i} \\
125+
+ \; \prcAddressBlakeValue & \cdot & \scenBlake _{i} \\
126+
+ \; \prcAddressPointEvaluationValue & \cdot & \scenPointEvaluation _{i} \\
127+
+ \; \prcAddressBlsGOneAddValue & \cdot & \scenBlsGOneAdd _{i} \\
128+
+ \; \prcAddressBlsGOneMsmValue & \cdot & \scenBlsGOneMsm _{i} \\
129+
+ \; \prcAddressBlsGTwoAddValue & \cdot & \scenBlsGTwoAdd _{i} \\
130+
+ \; \prcAddressBlsGTwoMsmValue & \cdot & \scenBlsGTwoMsm _{i} \\
131+
+ \; \prcAddressBlsPairingCheckValue & \cdot & \scenBlsPairingCheck _{i} \\
132+
+ \; \prcAddressBlsMapFpToGOneValue & \cdot & \scenBlsMapFpToGOne _{i} \\
133+
+ \; \prcAddressBlsMapFpTwoToGTwoValue & \cdot & \scenBlsMapFpTwoToGTwo _{i} \\
134+
+ \; \prcAddressPVerifyValue & \cdot & \scenPVerify _{i} \\
135135
\end{array} \right]
136136
\]
137137
We also define the following

pkg/prc.sty

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
\newcommand{\blakeRowsMO} {\redm{29}}
2626
\newcommand{\blakeRows} {\redm{30}}
2727

28-
\newcommand{\prcAddressRange} {$\{\texttt{0x01},\texttt{0x02},\dots, \texttt{0x11}\} \cup \{\texttt{0x100}\}$}
28+
\newcommand{\prcAddressRange} {$\{\prcAddressEcRecoverValue,\prcAddressShaValue,\dots, \prcAddressBlsMapFpTwoToGTwoValue\} \cup \{\prcAddressPVerifyValue\}$}
2929

3030

3131
% \newcommand{\flagSumShakira} {\col{flag\_sum}}

0 commit comments

Comments
 (0)