Skip to content

Commit

Permalink
Merge pull request #47 from eu-digital-identity-wallet/develop
Browse files Browse the repository at this point in the history
Refactor MdocDecodable and MdocModelFactory protocols to conform to Sendable
  • Loading branch information
phisakel authored Oct 11, 2024
2 parents 39ba199 + 3cb60d1 commit c1b4383
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import UIKit
/// A conforming type represents mdoc data.
///
/// Can be decoded by a CBOR device response
public protocol MdocDecodable: DocumentProtocol, AgeAttesting {
public protocol MdocDecodable: Sendable, DocumentProtocol, AgeAttesting {
var issuerSigned: IssuerSigned? { get set}
var devicePrivateKey: CoseKeyPrivate? { get set}
var nameSpaces: [NameSpace]? { get set}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ limitations under the License.

import Foundation

public protocol MdocModelFactory {
static func makeMdocDecodable(id: String, createdAt: Date, issuerSigned: IssuerSigned, devicePrivateKey: CoseKeyPrivate, docType: String, displayName: String?, statusDescription: String?) -> (any MdocDecodable)?
public protocol MdocModelFactory: Sendable {
func makeMdocDecodable(id: String, createdAt: Date, issuerSigned: IssuerSigned, devicePrivateKey: CoseKeyPrivate, docType: String, displayName: String?, statusDescription: String?) -> (any MdocDecodable)?
}

0 comments on commit c1b4383

Please sign in to comment.