in attestation crate we have two methods verify_dcap_attestation (with basic list of args) and verify_dcap_attestation_with_given_timestamp (with extended list) that could be collapsed into just one if we use builder pattern.
for example, we could have something like:
#[derive(Default)]
struct Verifier {
pccs_url: Option<String>,
now: Option<u64>,
collateral: Option<QuoteCollateralV3>,
override_azure_outdated_tcb: bool,
}
with builder methods like .with_pccs_url(pccs_url), and a method .verify(input, expected_result)
in
attestationcrate we have two methodsverify_dcap_attestation(with basic list of args) andverify_dcap_attestation_with_given_timestamp(with extended list) that could be collapsed into just one if we use builder pattern.for example, we could have something like:
with builder methods like
.with_pccs_url(pccs_url), and a method.verify(input, expected_result)