diff --git a/Package.swift b/Package.swift index f22c147..72c03ae 100644 --- a/Package.swift +++ b/Package.swift @@ -16,7 +16,7 @@ let package = Package( dependencies: [ .package(url: "https://github.com/keefertaylor/Base58Swift.git", branch: "master"), .package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.8.1"), - .package(url: "https://github.com/decentralised-dataexchange/PresentationExchangeSdkiOS.git", .upToNextMajor(from: "2024.3.1")), + .package(url: "https://github.com/decentralised-dataexchange/PresentationExchangeSdkiOS.git", .upToNextMajor(from: "2024.8.1")), .package(url: "https://github.com/airsidemobile/JOSESwift.git", from: "2.3.0"), .package(url: "https://github.com/apple/swift-crypto.git", from:"3.5.2") ], diff --git a/Sources/eudiWalletOidcIos/Service/VerificationService.swift b/Sources/eudiWalletOidcIos/Service/VerificationService.swift index ced041b..46c8f4d 100644 --- a/Sources/eudiWalletOidcIos/Service/VerificationService.swift +++ b/Sources/eudiWalletOidcIos/Service/VerificationService.swift @@ -304,19 +304,14 @@ public class VerificationService: NSObject, VerificationServiceProtocol { fatalError("Failed to convert dictionary to string") } - let matchesString = matchCredentials(inputDescriptorJson: inputDescriptorString, credentials: processedCredentials) - // Assuming `matchesString` contains a JSON array of matches - if let matchesData = matchesString.data(using: .utf8), - let matchesArray = try? JSONSerialization.jsonObject(with: matchesData) as? [String: Any], - let matchedCredentials = matchesArray["MatchedCredentials"] as? [[String: Any]] { - // Now you have access to the "MatchedCredentials" list - for index in 0..