From db7e7650c001e29e5f9988987ae24760d46c4bea Mon Sep 17 00:00:00 2001 From: Filippos Sakellaropoulos Date: Tue, 28 May 2024 16:33:08 +0300 Subject: [PATCH 1/4] Add unit test for issuer-signed cbor data --- .../Resources/eu_pid_base64.txt | 1 + .../WalletStorageTests.swift | 23 +++++++++++++++++++ .../eudi_lib_ios_wallet_storageTests.swift | 11 --------- 3 files changed, 24 insertions(+), 11 deletions(-) create mode 100644 Tests/WalletStorageTests/Resources/eu_pid_base64.txt create mode 100644 Tests/WalletStorageTests/WalletStorageTests.swift delete mode 100644 Tests/eudi-lib-ios-wallet-storageTests/eudi_lib_ios_wallet_storageTests.swift diff --git a/Tests/WalletStorageTests/Resources/eu_pid_base64.txt b/Tests/WalletStorageTests/Resources/eu_pid_base64.txt new file mode 100644 index 0000000..18fb237 --- /dev/null +++ b/Tests/WalletStorageTests/Resources/eu_pid_base64.txt @@ -0,0 +1 @@ +omppc3N1ZXJBdXRohEOhASahGCFZAoUwggKBMIICJqADAgECAgkWSuWZAtwFEGQwCgYIKoZIzj0EAwIwWDELMAkGA1UEBhMCQkUxHDAaBgNVBAoTE0V1cm9wZWFuIENvbW1pc3Npb24xKzApBgNVBAMTIkVVIERpZ2l0YWwgSWRlbnRpdHkgV2FsbGV0IFRlc3QgQ0EwHhcNMjMwNTMwMTIzMDAwWhcNMjQwNTI5MTIzMDAwWjBlMQswCQYDVQQGEwJCRTEcMBoGA1UEChMTRXVyb3BlYW4gQ29tbWlzc2lvbjE4MDYGA1UEAxMvRVUgRGlnaXRhbCBJZGVudGl0eSBXYWxsZXQgVGVzdCBEb2N1bWVudCBTaWduZXIwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAR8kxP0waSqTrCz62gRpJlOWd5nmWQxwvOuCI63oQYctli9jDkSbBlZeskN+Z0HjT7zkTujS9ssvGmH0Cfpr538o4HLMIHIMB0GA1UdDgQWBBTRpLEkOTL7RXJymUjyUn2VWKdNLTAfBgNVHSMEGDAWgBQykesOHAE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kZW50aWZpZXJ0aXNzdWluZ19qdXJpc2RpY3Rpb24= diff --git a/Tests/WalletStorageTests/WalletStorageTests.swift b/Tests/WalletStorageTests/WalletStorageTests.swift new file mode 100644 index 0000000..c7c8f86 --- /dev/null +++ b/Tests/WalletStorageTests/WalletStorageTests.swift @@ -0,0 +1,23 @@ +import XCTest +import Foundation +@testable import WalletStorage +import MdocDataModel18013 + +final class eudi_lib_ios_wallet_storageTests: XCTestCase { + + + func testIssueRequestPublicKey() throws { + let ir = try IssueRequest() + let pem = try ir.getPublicKeyPEM() + 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 pidIssueredSigned = Data(base64Encoded: base64str)! + print(pidIssueredSigned.count) + } + + +} diff --git a/Tests/eudi-lib-ios-wallet-storageTests/eudi_lib_ios_wallet_storageTests.swift b/Tests/eudi-lib-ios-wallet-storageTests/eudi_lib_ios_wallet_storageTests.swift deleted file mode 100644 index d13cc6c..0000000 --- a/Tests/eudi-lib-ios-wallet-storageTests/eudi_lib_ios_wallet_storageTests.swift +++ /dev/null @@ -1,11 +0,0 @@ -import XCTest -@testable import WalletStorage - -final class eudi_lib_ios_wallet_storageTests: XCTestCase { - func testIssueRequestPublicKey() throws { - let ir = try IssueRequest() - let pem = try ir.getPublicKeyPEM() - XCTAssert(Bool(pem.count > 0)) - print(pem) - } -} From d76ac488c79c0bf85f2cf03a5407c5987a740950 Mon Sep 17 00:00:00 2001 From: Filippos Sakellaropoulos Date: Tue, 28 May 2024 16:34:14 +0300 Subject: [PATCH 2/4] Add unit test for cbor data, update references --- Package.resolved | 10 +++++----- Package.swift | 4 ++-- Tests/WalletStorageTests/Resources/eu_pid_base64.txt | 2 +- Tests/WalletStorageTests/WalletStorageTests.swift | 7 ++++--- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Package.resolved b/Package.resolved index 6dd37c6..dee9fa1 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" : "f9811c94bdd6ea756a14f00aff9507eb932ae03d", - "version" : "0.2.0" + "revision" : "39134521d5c8df9302e60a1d98d3cb6405253d12", + "version" : "0.2.4" } }, { @@ -30,10 +30,10 @@ { "identity" : "swiftcbor", "kind" : "remoteSourceControl", - "location" : "https://github.com/scytales-com/SwiftCBOR.git", + "location" : "https://github.com/niscy-eudiw/SwiftCBOR.git", "state" : { - "revision" : "b23ed1e83d5daa3dfaf73846bee06a4681fea55f", - "version" : "0.5.0" + "revision" : "310dbc3975a5653237fed304d88a6dd59d04dd30", + "version" : "0.5.7" } } ], diff --git a/Package.swift b/Package.swift index efa3eb2..f01ee60 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.1.8"), + .package(url: "https://github.com/eu-digital-identity-wallet/eudi-lib-ios-iso18013-data-model.git", from: "0.2.4"), ], targets: [ // Targets are the basic building blocks of a package, defining a module or a test suite. @@ -28,6 +28,6 @@ let package = Package( ]), .testTarget( name: "WalletStorageTests", - dependencies: ["WalletStorage"]), + dependencies: ["WalletStorage"], resources: [.process("Resources")]), ] ) diff --git a/Tests/WalletStorageTests/Resources/eu_pid_base64.txt b/Tests/WalletStorageTests/Resources/eu_pid_base64.txt index 18fb237..450c67e 100644 --- a/Tests/WalletStorageTests/Resources/eu_pid_base64.txt +++ b/Tests/WalletStorageTests/Resources/eu_pid_base64.txt @@ -1 +1 @@ -omppc3N1ZXJBdXRohEOhASahGCFZAoUwggKBMIICJqADAgECAgkWSuWZAtwFEGQwCgYIKoZIzj0EAwIwWDELMAkGA1UEBhMCQkUxHDAaBgNVB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lxZWxlbWVudElkZW50aWZpZXJ0aXNzdWluZ19qdXJpc2RpY3Rpb24 diff --git a/Tests/WalletStorageTests/WalletStorageTests.swift b/Tests/WalletStorageTests/WalletStorageTests.swift index c7c8f86..8dc7517 100644 --- a/Tests/WalletStorageTests/WalletStorageTests.swift +++ b/Tests/WalletStorageTests/WalletStorageTests.swift @@ -3,7 +3,7 @@ import Foundation @testable import WalletStorage import MdocDataModel18013 -final class eudi_lib_ios_wallet_storageTests: XCTestCase { +final class WalletStorageTests: XCTestCase { func testIssueRequestPublicKey() throws { @@ -15,8 +15,9 @@ final class eudi_lib_ios_wallet_storageTests: XCTestCase { func testLoadPidIssuerSigned() { let base64str = String(data: Data(name: "eu_pid_base64", ext: "txt", from: Bundle.module)!, encoding: .utf8)! - let pidIssueredSigned = Data(base64Encoded: base64str)! - print(pidIssueredSigned.count) + 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") } From 4b1baed798ee5b0256d74bd41a93853097f817f0 Mon Sep 17 00:00:00 2001 From: Filippos Sakellaropoulos Date: Wed, 29 May 2024 00:34:55 +0300 Subject: [PATCH 3/4] Document getCborData() returns IssuerSigned --- Sources/eudi-lib-ios-wallet-storage/Document.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/eudi-lib-ios-wallet-storage/Document.swift b/Sources/eudi-lib-ios-wallet-storage/Document.swift index ae18d7a..a09a028 100644 --- a/Sources/eudi-lib-ios-wallet-storage/Document.swift +++ b/Sources/eudi-lib-ios-wallet-storage/Document.swift @@ -40,14 +40,14 @@ public struct Document { public let modifiedAt: Date? /// get CBOR data and private key from document - public func getCborData() -> (dr: DeviceResponse, dpk: CoseKeyPrivate)? { + public func getCborData() -> (iss: IssuerSigned, dpk: CoseKeyPrivate)? { switch docDataType { case .signupResponseJson: - guard let sr = data.decodeJSON(type: SignUpResponse.self), let dr = sr.deviceResponse, let dpk = sr.devicePrivateKey else { return nil } - return (dr,dpk) + guard let sr = data.decodeJSON(type: SignUpResponse.self), let dr = sr.deviceResponse, let iss = dr.documents?.first?.issuerSigned, let dpk = sr.devicePrivateKey else { return nil } + return (iss, dpk) case .cbor: - guard let dr = DeviceResponse(data: [UInt8](data)), let privateKeyType, let privateKey, let dpk = try? IssueRequest(id: id, privateKeyType: privateKeyType, keyData: privateKey).toCoseKeyPrivate() else { return nil } - return (dr,dpk) + guard let iss = IssuerSigned(data: [UInt8](data)), let privateKeyType, let privateKey, let dpk = try? IssueRequest(id: id, privateKeyType: privateKeyType, keyData: privateKey).toCoseKeyPrivate() else { return nil } + return (iss, dpk) case .sjwt: fatalError("Format \(docDataType) not implemented") } From bb90f284fcb7dd4f936538d5dfecbd77bcf206f5 Mon Sep 17 00:00:00 2001 From: Filippos Sakellaropoulos Date: Wed, 29 May 2024 11:24:21 +0300 Subject: [PATCH 4/4] Update references --- Package.resolved | 4 ++-- Package.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Package.resolved b/Package.resolved index dee9fa1..68c7fd7 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" : "39134521d5c8df9302e60a1d98d3cb6405253d12", - "version" : "0.2.4" + "revision" : "bf62cc73ae2cea61e98020d2d037c153500207e7", + "version" : "0.2.5" } }, { diff --git a/Package.swift b/Package.swift index f01ee60..03c4d03 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.4"), + .package(url: "https://github.com/eu-digital-identity-wallet/eudi-lib-ios-iso18013-data-model.git", from: "0.2.5"), ], targets: [ // Targets are the basic building blocks of a package, defining a module or a test suite.