File size: 626 Bytes
224e773 | 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 | #[derive(Debug, Clone)]
pub struct ProofObligation {
pub id: hyperkitty_core::ProofId,
pub predicate: String,
}
impl ProofObligation {
pub fn new(predicate: String) -> Self {
Self { id: hyperkitty_core::ProofId::new(vec![]), predicate }
}
pub fn verify(&self, _world: &crate::WorldState) -> bool { true }
}
#[derive(Debug, Clone)]
pub struct ProofCertificate {
pub obligation_id: hyperkitty_core::ProofId,
pub satisfied: bool,
}
impl ProofCertificate {
pub fn new(obligation_id: hyperkitty_core::ProofId, satisfied: bool) -> Self {
Self { obligation_id, satisfied }
}
}
|