Skip to content
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(cli): Add private-key to deposit to batcher #1724

Open
wants to merge 4 commits into
base: staging
Choose a base branch
from

Conversation

PatStiles
Copy link
Contributor

Add private-key to deposit to batcher

Description

Addresses the second item of #1568.

Type of change

Please delete options that are not relevant.

  • New feature

Checklist

  • “Hotfix” to testnet, everything else to staging
  • Linked to Github Issue
  • This change depends on code or research by an external entity
    • Acknowledgements were updated to give credit
  • Unit tests added
  • This change requires new documentation.
    • Documentation has been added/updated.
  • This change is an Optimization
    • Benchmarks added/run
  • Has a known issue
  • If your PR changes the Operator compatibility (Ex: Upgrade prover versions)
    • This PR adds compatibility for operator for both versions and do not change batcher/docs/examples
    • This PR updates batcher and docs/examples to the newer version. This requires the operator are already updated to be compatible

Copy link
Collaborator

@avilagaston9 avilagaston9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a nit comment. Otherwise, LGTM!

let keystore_path = &submit_args.keystore_path;
let private_key = &submit_args.private_key;
let keystore_path = &submit_args.private_key_type.keystore_path;
let private_key = &submit_args.private_key_type.private_key;

if keystore_path.is_some() && private_key.is_some() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove this check

Copy link
Contributor

@uri-99 uri-99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing added to cli docs

@PatStiles PatStiles force-pushed the feat/add_private_key_to_deposit_to_batcher branch from 13f1ac7 to 9835802 Compare January 9, 2025 21:34
@PatStiles PatStiles force-pushed the feat/add_private_key_to_deposit_to_batcher branch from 9835802 to 1c4e019 Compare January 9, 2025 21:35
} else {
warn!("Missing keystore used for payment.");
return Ok(());
warn!("Missing keystore used for payment. This proof will not be included if sent to Eth Mainnet");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this param is required == true so this can't happen.
Also I don't think it makes much sense to add this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants