From ef589bca44e8021c458f511a0b3fb4558278f6e9 Mon Sep 17 00:00:00 2001 From: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com> Date: Fri, 27 Sep 2024 16:18:42 +0530 Subject: [PATCH 1/3] [INJIMOB-1631] rename openId4VP to openID4VP in all places Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com> --- Package.swift | 12 +-- README.md | 4 +- Sources/OpenId4VP/Common/Logger.swift | 2 +- Sources/OpenId4VP/OpenId4VP.swift | 2 +- .../NetworkManager/NetworkManager.swift | 2 +- Tests/OpenId4VPTests/OpenId4VPTests.swift | 100 +++++++++--------- Tests/OpenId4VPTests/Utils/TestUtils.swift | 2 +- 7 files changed, 62 insertions(+), 62 deletions(-) diff --git a/Package.swift b/Package.swift index 293c53f..85fbee3 100644 --- a/Package.swift +++ b/Package.swift @@ -3,21 +3,21 @@ import PackageDescription let package = Package( - name: "OpenId4VP", + name: "OpenID4VP", platforms: [ .macOS(.v11), .iOS(.v13) ], products: [ .library( - name: "OpenId4VP", - targets: ["OpenId4VP"]), + name: "OpenID4VP", + targets: ["OpenID4VP"]), ], targets: [ .target( - name: "OpenId4VP"), + name: "OpenID4VP"), .testTarget( - name: "OpenId4VPTests", - dependencies: ["OpenId4VP"]), + name: "OpenID4VP", + dependencies: ["OpenID4VP"]), ] ) diff --git a/README.md b/README.md index 18be7df..32c7219 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ This method will also notify the Verifier about the error by sending it to the r - Returns Json string back with verifiable presentation created using the credentials received without proof field. ``` - let response = try openId4Vp.constructVerifiablePresentation(credentialsMap: [String: [String]]) + let response = try openID4Vp.constructVerifiablePresentation(credentialsMap: [String: [String]]) ``` ###### Parameters @@ -71,7 +71,7 @@ This method will also notify the Verifier about the error by sending it to the r - Returns the response with a success message back to the wallet. ``` - let response = try await openId4Vp.shareVerifiablePresentation(vpResponseMetadata: VPResponseMetadata) + let response = try await openID4Vp.shareVerifiablePresentation(vpResponseMetadata: VPResponseMetadata) ``` ###### Parameters diff --git a/Sources/OpenId4VP/Common/Logger.swift b/Sources/OpenId4VP/Common/Logger.swift index 487e45a..2272554 100644 --- a/Sources/OpenId4VP/Common/Logger.swift +++ b/Sources/OpenId4VP/Common/Logger.swift @@ -10,7 +10,7 @@ class Logger { } } static func getLogTag(className: String) { - logTag = "INJI-OpenID4Vp : \(className) | traceID \(String(describing: self.traceabilityId))" + logTag = "INJI-OpenID4VP : \(className) | traceID \(String(describing: self.traceabilityId))" } static func error(_ message: String) { diff --git a/Sources/OpenId4VP/OpenId4VP.swift b/Sources/OpenId4VP/OpenId4VP.swift index ea71284..c420b8d 100644 --- a/Sources/OpenId4VP/OpenId4VP.swift +++ b/Sources/OpenId4VP/OpenId4VP.swift @@ -1,6 +1,6 @@ import Foundation -public class OpenId4VP { +public class OpenID4VP { let traceabilityId: String let networkManager: NetworkManaging var authorizationRequest: AuthorizationRequest? diff --git a/Tests/OpenId4VPTests/NetworkManager/NetworkManager.swift b/Tests/OpenId4VPTests/NetworkManager/NetworkManager.swift index 72d42d0..70ed29e 100644 --- a/Tests/OpenId4VPTests/NetworkManager/NetworkManager.swift +++ b/Tests/OpenId4VPTests/NetworkManager/NetworkManager.swift @@ -1,5 +1,5 @@ import Foundation -@testable import OpenId4VP +@testable import OpenID4VP class MockNetworkManager: NetworkManaging { var response: HTTPURLResponse? diff --git a/Tests/OpenId4VPTests/OpenId4VPTests.swift b/Tests/OpenId4VPTests/OpenId4VPTests.swift index a9ad4ed..da66422 100644 --- a/Tests/OpenId4VPTests/OpenId4VPTests.swift +++ b/Tests/OpenId4VPTests/OpenId4VPTests.swift @@ -1,10 +1,10 @@ import XCTest -@testable import OpenId4VP +@testable import OpenID4VP -class OpenId4VPTests: XCTestCase { - var openId4Vp: OpenId4VP! +class OpenID4VPTests: XCTestCase { + var openID4VP: OpenID4VP! var mockNetworkManager: MockNetworkManager! - + let authorizationRequest = AuthorizationRequest( clientId: "client_id", presentationDefinition: "presentationDefinition", @@ -15,7 +15,7 @@ class OpenId4VPTests: XCTestCase { state: "state", responseUri: "https://example.com" ) - + let jws = "wemcn3234ns" let signatureAlgoType = "RsaSignature2018" let publicKey = "MIICCgKCAgEA0IEd3E5CvLAbGvr/ysYT2TLE7WDrPBHGk8pwGqVvlrrFtZJ9wT8E" @@ -24,28 +24,28 @@ class OpenId4VPTests: XCTestCase { DescriptorMap(id: "bank_input", format: .ldp_vc, path: "$.verifiableCredential[0]"), DescriptorMap(id: "bank_input", format: .ldp_vc, path: "$.verifiableCredential[1]") ] - + let vpToken = VpTokenForSigning(verifiableCredential: ["VC1", "VC2"],holder: "") - + override func setUp() { super.setUp() mockNetworkManager = MockNetworkManager() - - openId4Vp = OpenId4VP(traceabilityId: "AXESWSAW123", networkManager: mockNetworkManager) - openId4Vp.setPresentationDefinitionId("AWSE") - openId4Vp.setResponseUri("https://example.com") - openId4Vp.authorizationRequest = authorizationRequest - + + openID4VP = OpenID4VP(traceabilityId: "AXESWSAW123", networkManager: mockNetworkManager) + openID4VP.setPresentationDefinitionId("AWSE") + openID4VP.setResponseUri("https://example.com") + openID4VP.authorizationRequest = authorizationRequest + AuthorizationResponse.descriptorMap = descriptorMap AuthorizationResponse.vpTokenForSigning = vpToken } - + override func tearDown() { - openId4Vp = nil + openID4VP = nil mockNetworkManager = nil super.tearDown() } - + let testVerifierList: [[String: Any]] = [ [ "client_id": "https://injiverify.dev2.mosip.net", @@ -62,98 +62,98 @@ class OpenId4VPTests: XCTestCase { ] ] ] - + let testValidEncodedVpRequest = "OPENID4VP://authorize?Y2xpZW50X2lkPWh0dHBzOi8vaW5qaXZlcmlmeS5kZXYyLm1vc2lwLm5ldCZwcmVzZW50YXRpb25fZGVmaW5pdGlvbj17ImlkIjoiIzIzNDUzMzMiLCJpbnB1dF9kZXNjcmlwdG9ycyI6W3siaWQiOiJiYW5raW5nX2lucHV0XzEiLCJuYW1lIjoiQmFuayBBY2NvdW50IEluZm9ybWF0aW9uIiwicHVycG9zZSI6IldlIGNhbiBvbmx5IHJlbWl0IHBheW1lbnQgdG8gYSBjdXJyZW50bHktdmFsaWQgYmFuayBhY2NvdW50IGluIHRoZSBVUywgRnJhbmNlLCBvciBHZXJtYW55LCBzdWJtaXR0ZWQgYXMgYW4gQUJBIEFjY3Qgb3IgSUJBTi4iLCJjb25zdHJhaW50cyI6eyJmaWVsZHMiOlt7InBhdGgiOlsiJC5jcmVkZSJdLCJwdXJwb3NlIjoiV2UgY2FuIHVzZSBmb3IgICMgdmVyaWZpY2F0aW9uIHB1cnBvc2UgIyBmb3IgYW55dGhpbmciLCJmaWx0ZXIiOnsidHlwZSI6InN0cmluZyIsInBhdHRlcm4iOiJeWzAtOV17OX18XihbYS16QS1aXSl7NH0oW2EtekEtWl0pezJ9KFswLTlhLXpBLVpdKXsyfShbMC05YS16QS1aXXszfSk/JCJ9fSx7InBhdGgiOlsiJC52Yy5jcmVkZW50aWFsIiwiJC52Yy5jcmVkZW50aWFsU3ViamVjdC5hY2NvdW50WypdLnJvdXRlIiwiJC5hY2NvdW50WypdLnJvdXRlIl0sInB1cnBvc2UiOiJXZSBjYW4gdXNlIGZvciB2ZXJpZmljYXRpb24gcHVycG9zZSIsImZpbHRlciI6eyJ0eXBlIjoic3RyaW5nIiwicGF0dGVybiI6Il5bMC05XXs5fXxeKFthLXpBLVpdKXs0fShbYS16QS1aXSl7Mn0oWzAtOWEtekEtWl0pezJ9KFswLTlhLXpBLVpdezN9KT8kIn19XX19XX0mcmVzcG9uc2VfdHlwZT12cF90b2tlbiZyZXNwb25zZV9tb2RlPWRpcmVjdF9wb3N0Jm5vbmNlPVZiUlJCL0xUeExpWG1WTlp1eU1POEE9PSZzdGF0ZT0rbVJRZTFkNnBCb0pxRjZBYjI4a2xnPT0mcmVzcG9uc2VfdXJpPS92ZXJpZmllci92cC1yZXNwb25zZSBIVFRQLzEuMQ==" - + let testInvalidPresentationDefinitionVpRequest = "OPENID4VP://authorize?Y2xpZW50X2lkPWh0dHBzOi8vaW5qaXZlcmlmeS5kZXYyLm1vc2lwLm5ldCZwcmVzZW50YXRpb25fZGVmaW5pdGlvbj17ImlucHV0X2Rlc2NyaXB0b3JzIjpbXX0mcmVzcG9uc2VfdHlwZT12cF90b2tlbiZyZXNwb25zZV9tb2RlPWRpcmVjdF9wb3N0Jm5vbmNlPVZiUlJCL0xUeExpWG1WTlp1eU1POEE9PSZzdGF0ZT0rbVJRZTFkNnBCb0pxRjZBYjI4a2xnPT0mcmVzcG9uc2VfdXJpPS92ZXJpZmllci92cC1yZXNwb25zZSBIVFRQLzEuMQ==" - + let invalidVpRequest = "OPENID4VP://authorize?Y2xpZW50X2lkPWh0dHBzOi8vaW5qaXZlcmlmeS5kZXYyLm1vc2lwLm5ldCZwcmVzZW50YXRpb25fZGVmaW5pdGlvbj17ImlucHV0X2Rlc2NyaXB0b3JzIjpbXX0mcmVzcG9uc2VfdHlwZT12cF90b2tlbiZyZXNwb25zZV9tb2RlPWRpcmVjdF9wb3N0Jm5vbmNlPVZiUlJCL0xUeExpWG1WTlp1eU1POEE9PSZzdGF0ZT0rbVJRZTFkNnBCb0pxRjZBYjI4a2xnPT0mcmVzcG9uc2VfdXJpPS92ZXJpZmllci92cC1yZXNwb25zZSBIVFRQLzEuMQ==" - + func testReturnDataForValidRequest() async { - + let verifiers = createVerifiers(from: testVerifierList) - + let decoded: Any? - + do { - decoded = try await openId4Vp.authenticateVerifier(encodedAuthorizationRequest: testValidEncodedVpRequest, trustedVerifierJSON: verifiers) + decoded = try await openID4VP.authenticateVerifier(encodedAuthorizationRequest: testValidEncodedVpRequest, trustedVerifierJSON: verifiers) } catch { decoded = nil } XCTAssertTrue(decoded is AuthenticationResponse, "decodedResponse should be an instance of AuthenticationResponse") XCTAssertTrue(decoded != nil, "decodedResponse should not be null") } - + func testMissingPresentationDefinitionFields() async { let verifiers = createVerifiers(from: testVerifierList) - + let error = await Task { - try await openId4Vp.authenticateVerifier(encodedAuthorizationRequest: testInvalidPresentationDefinitionVpRequest, trustedVerifierJSON: verifiers) + try await openID4VP.authenticateVerifier(encodedAuthorizationRequest: testInvalidPresentationDefinitionVpRequest, trustedVerifierJSON: verifiers) }.result - + switch error { case .failure(let thrownError): XCTAssertEqual(thrownError as? AuthorizationRequestException, AuthorizationRequestException.invalidPresentationDefinition) case .success: break } } - + func testMissingRequiredFieldsInRequest() async { - + let verifiers = createVerifiers(from: testVerifierList) - + let error = await Task { - try await openId4Vp.authenticateVerifier(encodedAuthorizationRequest: invalidVpRequest, trustedVerifierJSON: verifiers) + try await openID4VP.authenticateVerifier(encodedAuthorizationRequest: invalidVpRequest, trustedVerifierJSON: verifiers) }.result - + switch error { case .failure(let thrownError): XCTAssertEqual(thrownError as? AuthorizationRequestException, AuthorizationRequestException.invalidPresentationDefinition) case .success: break } } - + func testUUIDGeneration() { - + let vpToken = UUIDGenerator.generateUUID() let presentationSubmissionId = UUIDGenerator.generateUUID() let presentationSubmission = PresentationSubmission(definition_id: "", descriptor_map: AuthorizationResponse.descriptorMap!) - + XCTAssertNotNil(vpToken,presentationSubmissionId) XCTAssertNotNil(presentationSubmission.id) } - + func testShareVerifiablePresentation() async{ let credentialsMap: [String: [String]] = ["bank_input":["VC1","VC2"]] let received: String? - + do { - received = try await openId4Vp.constructVerifiablePresentationToken(credentialsMap: credentialsMap) + received = try await openID4VP.constructVerifiablePresentationToken(credentialsMap: credentialsMap) }catch{ received = nil } XCTAssertNotNil(received, "The response should not be nil for valid credentials map") } - + func testSendVpSuccess() async throws { - + let vcResponseMetaData = VPResponseMetadata(jws: jws, signatureAlgorithm: signatureAlgoType, publicKey: publicKey, domain: domain) - - let response = try await openId4Vp.shareVerifiablePresentation(vpResponseMetadata: vcResponseMetaData) - + + let response = try await openID4VP.shareVerifiablePresentation(vpResponseMetadata: vcResponseMetaData) + XCTAssertEqual(response, "Success: Request completed successfully.") } - + func testSendVpFailure() async { - + let errorMessage = "Network Request failed with error response: response" mockNetworkManager.error = NetworkRequestException.networkRequestFailed(message: errorMessage) - + let vcResponseMetaData = VPResponseMetadata(jws: jws, signatureAlgorithm: signatureAlgoType, publicKey: publicKey, domain: domain) - - + + do { - let _ = try await openId4Vp.shareVerifiablePresentation(vpResponseMetadata: vcResponseMetaData) + let _ = try await openID4VP.shareVerifiablePresentation(vpResponseMetadata: vcResponseMetaData) } catch let error as NetworkRequestException { switch error { case .networkRequestFailed(let message): diff --git a/Tests/OpenId4VPTests/Utils/TestUtils.swift b/Tests/OpenId4VPTests/Utils/TestUtils.swift index df57d76..d101819 100644 --- a/Tests/OpenId4VPTests/Utils/TestUtils.swift +++ b/Tests/OpenId4VPTests/Utils/TestUtils.swift @@ -1,5 +1,5 @@ import Foundation -@testable import OpenId4VP +@testable import OpenID4VP func createVerifiers(from verifierList: [[String: Any]]) -> [Verifier] { var verifiers: [Verifier] = [] From b3a234cb7088c4884f76856748254e8ac2bfad28 Mon Sep 17 00:00:00 2001 From: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com> Date: Fri, 27 Sep 2024 16:26:21 +0530 Subject: [PATCH 2/3] [INJIMOB-812] rename openId4VP file and folder name to temp to resolve duplicate folder issue Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com> --- .../AuthenticationResponse.swift | 0 .../AuthenticationResponseException.swift | 0 .../AuthorizationRequest.swift | 0 .../AuthorizationRequestException.swift | 0 .../PresentationDefinition/Constraints.swift | 0 .../PresentationDefinition/Fields.swift | 0 .../PresentationDefinition/Filter.swift | 0 .../InputDescriptor.swift | 0 .../LimitDisclosure.swift | 0 .../PresentationDefinition.swift | 0 .../PresentationDefinitionValidator.swift | 0 .../Utils/AuthorizationRequestUtils.swift | 0 .../AuthorizationResponse.swift | 0 .../AuthorizationResponseException.swift | 0 .../Models/PresentationSubmission.swift | 0 .../AuthorizationResponse/Models/Proof.swift | 0 .../Models/VpToken.swift | 0 .../Models/VpTokenForSigning.swift | 0 .../Utils/AuthorizationResponseUtils.swift | 0 .../AuthorizationResponseConstants.swift | 0 .../{OpenId4VP => temp}/Common/Logger.swift | 0 .../Common/UUIDGenerator.swift | 0 .../Exception/NetworkManagerException.swift | 0 .../NetworkManager/NetworkManager.swift | 0 .../dto/VPResponseMetadata.swift | 0 .../{OpenId4VP => temp}/dto/Verifier.swift | 0 .../OpenId4VP.swift => temp/temp.swift} | 34 +++++++++---------- .../NetworkManager/NetworkManager.swift | 0 .../TempTests.swift} | 0 .../Utils/TestUtils.swift | 0 30 files changed, 17 insertions(+), 17 deletions(-) rename Sources/{OpenId4VP => temp}/AuthenticationResponse/AuthenticationResponse.swift (100%) rename Sources/{OpenId4VP => temp}/AuthenticationResponse/Exception/AuthenticationResponseException.swift (100%) rename Sources/{OpenId4VP => temp}/AuthorizationRequest/AuthorizationRequest.swift (100%) rename Sources/{OpenId4VP => temp}/AuthorizationRequest/Exception/AuthorizationRequestException.swift (100%) rename Sources/{OpenId4VP => temp}/AuthorizationRequest/PresentationDefinition/Constraints.swift (100%) rename Sources/{OpenId4VP => temp}/AuthorizationRequest/PresentationDefinition/Fields.swift (100%) rename Sources/{OpenId4VP => temp}/AuthorizationRequest/PresentationDefinition/Filter.swift (100%) rename Sources/{OpenId4VP => temp}/AuthorizationRequest/PresentationDefinition/InputDescriptor.swift (100%) rename Sources/{OpenId4VP => temp}/AuthorizationRequest/PresentationDefinition/LimitDisclosure.swift (100%) rename Sources/{OpenId4VP => temp}/AuthorizationRequest/PresentationDefinition/PresentationDefinition.swift (100%) rename Sources/{OpenId4VP => temp}/AuthorizationRequest/PresentationDefinition/PresentationDefinitionValidator.swift (100%) rename Sources/{OpenId4VP => temp}/AuthorizationRequest/Utils/AuthorizationRequestUtils.swift (100%) rename Sources/{OpenId4VP => temp}/AuthorizationResponse/AuthorizationResponse.swift (100%) rename Sources/{OpenId4VP => temp}/AuthorizationResponse/Exception/AuthorizationResponseException.swift (100%) rename Sources/{OpenId4VP => temp}/AuthorizationResponse/Models/PresentationSubmission.swift (100%) rename Sources/{OpenId4VP => temp}/AuthorizationResponse/Models/Proof.swift (100%) rename Sources/{OpenId4VP => temp}/AuthorizationResponse/Models/VpToken.swift (100%) rename Sources/{OpenId4VP => temp}/AuthorizationResponse/Models/VpTokenForSigning.swift (100%) rename Sources/{OpenId4VP => temp}/AuthorizationResponse/Utils/AuthorizationResponseUtils.swift (100%) rename Sources/{OpenId4VP => temp}/AuthorizationResponse/constants/AuthorizationResponseConstants.swift (100%) rename Sources/{OpenId4VP => temp}/Common/Logger.swift (100%) rename Sources/{OpenId4VP => temp}/Common/UUIDGenerator.swift (100%) rename Sources/{OpenId4VP => temp}/NetworkManager/Exception/NetworkManagerException.swift (100%) rename Sources/{OpenId4VP => temp}/NetworkManager/NetworkManager.swift (100%) rename Sources/{OpenId4VP => temp}/dto/VPResponseMetadata.swift (100%) rename Sources/{OpenId4VP => temp}/dto/Verifier.swift (100%) rename Sources/{OpenId4VP/OpenId4VP.swift => temp/temp.swift} (95%) rename Tests/{OpenId4VPTests => TempTests}/NetworkManager/NetworkManager.swift (100%) rename Tests/{OpenId4VPTests/OpenId4VPTests.swift => TempTests/TempTests.swift} (100%) rename Tests/{OpenId4VPTests => TempTests}/Utils/TestUtils.swift (100%) diff --git a/Sources/OpenId4VP/AuthenticationResponse/AuthenticationResponse.swift b/Sources/temp/AuthenticationResponse/AuthenticationResponse.swift similarity index 100% rename from Sources/OpenId4VP/AuthenticationResponse/AuthenticationResponse.swift rename to Sources/temp/AuthenticationResponse/AuthenticationResponse.swift diff --git a/Sources/OpenId4VP/AuthenticationResponse/Exception/AuthenticationResponseException.swift b/Sources/temp/AuthenticationResponse/Exception/AuthenticationResponseException.swift similarity index 100% rename from Sources/OpenId4VP/AuthenticationResponse/Exception/AuthenticationResponseException.swift rename to Sources/temp/AuthenticationResponse/Exception/AuthenticationResponseException.swift diff --git a/Sources/OpenId4VP/AuthorizationRequest/AuthorizationRequest.swift b/Sources/temp/AuthorizationRequest/AuthorizationRequest.swift similarity index 100% rename from Sources/OpenId4VP/AuthorizationRequest/AuthorizationRequest.swift rename to Sources/temp/AuthorizationRequest/AuthorizationRequest.swift diff --git a/Sources/OpenId4VP/AuthorizationRequest/Exception/AuthorizationRequestException.swift b/Sources/temp/AuthorizationRequest/Exception/AuthorizationRequestException.swift similarity index 100% rename from Sources/OpenId4VP/AuthorizationRequest/Exception/AuthorizationRequestException.swift rename to Sources/temp/AuthorizationRequest/Exception/AuthorizationRequestException.swift diff --git a/Sources/OpenId4VP/AuthorizationRequest/PresentationDefinition/Constraints.swift b/Sources/temp/AuthorizationRequest/PresentationDefinition/Constraints.swift similarity index 100% rename from Sources/OpenId4VP/AuthorizationRequest/PresentationDefinition/Constraints.swift rename to Sources/temp/AuthorizationRequest/PresentationDefinition/Constraints.swift diff --git a/Sources/OpenId4VP/AuthorizationRequest/PresentationDefinition/Fields.swift b/Sources/temp/AuthorizationRequest/PresentationDefinition/Fields.swift similarity index 100% rename from Sources/OpenId4VP/AuthorizationRequest/PresentationDefinition/Fields.swift rename to Sources/temp/AuthorizationRequest/PresentationDefinition/Fields.swift diff --git a/Sources/OpenId4VP/AuthorizationRequest/PresentationDefinition/Filter.swift b/Sources/temp/AuthorizationRequest/PresentationDefinition/Filter.swift similarity index 100% rename from Sources/OpenId4VP/AuthorizationRequest/PresentationDefinition/Filter.swift rename to Sources/temp/AuthorizationRequest/PresentationDefinition/Filter.swift diff --git a/Sources/OpenId4VP/AuthorizationRequest/PresentationDefinition/InputDescriptor.swift b/Sources/temp/AuthorizationRequest/PresentationDefinition/InputDescriptor.swift similarity index 100% rename from Sources/OpenId4VP/AuthorizationRequest/PresentationDefinition/InputDescriptor.swift rename to Sources/temp/AuthorizationRequest/PresentationDefinition/InputDescriptor.swift diff --git a/Sources/OpenId4VP/AuthorizationRequest/PresentationDefinition/LimitDisclosure.swift b/Sources/temp/AuthorizationRequest/PresentationDefinition/LimitDisclosure.swift similarity index 100% rename from Sources/OpenId4VP/AuthorizationRequest/PresentationDefinition/LimitDisclosure.swift rename to Sources/temp/AuthorizationRequest/PresentationDefinition/LimitDisclosure.swift diff --git a/Sources/OpenId4VP/AuthorizationRequest/PresentationDefinition/PresentationDefinition.swift b/Sources/temp/AuthorizationRequest/PresentationDefinition/PresentationDefinition.swift similarity index 100% rename from Sources/OpenId4VP/AuthorizationRequest/PresentationDefinition/PresentationDefinition.swift rename to Sources/temp/AuthorizationRequest/PresentationDefinition/PresentationDefinition.swift diff --git a/Sources/OpenId4VP/AuthorizationRequest/PresentationDefinition/PresentationDefinitionValidator.swift b/Sources/temp/AuthorizationRequest/PresentationDefinition/PresentationDefinitionValidator.swift similarity index 100% rename from Sources/OpenId4VP/AuthorizationRequest/PresentationDefinition/PresentationDefinitionValidator.swift rename to Sources/temp/AuthorizationRequest/PresentationDefinition/PresentationDefinitionValidator.swift diff --git a/Sources/OpenId4VP/AuthorizationRequest/Utils/AuthorizationRequestUtils.swift b/Sources/temp/AuthorizationRequest/Utils/AuthorizationRequestUtils.swift similarity index 100% rename from Sources/OpenId4VP/AuthorizationRequest/Utils/AuthorizationRequestUtils.swift rename to Sources/temp/AuthorizationRequest/Utils/AuthorizationRequestUtils.swift diff --git a/Sources/OpenId4VP/AuthorizationResponse/AuthorizationResponse.swift b/Sources/temp/AuthorizationResponse/AuthorizationResponse.swift similarity index 100% rename from Sources/OpenId4VP/AuthorizationResponse/AuthorizationResponse.swift rename to Sources/temp/AuthorizationResponse/AuthorizationResponse.swift diff --git a/Sources/OpenId4VP/AuthorizationResponse/Exception/AuthorizationResponseException.swift b/Sources/temp/AuthorizationResponse/Exception/AuthorizationResponseException.swift similarity index 100% rename from Sources/OpenId4VP/AuthorizationResponse/Exception/AuthorizationResponseException.swift rename to Sources/temp/AuthorizationResponse/Exception/AuthorizationResponseException.swift diff --git a/Sources/OpenId4VP/AuthorizationResponse/Models/PresentationSubmission.swift b/Sources/temp/AuthorizationResponse/Models/PresentationSubmission.swift similarity index 100% rename from Sources/OpenId4VP/AuthorizationResponse/Models/PresentationSubmission.swift rename to Sources/temp/AuthorizationResponse/Models/PresentationSubmission.swift diff --git a/Sources/OpenId4VP/AuthorizationResponse/Models/Proof.swift b/Sources/temp/AuthorizationResponse/Models/Proof.swift similarity index 100% rename from Sources/OpenId4VP/AuthorizationResponse/Models/Proof.swift rename to Sources/temp/AuthorizationResponse/Models/Proof.swift diff --git a/Sources/OpenId4VP/AuthorizationResponse/Models/VpToken.swift b/Sources/temp/AuthorizationResponse/Models/VpToken.swift similarity index 100% rename from Sources/OpenId4VP/AuthorizationResponse/Models/VpToken.swift rename to Sources/temp/AuthorizationResponse/Models/VpToken.swift diff --git a/Sources/OpenId4VP/AuthorizationResponse/Models/VpTokenForSigning.swift b/Sources/temp/AuthorizationResponse/Models/VpTokenForSigning.swift similarity index 100% rename from Sources/OpenId4VP/AuthorizationResponse/Models/VpTokenForSigning.swift rename to Sources/temp/AuthorizationResponse/Models/VpTokenForSigning.swift diff --git a/Sources/OpenId4VP/AuthorizationResponse/Utils/AuthorizationResponseUtils.swift b/Sources/temp/AuthorizationResponse/Utils/AuthorizationResponseUtils.swift similarity index 100% rename from Sources/OpenId4VP/AuthorizationResponse/Utils/AuthorizationResponseUtils.swift rename to Sources/temp/AuthorizationResponse/Utils/AuthorizationResponseUtils.swift diff --git a/Sources/OpenId4VP/AuthorizationResponse/constants/AuthorizationResponseConstants.swift b/Sources/temp/AuthorizationResponse/constants/AuthorizationResponseConstants.swift similarity index 100% rename from Sources/OpenId4VP/AuthorizationResponse/constants/AuthorizationResponseConstants.swift rename to Sources/temp/AuthorizationResponse/constants/AuthorizationResponseConstants.swift diff --git a/Sources/OpenId4VP/Common/Logger.swift b/Sources/temp/Common/Logger.swift similarity index 100% rename from Sources/OpenId4VP/Common/Logger.swift rename to Sources/temp/Common/Logger.swift diff --git a/Sources/OpenId4VP/Common/UUIDGenerator.swift b/Sources/temp/Common/UUIDGenerator.swift similarity index 100% rename from Sources/OpenId4VP/Common/UUIDGenerator.swift rename to Sources/temp/Common/UUIDGenerator.swift diff --git a/Sources/OpenId4VP/NetworkManager/Exception/NetworkManagerException.swift b/Sources/temp/NetworkManager/Exception/NetworkManagerException.swift similarity index 100% rename from Sources/OpenId4VP/NetworkManager/Exception/NetworkManagerException.swift rename to Sources/temp/NetworkManager/Exception/NetworkManagerException.swift diff --git a/Sources/OpenId4VP/NetworkManager/NetworkManager.swift b/Sources/temp/NetworkManager/NetworkManager.swift similarity index 100% rename from Sources/OpenId4VP/NetworkManager/NetworkManager.swift rename to Sources/temp/NetworkManager/NetworkManager.swift diff --git a/Sources/OpenId4VP/dto/VPResponseMetadata.swift b/Sources/temp/dto/VPResponseMetadata.swift similarity index 100% rename from Sources/OpenId4VP/dto/VPResponseMetadata.swift rename to Sources/temp/dto/VPResponseMetadata.swift diff --git a/Sources/OpenId4VP/dto/Verifier.swift b/Sources/temp/dto/Verifier.swift similarity index 100% rename from Sources/OpenId4VP/dto/Verifier.swift rename to Sources/temp/dto/Verifier.swift diff --git a/Sources/OpenId4VP/OpenId4VP.swift b/Sources/temp/temp.swift similarity index 95% rename from Sources/OpenId4VP/OpenId4VP.swift rename to Sources/temp/temp.swift index c420b8d..6752c65 100644 --- a/Sources/OpenId4VP/OpenId4VP.swift +++ b/Sources/temp/temp.swift @@ -6,42 +6,42 @@ public class OpenID4VP { var authorizationRequest: AuthorizationRequest? private var presentationDefinitionId: String? private var responseUri: String? - + public init(traceabilityId: String, networkManager: NetworkManaging? = nil) { self.traceabilityId = traceabilityId self.networkManager = networkManager ?? NetworkManager.shared } - + public func setPresentationDefinitionId(_ id: String) { self.presentationDefinitionId = id } - + public func setResponseUri(_ responseUri: String){ self.responseUri = responseUri } - + public func authenticateVerifier(encodedAuthorizationRequest: String, trustedVerifierJSON: [Verifier]) async throws -> AuthenticationResponse { - + Logger.setLogTag(className:String(describing: type(of: self)), traceabilityId: traceabilityId) - + do { authorizationRequest = try AuthorizationRequest.getAuthorizationRequest(encodedAuthorizationRequest: encodedAuthorizationRequest, setResponseUri: setResponseUri) - + return try AuthenticationResponse.getAuthenticationResponse(authorizationRequest!, trustedVerifierJSON, setPresentationDefinitionId: setPresentationDefinitionId) - + } catch(let exception) { await sendErrorToResponseUri(error: exception, uri: responseUri ?? "") throw exception } } - + public func constructVerifiablePresentationToken(credentialsMap: [String: [String]]) async throws -> String? { - + return try AuthorizationResponse.constructVpForSigning(credentialsMap) } - + public func shareVerifiablePresentation(vpResponseMetadata: VPResponseMetadata) async throws -> String? { - + do { return try await AuthorizationResponse.shareVp(vpResponseMetadata: vpResponseMetadata,nonce: authorizationRequest!.nonce, responseUri: authorizationRequest!.responseUri,presentationDefinitionId: presentationDefinitionId!, networkManager: networkManager) } catch(let exception) { @@ -49,20 +49,20 @@ public class OpenID4VP { throw exception } } - + private func sendErrorToResponseUri(error: Error, uri: String) async { - + Logger.getLogTag(className: String(describing: type(of: self))) - + guard let url = URL(string: uri) else { return } - + let errorInfo = """ { "error": \(error), "traceabilityId": \(traceabilityId) } """ - + do { let response = try await networkManager.sendHTTPPostRequest(requestBody: errorInfo, url: url) print("\(String(describing: response))") diff --git a/Tests/OpenId4VPTests/NetworkManager/NetworkManager.swift b/Tests/TempTests/NetworkManager/NetworkManager.swift similarity index 100% rename from Tests/OpenId4VPTests/NetworkManager/NetworkManager.swift rename to Tests/TempTests/NetworkManager/NetworkManager.swift diff --git a/Tests/OpenId4VPTests/OpenId4VPTests.swift b/Tests/TempTests/TempTests.swift similarity index 100% rename from Tests/OpenId4VPTests/OpenId4VPTests.swift rename to Tests/TempTests/TempTests.swift diff --git a/Tests/OpenId4VPTests/Utils/TestUtils.swift b/Tests/TempTests/Utils/TestUtils.swift similarity index 100% rename from Tests/OpenId4VPTests/Utils/TestUtils.swift rename to Tests/TempTests/Utils/TestUtils.swift From 8d934941852488aa6f11771aa77e3a07adcd4178 Mon Sep 17 00:00:00 2001 From: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com> Date: Fri, 27 Sep 2024 16:28:29 +0530 Subject: [PATCH 3/3] [INJIMOB-812] rename temp to openID4VP in file and folder names Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com> --- .../AuthenticationResponse/AuthenticationResponse.swift | 0 .../Exception/AuthenticationResponseException.swift | 0 .../AuthorizationRequest/AuthorizationRequest.swift | 0 .../Exception/AuthorizationRequestException.swift | 0 .../AuthorizationRequest/PresentationDefinition/Constraints.swift | 0 .../AuthorizationRequest/PresentationDefinition/Fields.swift | 0 .../AuthorizationRequest/PresentationDefinition/Filter.swift | 0 .../PresentationDefinition/InputDescriptor.swift | 0 .../PresentationDefinition/LimitDisclosure.swift | 0 .../PresentationDefinition/PresentationDefinition.swift | 0 .../PresentationDefinition/PresentationDefinitionValidator.swift | 0 .../AuthorizationRequest/Utils/AuthorizationRequestUtils.swift | 0 .../AuthorizationResponse/AuthorizationResponse.swift | 0 .../Exception/AuthorizationResponseException.swift | 0 .../AuthorizationResponse/Models/PresentationSubmission.swift | 0 .../{temp => OpenID4VP}/AuthorizationResponse/Models/Proof.swift | 0 .../AuthorizationResponse/Models/VpToken.swift | 0 .../AuthorizationResponse/Models/VpTokenForSigning.swift | 0 .../AuthorizationResponse/Utils/AuthorizationResponseUtils.swift | 0 .../constants/AuthorizationResponseConstants.swift | 0 Sources/{temp => OpenID4VP}/Common/Logger.swift | 0 Sources/{temp => OpenID4VP}/Common/UUIDGenerator.swift | 0 .../NetworkManager/Exception/NetworkManagerException.swift | 0 Sources/{temp => OpenID4VP}/NetworkManager/NetworkManager.swift | 0 Sources/{temp/temp.swift => OpenID4VP/OpenID4VP.swift} | 0 Sources/{temp => OpenID4VP}/dto/VPResponseMetadata.swift | 0 Sources/{temp => OpenID4VP}/dto/Verifier.swift | 0 .../NetworkManager/NetworkManager.swift | 0 .../TempTests.swift => OpenID4VPTests/OpenID4VPTests.swift} | 0 Tests/{TempTests => OpenID4VPTests}/Utils/TestUtils.swift | 0 30 files changed, 0 insertions(+), 0 deletions(-) rename Sources/{temp => OpenID4VP}/AuthenticationResponse/AuthenticationResponse.swift (100%) rename Sources/{temp => OpenID4VP}/AuthenticationResponse/Exception/AuthenticationResponseException.swift (100%) rename Sources/{temp => OpenID4VP}/AuthorizationRequest/AuthorizationRequest.swift (100%) rename Sources/{temp => OpenID4VP}/AuthorizationRequest/Exception/AuthorizationRequestException.swift (100%) rename Sources/{temp => OpenID4VP}/AuthorizationRequest/PresentationDefinition/Constraints.swift (100%) rename Sources/{temp => OpenID4VP}/AuthorizationRequest/PresentationDefinition/Fields.swift (100%) rename Sources/{temp => OpenID4VP}/AuthorizationRequest/PresentationDefinition/Filter.swift (100%) rename Sources/{temp => OpenID4VP}/AuthorizationRequest/PresentationDefinition/InputDescriptor.swift (100%) rename Sources/{temp => OpenID4VP}/AuthorizationRequest/PresentationDefinition/LimitDisclosure.swift (100%) rename Sources/{temp => OpenID4VP}/AuthorizationRequest/PresentationDefinition/PresentationDefinition.swift (100%) rename Sources/{temp => OpenID4VP}/AuthorizationRequest/PresentationDefinition/PresentationDefinitionValidator.swift (100%) rename Sources/{temp => OpenID4VP}/AuthorizationRequest/Utils/AuthorizationRequestUtils.swift (100%) rename Sources/{temp => OpenID4VP}/AuthorizationResponse/AuthorizationResponse.swift (100%) rename Sources/{temp => OpenID4VP}/AuthorizationResponse/Exception/AuthorizationResponseException.swift (100%) rename Sources/{temp => OpenID4VP}/AuthorizationResponse/Models/PresentationSubmission.swift (100%) rename Sources/{temp => OpenID4VP}/AuthorizationResponse/Models/Proof.swift (100%) rename Sources/{temp => OpenID4VP}/AuthorizationResponse/Models/VpToken.swift (100%) rename Sources/{temp => OpenID4VP}/AuthorizationResponse/Models/VpTokenForSigning.swift (100%) rename Sources/{temp => OpenID4VP}/AuthorizationResponse/Utils/AuthorizationResponseUtils.swift (100%) rename Sources/{temp => OpenID4VP}/AuthorizationResponse/constants/AuthorizationResponseConstants.swift (100%) rename Sources/{temp => OpenID4VP}/Common/Logger.swift (100%) rename Sources/{temp => OpenID4VP}/Common/UUIDGenerator.swift (100%) rename Sources/{temp => OpenID4VP}/NetworkManager/Exception/NetworkManagerException.swift (100%) rename Sources/{temp => OpenID4VP}/NetworkManager/NetworkManager.swift (100%) rename Sources/{temp/temp.swift => OpenID4VP/OpenID4VP.swift} (100%) rename Sources/{temp => OpenID4VP}/dto/VPResponseMetadata.swift (100%) rename Sources/{temp => OpenID4VP}/dto/Verifier.swift (100%) rename Tests/{TempTests => OpenID4VPTests}/NetworkManager/NetworkManager.swift (100%) rename Tests/{TempTests/TempTests.swift => OpenID4VPTests/OpenID4VPTests.swift} (100%) rename Tests/{TempTests => OpenID4VPTests}/Utils/TestUtils.swift (100%) diff --git a/Sources/temp/AuthenticationResponse/AuthenticationResponse.swift b/Sources/OpenID4VP/AuthenticationResponse/AuthenticationResponse.swift similarity index 100% rename from Sources/temp/AuthenticationResponse/AuthenticationResponse.swift rename to Sources/OpenID4VP/AuthenticationResponse/AuthenticationResponse.swift diff --git a/Sources/temp/AuthenticationResponse/Exception/AuthenticationResponseException.swift b/Sources/OpenID4VP/AuthenticationResponse/Exception/AuthenticationResponseException.swift similarity index 100% rename from Sources/temp/AuthenticationResponse/Exception/AuthenticationResponseException.swift rename to Sources/OpenID4VP/AuthenticationResponse/Exception/AuthenticationResponseException.swift diff --git a/Sources/temp/AuthorizationRequest/AuthorizationRequest.swift b/Sources/OpenID4VP/AuthorizationRequest/AuthorizationRequest.swift similarity index 100% rename from Sources/temp/AuthorizationRequest/AuthorizationRequest.swift rename to Sources/OpenID4VP/AuthorizationRequest/AuthorizationRequest.swift diff --git a/Sources/temp/AuthorizationRequest/Exception/AuthorizationRequestException.swift b/Sources/OpenID4VP/AuthorizationRequest/Exception/AuthorizationRequestException.swift similarity index 100% rename from Sources/temp/AuthorizationRequest/Exception/AuthorizationRequestException.swift rename to Sources/OpenID4VP/AuthorizationRequest/Exception/AuthorizationRequestException.swift diff --git a/Sources/temp/AuthorizationRequest/PresentationDefinition/Constraints.swift b/Sources/OpenID4VP/AuthorizationRequest/PresentationDefinition/Constraints.swift similarity index 100% rename from Sources/temp/AuthorizationRequest/PresentationDefinition/Constraints.swift rename to Sources/OpenID4VP/AuthorizationRequest/PresentationDefinition/Constraints.swift diff --git a/Sources/temp/AuthorizationRequest/PresentationDefinition/Fields.swift b/Sources/OpenID4VP/AuthorizationRequest/PresentationDefinition/Fields.swift similarity index 100% rename from Sources/temp/AuthorizationRequest/PresentationDefinition/Fields.swift rename to Sources/OpenID4VP/AuthorizationRequest/PresentationDefinition/Fields.swift diff --git a/Sources/temp/AuthorizationRequest/PresentationDefinition/Filter.swift b/Sources/OpenID4VP/AuthorizationRequest/PresentationDefinition/Filter.swift similarity index 100% rename from Sources/temp/AuthorizationRequest/PresentationDefinition/Filter.swift rename to Sources/OpenID4VP/AuthorizationRequest/PresentationDefinition/Filter.swift diff --git a/Sources/temp/AuthorizationRequest/PresentationDefinition/InputDescriptor.swift b/Sources/OpenID4VP/AuthorizationRequest/PresentationDefinition/InputDescriptor.swift similarity index 100% rename from Sources/temp/AuthorizationRequest/PresentationDefinition/InputDescriptor.swift rename to Sources/OpenID4VP/AuthorizationRequest/PresentationDefinition/InputDescriptor.swift diff --git a/Sources/temp/AuthorizationRequest/PresentationDefinition/LimitDisclosure.swift b/Sources/OpenID4VP/AuthorizationRequest/PresentationDefinition/LimitDisclosure.swift similarity index 100% rename from Sources/temp/AuthorizationRequest/PresentationDefinition/LimitDisclosure.swift rename to Sources/OpenID4VP/AuthorizationRequest/PresentationDefinition/LimitDisclosure.swift diff --git a/Sources/temp/AuthorizationRequest/PresentationDefinition/PresentationDefinition.swift b/Sources/OpenID4VP/AuthorizationRequest/PresentationDefinition/PresentationDefinition.swift similarity index 100% rename from Sources/temp/AuthorizationRequest/PresentationDefinition/PresentationDefinition.swift rename to Sources/OpenID4VP/AuthorizationRequest/PresentationDefinition/PresentationDefinition.swift diff --git a/Sources/temp/AuthorizationRequest/PresentationDefinition/PresentationDefinitionValidator.swift b/Sources/OpenID4VP/AuthorizationRequest/PresentationDefinition/PresentationDefinitionValidator.swift similarity index 100% rename from Sources/temp/AuthorizationRequest/PresentationDefinition/PresentationDefinitionValidator.swift rename to Sources/OpenID4VP/AuthorizationRequest/PresentationDefinition/PresentationDefinitionValidator.swift diff --git a/Sources/temp/AuthorizationRequest/Utils/AuthorizationRequestUtils.swift b/Sources/OpenID4VP/AuthorizationRequest/Utils/AuthorizationRequestUtils.swift similarity index 100% rename from Sources/temp/AuthorizationRequest/Utils/AuthorizationRequestUtils.swift rename to Sources/OpenID4VP/AuthorizationRequest/Utils/AuthorizationRequestUtils.swift diff --git a/Sources/temp/AuthorizationResponse/AuthorizationResponse.swift b/Sources/OpenID4VP/AuthorizationResponse/AuthorizationResponse.swift similarity index 100% rename from Sources/temp/AuthorizationResponse/AuthorizationResponse.swift rename to Sources/OpenID4VP/AuthorizationResponse/AuthorizationResponse.swift diff --git a/Sources/temp/AuthorizationResponse/Exception/AuthorizationResponseException.swift b/Sources/OpenID4VP/AuthorizationResponse/Exception/AuthorizationResponseException.swift similarity index 100% rename from Sources/temp/AuthorizationResponse/Exception/AuthorizationResponseException.swift rename to Sources/OpenID4VP/AuthorizationResponse/Exception/AuthorizationResponseException.swift diff --git a/Sources/temp/AuthorizationResponse/Models/PresentationSubmission.swift b/Sources/OpenID4VP/AuthorizationResponse/Models/PresentationSubmission.swift similarity index 100% rename from Sources/temp/AuthorizationResponse/Models/PresentationSubmission.swift rename to Sources/OpenID4VP/AuthorizationResponse/Models/PresentationSubmission.swift diff --git a/Sources/temp/AuthorizationResponse/Models/Proof.swift b/Sources/OpenID4VP/AuthorizationResponse/Models/Proof.swift similarity index 100% rename from Sources/temp/AuthorizationResponse/Models/Proof.swift rename to Sources/OpenID4VP/AuthorizationResponse/Models/Proof.swift diff --git a/Sources/temp/AuthorizationResponse/Models/VpToken.swift b/Sources/OpenID4VP/AuthorizationResponse/Models/VpToken.swift similarity index 100% rename from Sources/temp/AuthorizationResponse/Models/VpToken.swift rename to Sources/OpenID4VP/AuthorizationResponse/Models/VpToken.swift diff --git a/Sources/temp/AuthorizationResponse/Models/VpTokenForSigning.swift b/Sources/OpenID4VP/AuthorizationResponse/Models/VpTokenForSigning.swift similarity index 100% rename from Sources/temp/AuthorizationResponse/Models/VpTokenForSigning.swift rename to Sources/OpenID4VP/AuthorizationResponse/Models/VpTokenForSigning.swift diff --git a/Sources/temp/AuthorizationResponse/Utils/AuthorizationResponseUtils.swift b/Sources/OpenID4VP/AuthorizationResponse/Utils/AuthorizationResponseUtils.swift similarity index 100% rename from Sources/temp/AuthorizationResponse/Utils/AuthorizationResponseUtils.swift rename to Sources/OpenID4VP/AuthorizationResponse/Utils/AuthorizationResponseUtils.swift diff --git a/Sources/temp/AuthorizationResponse/constants/AuthorizationResponseConstants.swift b/Sources/OpenID4VP/AuthorizationResponse/constants/AuthorizationResponseConstants.swift similarity index 100% rename from Sources/temp/AuthorizationResponse/constants/AuthorizationResponseConstants.swift rename to Sources/OpenID4VP/AuthorizationResponse/constants/AuthorizationResponseConstants.swift diff --git a/Sources/temp/Common/Logger.swift b/Sources/OpenID4VP/Common/Logger.swift similarity index 100% rename from Sources/temp/Common/Logger.swift rename to Sources/OpenID4VP/Common/Logger.swift diff --git a/Sources/temp/Common/UUIDGenerator.swift b/Sources/OpenID4VP/Common/UUIDGenerator.swift similarity index 100% rename from Sources/temp/Common/UUIDGenerator.swift rename to Sources/OpenID4VP/Common/UUIDGenerator.swift diff --git a/Sources/temp/NetworkManager/Exception/NetworkManagerException.swift b/Sources/OpenID4VP/NetworkManager/Exception/NetworkManagerException.swift similarity index 100% rename from Sources/temp/NetworkManager/Exception/NetworkManagerException.swift rename to Sources/OpenID4VP/NetworkManager/Exception/NetworkManagerException.swift diff --git a/Sources/temp/NetworkManager/NetworkManager.swift b/Sources/OpenID4VP/NetworkManager/NetworkManager.swift similarity index 100% rename from Sources/temp/NetworkManager/NetworkManager.swift rename to Sources/OpenID4VP/NetworkManager/NetworkManager.swift diff --git a/Sources/temp/temp.swift b/Sources/OpenID4VP/OpenID4VP.swift similarity index 100% rename from Sources/temp/temp.swift rename to Sources/OpenID4VP/OpenID4VP.swift diff --git a/Sources/temp/dto/VPResponseMetadata.swift b/Sources/OpenID4VP/dto/VPResponseMetadata.swift similarity index 100% rename from Sources/temp/dto/VPResponseMetadata.swift rename to Sources/OpenID4VP/dto/VPResponseMetadata.swift diff --git a/Sources/temp/dto/Verifier.swift b/Sources/OpenID4VP/dto/Verifier.swift similarity index 100% rename from Sources/temp/dto/Verifier.swift rename to Sources/OpenID4VP/dto/Verifier.swift diff --git a/Tests/TempTests/NetworkManager/NetworkManager.swift b/Tests/OpenID4VPTests/NetworkManager/NetworkManager.swift similarity index 100% rename from Tests/TempTests/NetworkManager/NetworkManager.swift rename to Tests/OpenID4VPTests/NetworkManager/NetworkManager.swift diff --git a/Tests/TempTests/TempTests.swift b/Tests/OpenID4VPTests/OpenID4VPTests.swift similarity index 100% rename from Tests/TempTests/TempTests.swift rename to Tests/OpenID4VPTests/OpenID4VPTests.swift diff --git a/Tests/TempTests/Utils/TestUtils.swift b/Tests/OpenID4VPTests/Utils/TestUtils.swift similarity index 100% rename from Tests/TempTests/Utils/TestUtils.swift rename to Tests/OpenID4VPTests/Utils/TestUtils.swift