diff --git a/dif-presentation-exchange/src/presentation_definition.rs b/dif-presentation-exchange/src/presentation_definition.rs index 5ae2db07..67569ae0 100644 --- a/dif-presentation-exchange/src/presentation_definition.rs +++ b/dif-presentation-exchange/src/presentation_definition.rs @@ -1,34 +1,7 @@ use getset::Getters; use serde::{Deserialize, Serialize}; -use serde_with::skip_serializing_none; use std::collections::HashMap; -// TODO: replace with identity_credential once this issue is resolved: -// https://github.com/iotaledger/identity.rs/issues/1151 -#[skip_serializing_none] -#[derive(Debug, Deserialize, Serialize, PartialEq, Clone)] -#[serde(rename_all = "camelCase")] -pub struct VerifiablePresentation { - #[serde(rename = "@context")] - pub context: Vec, - pub id: Option, - pub type_: Vec, - pub verifiable_credential: Option>, - pub holder: Option, -} - -impl Default for VerifiablePresentation { - fn default() -> Self { - VerifiablePresentation { - context: vec!["https://www.w3.org/2018/credentials/v1".to_string()], - id: None, - type_: vec!["VerifiablePresentation".to_string()], - verifiable_credential: None, - holder: None, - } - } -} - /// As specified in https://identity.foundation/presentation-exchange/#presentation-definition. #[allow(dead_code)] #[derive(Deserialize, Debug, Getters, PartialEq, Clone, Serialize)]