-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: François Bojarski <[email protected]> Co-authored-by: Lorenzo Gentile <[email protected]> Co-authored-by: David Pearce <[email protected]> Co-authored-by: ewile <[email protected]> Co-authored-by: Franklin Delehelle <[email protected]> Co-authored-by: bkolad <[email protected]>
- Loading branch information
0 parents
commit e455167
Showing
1,609 changed files
with
88,756 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Build & Upload the Specification | ||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
archive-build-spec: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install JetBrainsMono # https://www.guyrutenberg.com/2020/01/29/install-jetbrains-mono-in-debian-ubuntu/ | ||
run: mkdir JetBrainsMono | ||
&& cd JetBrainsMono | ||
&& wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/JetBrainsMono.zip | ||
&& unzip JetBrainsMono.zip | ||
&& sudo mv JetBrainsMono*.ttf /usr/share/fonts/ | ||
&& cd - | ||
- name: Install fontawesome | ||
run: sudo apt-get install fonts-font-awesome | ||
- name: Install tectonic | ||
run: curl --proto '=https' --tlsv1.2 -fsSL https://drop-sh.fullyjustified.net |sh | ||
- name: Install lualatex | ||
# run: sudo apt-get install texlive-latex-base && sudo apt install texlive-luatex && sudo apt-get install texlive-latex-extra | ||
run: sudo apt install texlive-full | ||
- name: Compile Specification | ||
run: make ospec | ||
- name: Upload the Specification | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: specification.pdf | ||
path: spec/_all_spec.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
*.fls | ||
*.aux | ||
*.log | ||
*.out | ||
*.toc | ||
*.synctex.gz | ||
*.bib | ||
*.xml | ||
*.fdb_latexmk | ||
*.blg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
.PHONY: alu bin exp gas oob | ||
|
||
view-%: lua_build | ||
cd $* && tectonic -X compile _all_$*.tex && evince _all_$*.pdf | ||
|
||
recompile-%: lua_build | ||
cd $* && tectonic -X compile _all_$*.tex | ||
|
||
buildOnGithub-%: lua_build | ||
cd $* && ../tectonic -X compile _all_$*.tex | ||
|
||
alu: view-alu | ||
blake: view-blake_data | ||
block_data: view-block_data | ||
block_hash: view-block_hash | ||
btc: view-btc_data | ||
bin: view-bin | ||
exp: view-exp | ||
euc: view-euc | ||
formal: view-formal | ||
gas: view-gas | ||
hash_data: view-hash_data | ||
hash_info: view-hash_info | ||
hub: view-hub | ||
lex: view-lex | ||
logd_data: view-log_data | ||
logi_info: view-log_info | ||
mmio: view-mmio | ||
modexp: view-modexp_data | ||
mmu: view-mmu | ||
mxp: view-mxp | ||
oob: view-oob | ||
prc: view-prc | ||
rlp_addr: view-rlp_addr | ||
rlp_txn: view-rlp_txn | ||
rlp_txnrcpt: view-rlp_txnrcpt | ||
rom: view-rom | ||
rom_lex: view-rom_lex | ||
shf: view-shf | ||
spec: view-spec | ||
stp: view-stp | ||
trm: view-trm | ||
txn_data: view-txn_data | ||
wcp: view-wcp | ||
|
||
ralu: recompile-alu | ||
rblake: recompile-blake_data | ||
rblock_data: recompile-block_data | ||
rblock_hash: recompile-block_hash | ||
rbtc: recompile-btc_data | ||
rbin: recompile-bin | ||
rexp: recompile-exp | ||
reuc: recompile-euc | ||
rformal: recompile-formal | ||
rgas: recompile-gas | ||
rhashd: recompile-hash_data | ||
rhashi: recompile-hash_info | ||
rhub: recompile-hub | ||
rlex: recompile-lex | ||
rlogd: recompile-log_data | ||
rlogi: recompile-log_info | ||
rmmio: recompile-mmio | ||
rmodexp: recompile-modexp_data | ||
rmmu: recompile-mmu | ||
rmxp: recompile-mxp | ||
roob: recompile-oob | ||
rprc: recompile-prc | ||
rrlp_addr: recompile-rlp_addr | ||
rrlp_txn: recompile-rlp_txn | ||
rrlp_txnrcpt: recompile-rlp_txnrcpt | ||
rrom: recompile-rom | ||
rrom_lex: recompile-rom_lex | ||
rshf: recompile-shf | ||
rspec: recompile-spec | ||
rstp: recompile-stp | ||
rtrm: recompile-trm | ||
rtxn_data: recompile-txn_data | ||
rwcp: recompile-wcp | ||
|
||
ospec: buildOnGithub-spec | ||
|
||
# ============================================================================== | ||
# Lualatex Generation | ||
# ============================================================================== | ||
|
||
# Find all luatex files | ||
LUATEX_FILES=$(shell find * -name "*.lua.tex" -type f) | ||
# Determine target PDFS | ||
LUATEX_PDFS=$(LUATEX_FILES:%.lua.tex=%.pdf) | ||
|
||
lua_build: $(LUATEX_PDFS) | ||
|
||
%.pdf : %.lua.tex | ||
$(eval DIR := $(shell dirname "$<")) | ||
$(eval LUAPDF := $(shell echo "$@" | sed -e "s/\.pdf/\.lua\.pdf/")) | ||
lualatex --output-directory=$(DIR) "$<" | ||
mv "$(LUAPDF)" "$@" | ||
rm $(DIR)/*.log $(DIR)/*.aux | ||
|
||
lua_clean: | ||
rm $(LUATEX_PDFS) | ||
|
||
# adding e.g. | ||
# alias pdf='make -C ~/Documents/latex/zk-evm-notes/' | ||
# (or whatever your path is to the zk-evm-notes folder) to ~/.bashrc | ||
# allows one to execute commands like 'pdf oob' to view the oob module pdf from anywhere. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# zk-evm-notes | ||
Home of Linea's zk-evm specification. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
_all_alu.mtc | ||
_all_alu.mtc0 | ||
_all_alu.mtc5 | ||
_all_alu.mtc4 | ||
_all_alu.mtc3 | ||
_all_alu.mtc2 | ||
_all_alu.mtc1 |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{\reset@font\mtcSfont\mtc@string\contentsline{section}{\noexpand \leavevmode \numberline {1.1}Introduction}{\reset@font\mtcSfont 5}{section.1.1}} | ||
{\reset@font\mtcSfont\mtc@string\contentsline{section}{\noexpand \leavevmode \numberline {1.2}Notations}{\reset@font\mtcSfont 5}{section.1.2}} | ||
{\reset@font\mtcSfont\mtc@string\contentsline{section}{\noexpand \leavevmode \numberline {1.3}\texttt {setAbsoluteValue}{} i.e. constraints for taking absolute values}{\reset@font\mtcSfont 6}{section.1.3}} | ||
{\reset@font\mtcSfont\mtc@string\contentsline{section}{\noexpand \leavevmode \numberline {1.4}\texttt {setNegative}{} i.e. constraints for taking negatives}{\reset@font\mtcSfont 7}{section.1.4}} | ||
{\reset@font\mtcSfont\mtc@string\contentsline{section}{\noexpand \leavevmode \numberline {1.5}\texttt {setAddition}{} and \texttt {setSubtraction}{} i.e. constraints for addition and subtraction}{\reset@font\mtcSfont 8}{section.1.5}} | ||
{\reset@font\mtcSfont\mtc@string\contentsline{section}{\noexpand \leavevmode \numberline {1.6}\texttt {setMultiplication}{} i.e. constraints for multiplying \texttt {uint256}'s}{\reset@font\mtcSfont 9}{section.1.6}} | ||
{\reset@font\mtcSfont\mtc@string\contentsline{section}{\noexpand \leavevmode \numberline {1.7}Verifying a euclidean division}{\reset@font\mtcSfont 9}{section.1.7}} | ||
{\reset@font\mtcPfont\mtc@string\contentsline{paragraph}{\noexpand \leavevmode Verifying ${0 \leq \mathsf {R} < \mathsf {B}}$.}{\reset@font\mtcPfont 10}{section*.3}} | ||
{\reset@font\mtcPfont\mtc@string\contentsline{paragraph}{\noexpand \leavevmode Verifying ${\mathsf {A}} = {\mathsf {Q} \cdot \mathsf {B}} + {\mathsf {R}}$ over the integers.}{\reset@font\mtcPfont 10}{section*.4}} | ||
{\reset@font\mtcSfont\mtc@string\contentsline{section}{\noexpand \leavevmode \numberline {1.8}Verifying extended modular arithmetic}{\reset@font\mtcSfont 11}{section.1.8}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{\reset@font\mtcSfont\mtc@string\contentsline{section}{\noexpand \leavevmode \numberline {2.1}Introduction}{\reset@font\mtcSfont 13}{section.2.1}} | ||
{\reset@font\mtcSfont\mtc@string\contentsline{section}{\noexpand \leavevmode \numberline {2.2}Column descriptions}{\reset@font\mtcSfont 13}{section.2.2}} | ||
{\reset@font\mtcSfont\mtc@string\contentsline{section}{\noexpand \leavevmode \numberline {2.3}Stamp constancies}{\reset@font\mtcSfont 14}{section.2.3}} | ||
{\reset@font\mtcSfont\mtc@string\contentsline{section}{\noexpand \leavevmode \numberline {2.4}Heartbeat}{\reset@font\mtcSfont 14}{section.2.4}} | ||
{\reset@font\mtcSfont\mtc@string\contentsline{section}{\noexpand \leavevmode \numberline {2.5}``Type'' constraints}{\reset@font\mtcSfont 14}{section.2.5}} | ||
{\reset@font\mtcSfont\mtc@string\contentsline{section}{\noexpand \leavevmode \numberline {2.6}Byte decomposition constraints}{\reset@font\mtcSfont 15}{section.2.6}} | ||
{\reset@font\mtcSfont\mtc@string\contentsline{section}{\noexpand \leavevmode \numberline {2.7}Target constraints}{\reset@font\mtcSfont 15}{section.2.7}} | ||
{\reset@font\mtcSfont\mtc@string\contentsline{section}{\noexpand \leavevmode \numberline {2.8}Graphical representation}{\reset@font\mtcSfont 15}{section.2.8}} |
Oops, something went wrong.