Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Integration of optimized keccak precompile #41

Open
wants to merge 46 commits into
base: dev
Choose a base branch
from

Conversation

StanislavBreadless
Copy link
Collaborator

@StanislavBreadless StanislavBreadless commented Oct 12, 2023

What ❔

Integration of the optimized Keccak256 precompile together with the migration to it.

Why ❔

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zk fmt and zk lint.

bootloader/bootloader.yul Outdated Show resolved Hide resolved
@StanislavBreadless StanislavBreadless marked this pull request as ready for review October 13, 2023 15:31
@StanislavBreadless StanislavBreadless changed the title Draft: Integration of optimized keccak precompile Integration of optimized keccak precompile Oct 14, 2023
@AntonD3
Copy link
Contributor

AntonD3 commented Oct 18, 2023

Btw, right now in order to preprocess the bootloader you need to build the Keccak256, it depends on the bytecode hash. And the compile-yul script compiles all the yul contracts(including the bootloader), so that's not possible to do it without errors. But that's not really important, because it's possible to run the compile-yul two times and just ignore the error.

AntonD3 and others added 5 commits October 20, 2023 16:00
* Zero ptr keccak test

* Update contracts/test-contracts/KeccakTest.sol

Co-authored-by: Vlad Bochok <41153528+vladbochok@users.noreply.github.com>

---------

Co-authored-by: Stanislav Bezkorovainyi <stanislavbezkor@gmail.com>
Co-authored-by: Vlad Bochok <41153528+vladbochok@users.noreply.github.com>
README.md Outdated Show resolved Hide resolved
contracts/precompiles/Keccak256.yul Outdated Show resolved Hide resolved
contracts/precompiles/Keccak256.yul Show resolved Hide resolved
contracts/precompiles/Keccak256.yul Outdated Show resolved Hide resolved
bootloader/bootloader.yul Outdated Show resolved Hide resolved
scripts/quick-setup.sh Outdated Show resolved Hide resolved
koloz193 and others added 23 commits November 15, 2023 17:26
Fix incorrect calculation for required number of keccak256 hash rounds
Reorder getter functions in the Bootloader
Add missing Comments for temporary functions in Bootloader and ContractDeployer
Co-authored-by: Vlad Bochok <41153528+vladbochok@users.noreply.github.com>
Co-authored-by: Vlad Bochok <41153528+vladbochok@users.noreply.github.com>
* fix misleading comment

* fix lint
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants