From 273a5f4503eb3d05a0ed67918cf460ee5a086551 Mon Sep 17 00:00:00 2001 From: Filippos Sakellaropoulos Date: Thu, 5 Sep 2024 01:54:09 +0300 Subject: [PATCH 1/3] Document implements DocumentProtocol --- Sources/WalletStorage/Document.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/WalletStorage/Document.swift b/Sources/WalletStorage/Document.swift index 380f951..9b85cdc 100644 --- a/Sources/WalletStorage/Document.swift +++ b/Sources/WalletStorage/Document.swift @@ -18,7 +18,7 @@ import Foundation import MdocDataModel18013 /// wallet document structure -public struct Document { +public struct Document: DocumentProtocol { public init(id: String = UUID().uuidString, docType: String, docDataType: DocDataType, data: Data, privateKeyType: PrivateKeyType?, privateKey: Data?, createdAt: Date?, modifiedAt: Date? = nil, displayName: String?, status: DocumentStatus) { self.id = id self.docType = docType @@ -42,6 +42,7 @@ public struct Document { public let modifiedAt: Date? public let displayName: String? public let status: DocumentStatus + public var statusDescription: String? { status.rawValue } public var isDeferred: Bool { status == .deferred } /// get CBOR data and private key from document From abdb126f74abe4d75da11927e73e83877911d2f8 Mon Sep 17 00:00:00 2001 From: Filippos Sakellaropoulos Date: Thu, 5 Sep 2024 11:29:07 +0300 Subject: [PATCH 2/3] chore: Update dependencies to latest versions --- Package.resolved | 12 ++++++------ Package.swift | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Package.resolved b/Package.resolved index 68c7fd7..d729aaf 100644 --- a/Package.resolved +++ b/Package.resolved @@ -5,8 +5,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/eu-digital-identity-wallet/eudi-lib-ios-iso18013-data-model.git", "state" : { - "revision" : "bf62cc73ae2cea61e98020d2d037c153500207e7", - "version" : "0.2.5" + "revision" : "e604f0f0b67c86c3360f848defe85c9a9939b716", + "version" : "0.3.1" } }, { @@ -14,8 +14,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-collections.git", "state" : { - "revision" : "d029d9d39c87bed85b1c50adee7c41795261a192", - "version" : "1.0.6" + "revision" : "9bf03ff58ce34478e66aaee630e491823326fd06", + "version" : "1.1.3" } }, { @@ -23,8 +23,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-log.git", "state" : { - "revision" : "e97a6fcb1ab07462881ac165fdbb37f067e205d5", - "version" : "1.5.4" + "revision" : "9cb486020ebf03bfa5b5df985387a14a98744537", + "version" : "1.6.1" } }, { diff --git a/Package.swift b/Package.swift index 03c4d03..889acac 100644 --- a/Package.swift +++ b/Package.swift @@ -15,7 +15,7 @@ let package = Package( ], dependencies: [ .package(url: "https://github.com/apple/swift-log.git", from: "1.5.3"), - .package(url: "https://github.com/eu-digital-identity-wallet/eudi-lib-ios-iso18013-data-model.git", from: "0.2.5"), + .package(url: "https://github.com/eu-digital-identity-wallet/eudi-lib-ios-iso18013-data-model.git", from: "0.3.1"), ], targets: [ // Targets are the basic building blocks of a package, defining a module or a test suite. From 33631359e83f44b7bdb71493e12af5638f5c43d7 Mon Sep 17 00:00:00 2001 From: Filippos Sakellaropoulos Date: Thu, 5 Sep 2024 11:39:25 +0300 Subject: [PATCH 3/3] delete test --- Tests/WalletStorageTests/Resources/eu_pid_base64.txt | 1 - Tests/WalletStorageTests/WalletStorageTests.swift | 8 +------- 2 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 Tests/WalletStorageTests/Resources/eu_pid_base64.txt diff --git a/Tests/WalletStorageTests/Resources/eu_pid_base64.txt b/Tests/WalletStorageTests/Resources/eu_pid_base64.txt deleted file mode 100644 index 450c67e..0000000 --- a/Tests/WalletStorageTests/Resources/eu_pid_base64.txt +++ /dev/null @@ -1 +0,0 @@ -omppc3N1ZXJBdXRohEOhASahGCFZAoUwggKBMIICJqADAgECAgkWSuWZAtwFEGQwCgYIKoZIzj0EAwIwWDELMAkGA1UEBhMCQkUxHDAaBgNVBAoTE0V1cm9wZWFuIENvbW1pc3Npb24xKzApBgNVBAMTIkVVIERpZ2l0YWwgSWRlbnRpd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DE2NzQ2NHFlbGVtZW50SWRlbnRpZmllcnVhZG1pbmlzdHJhdGl2ZV9udW1iZXLYGFiHpGZyYW5kb21YQMjoQx3iRtzw7AJKwu-BIdtm01ivNfqejekxh9oBJ5GwXAwHJVfB9IpYoLt_Jg36hMwxwKnObQXc6Gsiq0CFvaloZGlnZXN0SUQYJWxlbGVtZW50VmFsdWViU0VxZWxlbWVudElkZW50aWZpZXJvaXNzdWluZ19jb3VudHJ52BhYjqRmcmFuZG9tWEB6pSEMLXaDJFLYp7zIqS2uWV-MiN9atCpSDe5nsvhb1gNZOa12EWihlFJEr57u0hqAy5pgSuE4FLR-ExI_WF3laGRpZ2VzdElEGBpsZWxlbWVudFZhbHVlZFNFLUlxZWxlbWVudElkZW50aWZpZXJ0aXNzdWluZ19qdXJpc2RpY3Rpb24 diff --git a/Tests/WalletStorageTests/WalletStorageTests.swift b/Tests/WalletStorageTests/WalletStorageTests.swift index 8dc7517..2d259c1 100644 --- a/Tests/WalletStorageTests/WalletStorageTests.swift +++ b/Tests/WalletStorageTests/WalletStorageTests.swift @@ -12,13 +12,7 @@ final class WalletStorageTests: XCTestCase { XCTAssert(Bool(pem.count > 0)) print(pem) } - - func testLoadPidIssuerSigned() { - let base64str = String(data: Data(name: "eu_pid_base64", ext: "txt", from: Bundle.module)!, encoding: .utf8)! - let pidIssueredSignedData = [UInt8](Data(base64URLEncoded: base64str.trimmingCharacters(in: .whitespacesAndNewlines))!) - let pidIssueredSigned = IssuerSigned(data: pidIssueredSignedData) - XCTAssertEqual(EuPidModel.euPidDocType, pidIssueredSigned?.issuerNameSpaces?.nameSpaces.map(\.key).first, "Test data contains PID doc type") - } + }