-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(external-prover-api): Polish the API implementation (#2774)
## What ❔ - Use `L1BatchProofForL1` instead of `VerifyProofRequest`. - Rework errors: do not use "branching" variants that are handled separately in `IntoResponse`; instead use one variant per possible error. - Use `thiserror` to improve ergonomics of errors. - Do not use `Multipart` directly, instead use a dedicated type that implements `FromRequest`. - Introduce `Api` structure to implement axum API (instead of procedural approach) -- aligns better with the framework design. - Better separate `Processor` and `Api` in a way that `Processor` is backend-agnostic (e.g. know nothing about `axum`). - Remove dependency on `zksync_config`. - Improve framework integration. - Other minor things. ## Why ❔ Ergonomics, maintainability, and readability.
- Loading branch information
Showing
7 changed files
with
294 additions
and
290 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.