-
Notifications
You must be signed in to change notification settings - Fork 391
feat: aggregation mode sdk #1861
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
Conversation
this way we users don't need to know the internals of the agg_mode proof commitment which is still unstable
MauroToscano
left a comment
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.
@JuArce needs to test it, but it looks good
JuArce
left a comment
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
| }; | ||
|
|
||
| let Some(beacon_block) = beacon_client | ||
| .get_block_header_from_parent_hash(beacon_parent_root.0) |
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.
Isn't a way to avoid using indexes?
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 do you mean by indexes? If you mean the beacon_parent_root.0, that is not an index but a way to get the value that ethers library is wrapping.
| - Mainnet: `https://ethereum-rpc.publicnode.com` | ||
| - Holesky: `https://ethereum-holesky-rpc.publicnode.com` | ||
| - Also, you can use your own Ethereum RPC providers. | ||
| - `--beacon_client_url <BEACON_CLIENT_URL>`: User's Ethereum Consensus provider connection address. Public nodes don't support this method. |
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.
If it is possible, I'd add a free beacon client
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.
Free beacon client don't support retrieve the blob data. Should I still add one?
Description
Aggregation mode sdk method to verify if proof has been verified by the ProofAggregationService.
Note: this should be merged after #1871
How to run it
cdinto sdk project:cd batcher/alignedcargo run verify-agg-proof --network <NETWORK> --from-block <FROM_BLOCK> --proving_system SP1 --vk <VK_HASH_FILEPATH> --public_input <PUBLIC_INPUTS_FILEPATH> --beacon_url <BEACON_NODE_URL> --rpc_url <RPC_URL>For example:
Notes:
--from-blockis an optional params, if not provided it will fetch the logs from the past 24hs.Type of change
Please delete options that are not relevant.
Checklist
testnet, everything else tostaging