Basic Prover Example
Minimal flow to build a batch and produce a proof.
use fairseq::{Config, LighthouseConfig, Prover, Transaction};
fn main() -> anyhow::Result<()> {
let config = Config {
lighthouse: LighthouseConfig {
url: "https://lighthouse.fairseq.io".to_string(),
api_key: None,
},
};
let prover = Prover::new(config);
let txs: Vec<Transaction> = vec![];
let proof = prover.prove(txs)?;
println!("proof bytes = {}", proof.to_bytes().len());
Ok(())
}