diff --git a/contracts/okp4-dataverse/src/credential/error.rs b/contracts/okp4-dataverse/src/credential/error.rs index 161ac07e..85b87da3 100644 --- a/contracts/okp4-dataverse/src/credential/error.rs +++ b/contracts/okp4-dataverse/src/credential/error.rs @@ -12,9 +12,6 @@ pub enum InvalidCredentialError { #[error("Missing issuance date")] MissingIssuanceDate, - #[error("Missing proof, at least a supported one")] - MissingProof, - #[error("Invalid proof: {0}")] InvalidProof(#[from] InvalidProofError), diff --git a/contracts/okp4-dataverse/src/credential/vc.rs b/contracts/okp4-dataverse/src/credential/vc.rs index 74f6489e..06b96b3f 100644 --- a/contracts/okp4-dataverse/src/credential/vc.rs +++ b/contracts/okp4-dataverse/src/credential/vc.rs @@ -42,10 +42,6 @@ impl<'a> TryFrom<&'a Dataset<'a>> for VerifiableCredential<'a> { let (proofs, proof_graphs): (Vec>, Vec>) = Self::extract_proofs(dataset, id)?.into_iter().unzip(); - if proofs.is_empty() { - return Err(InvalidCredentialError::MissingProof); - } - let mut unsecured_filter: Vec> = proof_graphs .into_iter() .map(|g| (None, None, None, Some(Some(g.into()))).into())