-
Notifications
You must be signed in to change notification settings - Fork 5
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
create evm prover #56
base: main
Are you sure you want to change the base?
Conversation
1855d49
to
1fe17e8
Compare
1fe17e8
to
cef1c84
Compare
|
||
impl ProverService { | ||
async fn new() -> Result<Self, Box<dyn std::error::Error>> { | ||
let token = env::var("CELESTIA_NODE_AUTH_TOKEN").expect("Token not provided"); |
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: this ENV variable isn't described in the README yet
.await | ||
.expect("Failed creating Celestia RPC client"); | ||
|
||
let evm_rpc = env::var("EVM_RPC_URL").expect("EVM_RPC_URL not provided"); |
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: this ENV variable isn't described in the README yet
cargo run | ||
``` | ||
|
||
To use the SP1 Prover Network you should also populate the `SP1_PROVER` and `SP1_PRIVATE_KEY` environment variables. You can also use a `.env` file for all environment variables |
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.
question: should we provide an example.env that users can copy with pre-populated defaults for the environment variables?
// Use the namespace from the request or a default | ||
let namespace = Namespace::new_v0(&alloy::hex::decode("0f0f0f0f0f0f0f0f0f0f").unwrap()) |
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: this doesn't use the namespace from the request yet, right?
// Use the namespace from the request or a default | |
let namespace = Namespace::new_v0(&alloy::hex::decode("0f0f0f0f0f0f0f0f0f0f").unwrap()) | |
// Use a default namespace | |
// TODO: use the namespace from the request | |
let namespace = Namespace::new_v0(&alloy::hex::decode("0f0f0f0f0f0f0f0f0f0f").unwrap()) |
- `TENDERMINT_RPC_URL` - the url of the tendermint chain you are proving. | ||
- `RPC_URL` the json rpc url of the evm chain you are generating the proofs for. | ||
- `CONTRACT_ADDRESS` - the evm address of the tendermint sp1 ics07 contract. |
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: I think these environment variables don't reflect the environment variables expected by the EVM prover
cef1c84
to
75c317b
Compare
e7cf02b
to
0f60e32
Compare
Overview
[WIP] create evm proving service