diff --git a/EdgeAgentSDK/Pollux/Sources/PolluxImpl+CredentialVerification.swift b/EdgeAgentSDK/Pollux/Sources/PolluxImpl+CredentialVerification.swift index 933a9377..9360c782 100644 --- a/EdgeAgentSDK/Pollux/Sources/PolluxImpl+CredentialVerification.swift +++ b/EdgeAgentSDK/Pollux/Sources/PolluxImpl+CredentialVerification.swift @@ -142,10 +142,10 @@ extension PolluxImpl { } let isRevoked = try await credential.isRevoked let isSuspended = try await credential.isSuspended - guard isRevoked else { + guard !isRevoked else { throw PolluxError.credentialIsRevoked(jwtString: jwtString) } - guard isSuspended else { + guard !isSuspended else { throw PolluxError.credentialIsSuspended(jwtString: jwtString) } } diff --git a/Package.swift b/Package.swift index 422407d8..3782109f 100644 --- a/Package.swift +++ b/Package.swift @@ -60,7 +60,7 @@ let package = Package( .package(url: "https://github.com/beatt83/jose-swift.git", from: "3.2.0"), .package(url: "https://github.com/beatt83/peerdid-swift.git", from: "3.0.1"), .package(url: "https://github.com/input-output-hk/anoncreds-rs.git", exact: "0.4.1"), - .package(url: "https://github.com/input-output-hk/atala-prism-apollo.git", exact: "1.3.3"), + .package(url: "https://github.com/hyperledger/identus-apollo.git", exact: "1.4.2"), .package(url: "https://github.com/KittyMac/Sextant.git", exact: "0.4.31"), .package(url: "https://github.com/kylef/JSONSchema.swift.git", exact: "0.6.0"), .package(url: "https://github.com/goncalo-frade-iohk/eudi-lib-sdjwt-swift.git", from: "0.0.2"), @@ -95,7 +95,7 @@ let package = Package( "Domain", "Core", .product(name: "AnoncredsSwift", package: "anoncreds-rs"), - .product(name: "ApolloLibrary", package: "atala-prism-apollo") + .product(name: "ApolloLibrary", package: "identus-apollo") ], path: "EdgeAgentSDK/Apollo/Sources" ),