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

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

15 May 2024 05:57PM UTC coverage: 38.446%. Remained the same
9109509334

push

github

goncalo-frade-iohk
feat!(sdk): renaming the sdk and its components

BREAKING CHANGE: There was a renaming of components

Signed-off-by: goncalo-frade-iohk <goncalo.frade@iohk.io>

24 of 61 new or added lines in 29 files covered. (39.34%)

3943 of 10256 relevant lines covered (38.45%)

14.96 hits per line

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

0.0
/EdgeAgentSDK/EdgeAgent/Sources/Protocols/Connection/DIDCommConnectionRunner.swift
1
import Core
2
import Domain
3
import Foundation
4

5
class DIDCommConnectionRunner {
6
    private let invitationMessage: OutOfBandInvitation
7
    private let pluto: Pluto
8
    private let ownDID: DID
9
    private let connection: DIDCommConnection
10
    private var request: ConnectionRequest?
11

12
    init(
13
        invitationMessage: OutOfBandInvitation,
14
        pluto: Pluto,
15
        ownDID: DID,
16
        connection: DIDCommConnection
17
    ) {
×
18
        self.invitationMessage = invitationMessage
×
19
        self.pluto = pluto
×
20
        self.ownDID = ownDID
×
21
        self.connection = connection
×
22
    }
×
23

24
    func run() async throws -> DIDPair {
×
25
        let request = try ConnectionRequest(inviteMessage: invitationMessage, from: ownDID)
×
26
        try await connection.sendMessage(request.makeMessage())
×
27
        let message = try await pluto.getAllMessagesReceived()
×
28
            .flatMap { $0.publisher }
×
29
            .first { $0.thid == request.thid }
×
30
            .await()
×
31

×
32
        guard
×
33
            message.piuri == ProtocolTypes.didcommconnectionResponse.rawValue
×
34
        else {
×
NEW
35
            throw EdgeAgentError.invitationIsInvalidError
×
36
        }
×
37
        return DIDPair(holder: ownDID, other: request.to, name: nil)
×
38
    }
×
39
}
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

© 2026 Coveralls, Inc