Skip to content

Commit

Permalink
Merge branch 'main' of github.com:spruceid/openid4vp into skit-723-im…
Browse files Browse the repository at this point in the history
…plement-mobile-disclosure-selection-for-wallet
  • Loading branch information
w4ll3 authored and theosirian committed Jan 17, 2025
1 parent 58972d2 commit 2697d01
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"cSpell.words": ["CHAPI"]
}
8 changes: 8 additions & 0 deletions src/core/input_descriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,13 @@ impl ConstraintsField {
RequestedField {
id: uuid::Uuid::new_v4(),
name: self.name.clone(),
// TODO: Figure out path
path: self
.path
.clone()
.into_iter()
.map(|e| format!("{}|", e.to_string()))
.collect(),
required: self.is_required(),
retained: self.intent_to_retain,
selective_disclosable: self.is_selective_disclosable(limit_disclosure),
Expand Down Expand Up @@ -688,6 +695,7 @@ pub struct RequestedField<'a> {
// The name property is optional, since it is also
// optional on the constraint field.
pub name: Option<String>,
pub path: String,
pub required: bool,
pub retained: bool,
pub selective_disclosable: bool,
Expand Down
2 changes: 2 additions & 0 deletions src/wallet.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use std::collections::HashMap;

use anyhow::{bail, Context, Result};
use async_trait::async_trait;
use http::header::CONTENT_TYPE;
Expand Down

0 comments on commit 2697d01

Please sign in to comment.