Skip to content

Commit

Permalink
Fixed SD-JWT attestations not showing in AddDocument.
Browse files Browse the repository at this point in the history
  • Loading branch information
stzouvaras committed Jan 9, 2025
1 parent f415ced commit 9984e40
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Modules/logic-core/Sources/Controller/WalletKitController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -255,16 +255,17 @@ final class WalletKitControllerImpl: WalletKitController {
configId: credential.key.value,
isPid: DocumentTypeIdentifier(rawValue: config.docType) == .mDocPid
)
// MARK: - TODO Re-activate once SD-JWT PID Rule book is in place in ARF.
// case .sdJwtVc(let config):
// guard let vct = config.vct else {
// return nil
// }
// return ScopedDocument(
// name: config.display.getName(fallback: credential.key.value),
// configId: credential.key.value,
// isPid: DocumentTypeIdentifier(rawValue: vct) == .sdJwtPid
// )
// MARK: - TODO Re-activate isPid Check once SD-JWT PID Rule book is in place in ARF.
case .sdJwtVc(let config):
// guard let vct = config.vct else {
// return nil
// }
return ScopedDocument(
name: config.display.getName(fallback: credential.key.value),
configId: credential.key.value,
//isPid: DocumentTypeIdentifier(rawValue: vct) == .sdJwtPid
isPid: false
)
default: return nil
}
}
Expand Down

0 comments on commit 9984e40

Please sign in to comment.