Skip to content

Commit e38c80a

Browse files
committed
perf: sp1 obtain vk from proof instead of setting up the prover client
1 parent 49bfc2c commit e38c80a

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

aggregation_mode/src/aggregators/sp1_aggregator.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,16 @@ impl SP1ProofWithPubValuesAndElf {
3535
}
3636

3737
pub fn vk(&self) -> SP1VerifyingKey {
38-
vk_from_elf(&self.elf)
38+
// it is safe to unwrap here as we only support compressed proofs for sp1
39+
let vk = self
40+
.proof_with_pub_values
41+
.proof
42+
.try_as_compressed_ref()
43+
.unwrap()
44+
.vk
45+
.clone();
46+
47+
SP1VerifyingKey { vk }
3948
}
4049
}
4150

0 commit comments

Comments
 (0)