-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: [zkos] witness RPC and larger config #548
base: main
Are you sure you want to change the base?
Conversation
* ugly hacks to return the witness * compute witness correctly * passing zkconfig along * moved zkos into zkos_config * moved zkos namespace to proper place * added docs * put dependency back on main branch
* refactor: reduce usage of `ForkStorage` outside `inner` module (#539) * reduce usage of `ForkStorage` outside `inner` module * adapt for zkos * fix destination path (#541) * fix: anvil-zksync able to start even if the port is busy (#542) * fix: closes #512 - start instance even if port is busy * chore: apply make lint:fix * chore: refactor test to make use of anvil-zksync instance * chore: remove no longer needed deps * chore: remove no longer needed deps * chore: bump actions/upload-artifact: v3 to v4 due to CI fail * chore: bump actions/upload-artifact / download: v3 to v4 due to CI fail * compilation fixes --------- Co-authored-by: Daniyar Itegulov <ditegulov@gmail.com> Co-authored-by: Nisheeth Barthwal <nbaztec@gmail.com> Co-authored-by: Dustin Brickwood <dustinbrickwood204@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a couple of nits.
Generally we are working on expanding the anvil_
namespace with new methods for managing batches deterministically (i.e. commitBatch
, proveBatch
, finalizeBatch
). getWitness
might fit there too.
|
||
/// API bindings for the `zkos` experimental namespace. | ||
#[rpc(server, namespace = "zkos")] | ||
pub trait ZKOSNamespace { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: acronyms are usually treated as one word in camel case, so ZkOsNamespace
instead of ZKOSNamespace
|
||
/// Genesis | ||
#[derive(Deserialize, Clone, Debug, Parser, Default)] | ||
pub struct ZKOSConfig { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: same thing here
What 💻
Why ✋
Evidence 📷