-
Notifications
You must be signed in to change notification settings - Fork 396
Expand file tree
/
Copy pathlib.rs
More file actions
32 lines (27 loc) · 706 Bytes
/
lib.rs
File metadata and controls
32 lines (27 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use super::{
risc0_aggregator::{Risc0AggregationInput, Risc0ProofReceiptAndImageId},
sp1_aggregator::{SP1AggregationInput, SP1ProofWithPubValuesAndElf},
};
pub enum ProgramInput {
SP1(SP1AggregationInput),
Risc0(Risc0AggregationInput),
}
pub enum AggregatedProof {
SP1(Box<SP1ProofWithPubValuesAndElf>),
Risc0(Box<Risc0ProofReceiptAndImageId>),
}
pub struct ProgramOutput {
pub proof: AggregatedProof,
}
impl ProgramOutput {
pub fn new(proof: AggregatedProof) -> Self {
Self { proof }
}
}
#[derive(Debug)]
pub enum ProofAggregationError {
SP1Verification(sp1_sdk::SP1VerificationError),
SP1Proving,
Risc0Proving(String),
UnsupportedProof,
}