Skip to content

0xPolygonZero/zeth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zeth

Zeth is a Reth-based sequencer node for the Polygon Type 1 zkEVM. It facilitates witness generation that can be used as input to the Polygon prover. The project supports both SQLite and PostgreSQL backends for witness persistence.

Features

  • Reth-Based Sequencer Node: Operates as a sequencer node for the Type 1 zkEVM.
  • Witness Generation: Supports witness generation for the Type 1 prover.
  • Backend Support: Offers both SQLite and PostgreSQL backends for witness data persistence.
  • Modified Reth: Leverages a modified fork of reth.
  • Modified revm: Leverages a modified fork of revm.

Installation

To install Zeth, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/fractal-zkp/zeth.git
    cd zeth
  2. Build the Project:

    Use Cargo to build the project in release mode:

    cargo build --release

Usage

Once the project is built, you can run a development node with the following command:

./target/release/zeth node --dev --dev.block-max-transactions 1

This command runs a development node with a maximum of one transaction per block.

Note: If you receive the following error - Error: Failed to open database connection: error returned from database: (code: 14) unable to open database file then you must create the default sqlite database file by running touch polygon-zero.db.

Submit transactions to the rpc hosted at http://127.0.0.1:8545 with chain id 1337 using one of the test accounts associated with the test seed:

test test test test test test test test test test test junk

Prove the blocks using zero-bin, see the README.

Contributing

Contributions are welcome! Please fork the repository and create a pull request with your changes. Make sure to follow the established coding standards and include relevant tests.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contact Information

If you have any questions or need further assistance, feel free to create an issue in the repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages