-
Notifications
You must be signed in to change notification settings - Fork 1
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
Client implementation #1
base: master
Are you sure you want to change the base?
Conversation
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.
Thanks for upstreaming :) Huge PR though, will need to make a few passes. Here's a first round of comments
|
||
|
||
|
||
anyhow = "1" #TODO: Remove |
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.
TODO: upstream lambdaclass#1
src/generated/disperser.rs
Outdated
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.
How are these files generated? We prob want eigenda repo as a submodule, and then use a build.rs to generate these files?
impl From<DisperserG1Commitment> for G1Commitment { | ||
fn from(value: DisperserG1Commitment) -> Self { | ||
Self { | ||
x: value.x, | ||
y: value.y, | ||
} | ||
} | ||
} |
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.
Is there any point in redefining G1Commitment here? Its literally the same struct as the one in generated/common.rs. Perhaps we can just use that one directly?
/// URL of the Ethereum RPC server | ||
pub eigenda_eth_rpc: String, | ||
/// Address of the service manager contract | ||
pub eigenda_svc_manager_address: String, |
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.
should we use https://docs.rs/alloy-primitives/latest/alloy_primitives/struct.Address.html instead of String?
#[derive(Clone, Debug, PartialEq)] | ||
pub enum PointsSource { | ||
Path(String), | ||
Link(String), |
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.
what is Link here? a url?
This PR moves the client implementation coming from zksync-era.
It has some changes to make it work as a lib: