You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -586,7 +586,7 @@ On view appearance the attestations are presented with the receiveRequest method
586
586
_=await presentationSession.receiveRequest()
587
587
}
588
588
```
589
-
After the request is received the ``presentationSession.disclosedDocumentSets`` contains an array of credential selection options. Each element is a `[DocElements]` representing one valid combination of credentials that satisfies the query. The selected state of the items can be modified via UI binding. Finally, the response is sent with the following code:
589
+
After the request is received the ``presentationSession.disclosedDocumentSets`` contains an array of credential selection options. Each element is a `[DocElements]` representing one valid combination of credentials that satisfies the query. The selected state of the items can be modified via UI binding. Finally, the response is sent with the following code. The optional `deviceNameSpacesToSend` parameter can be used to include device-signed namespaces in the response:
590
590
591
591
```swift
592
592
// Use the first credential selection option (or let the user choose)
Copy file name to clipboardExpand all lines: Sources/EudiWalletKit/EudiWalletKit.docc/PresentationService.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,8 @@ After the request is received, ``PresentationSession/disclosedDocumentSets`` con
79
79
80
80
When partial-claim presentation is enabled, each option includes only the claims that are both requested and available. The selected state of the items can be modified via UI binding.
81
81
82
+
The `deviceNameSpacesToSend` parameter allows including device-signed namespaces in the response. Pass a ``RequestDeviceNameSpaces`` value when device namespaces are needed, or omit it to send only issuer-signed data.
83
+
82
84
```swift
83
85
// Example: use the first credential selection option
84
86
let selectedOption = presentationSession.disclosedDocumentSets.first?? []
@@ -144,6 +146,8 @@ public final class OpenId4VpService: @unchecked Sendable, PresentationService {
144
146
vpNonce = vp.nonce; vpClientId = resolvedClientId
145
147
mdocGeneratedNonce =OpenId4VpUtils.generateMdocGeneratedNonce() // Not longer required for SessionTranscript, use the verifier (client) nonce i.e vpNonce
0 commit comments