• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

input-output-hk / atala-prism-wallet-sdk-swift / 9466819027

11 Jun 2024 01:48PM UTC coverage: 40.328% (-0.5%) from 40.822%
9466819027

Pull #145

github

web-flow
Merge 1399bca59 into 8e68386ce
Pull Request #145: feat(pollux): add support for sd-jwt

76 of 394 new or added lines in 20 files covered. (19.29%)

2 existing lines in 2 files now uncovered.

4518 of 11203 relevant lines covered (40.33%)

16.34 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/EdgeAgentSDK/Pollux/Sources/PolluxImpl+Public.swift
1
import Core
2
import Domain
3
import Foundation
4

5
extension PolluxImpl: Pollux {
6
    public func restoreCredential(restorationIdentifier: String, credentialData: Data) throws -> Credential {
×
NEW
7
        do {
×
NEW
8
            switch restorationIdentifier {
×
NEW
9
            case "sd-jwt+credential":
×
NEW
10
                return try SDJWTCredential(sdjwtString: credentialData.tryToString())
×
NEW
11
            case "jwt+credential":
×
NEW
12
                return try JSONDecoder().decode(JWTCredential.self, from: credentialData)
×
NEW
13
            case "w3c+credential":
×
NEW
14
                return try JSONDecoder().decode(W3CVerifiableCredential.self, from: credentialData)
×
NEW
15
            case "anon+credential":
×
NEW
16
                return try JSONDecoder().decode(AnoncredsCredentialStack.self, from: credentialData)
×
NEW
17
            default:
×
NEW
18
                throw PolluxError.invalidCredentialError
×
NEW
19
            }
×
NEW
20
        } catch {
×
NEW
21
            print(error)
×
NEW
22
            throw error
×
23
        }
×
24
    }
×
25
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc