diff --git a/mopro-ios/MoproKit/Example/MoproKit.xcodeproj/project.pbxproj b/mopro-ios/MoproKit/Example/MoproKit.xcodeproj/project.pbxproj index 85efd4b9..a8488ece 100644 --- a/mopro-ios/MoproKit/Example/MoproKit.xcodeproj/project.pbxproj +++ b/mopro-ios/MoproKit/Example/MoproKit.xcodeproj/project.pbxproj @@ -16,6 +16,8 @@ 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 7A38AEC233A3880A843B0133 /* Pods_MoproKit_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BE5A40EAC7D019B9C7566CA /* Pods_MoproKit_Example.framework */; }; + CE2C1B8C2AFFCC5E002AF8BC /* main.wasm in Resources */ = {isa = PBXBuildFile; fileRef = CE2C1B8B2AFFCC5E002AF8BC /* main.wasm */; }; + CE2C1B8D2AFFCC5E002AF8BC /* main.wasm in Resources */ = {isa = PBXBuildFile; fileRef = CE2C1B8B2AFFCC5E002AF8BC /* main.wasm */; }; CE5A5C062AD43A790074539D /* keccak256_256_test.wasm in Resources */ = {isa = PBXBuildFile; fileRef = CE5A5C052AD43A790074539D /* keccak256_256_test.wasm */; }; CE5A5C072AD43A790074539D /* keccak256_256_test.wasm in Resources */ = {isa = PBXBuildFile; fileRef = CE5A5C052AD43A790074539D /* keccak256_256_test.wasm */; }; CE5A5C092AD43A860074539D /* keccak256_256_test.r1cs in Resources */ = {isa = PBXBuildFile; fileRef = CE5A5C082AD43A860074539D /* keccak256_256_test.r1cs */; }; @@ -60,6 +62,7 @@ 92580ABC3B6DBAD1A9544456 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; B4016A34BBB20BC381CCFC2D /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; C61628A63419B5C140B24AF7 /* Pods-MoproKit_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MoproKit_Example.debug.xcconfig"; path = "Target Support Files/Pods-MoproKit_Example/Pods-MoproKit_Example.debug.xcconfig"; sourceTree = ""; }; + CE2C1B8B2AFFCC5E002AF8BC /* main.wasm */ = {isa = PBXFileReference; lastKnownFileType = file; name = main.wasm; path = "../../../../../mopro-core/examples/circom/rsa/target/main_js/main.wasm"; sourceTree = ""; }; CE5A5C052AD43A790074539D /* keccak256_256_test.wasm */ = {isa = PBXFileReference; lastKnownFileType = file; name = keccak256_256_test.wasm; path = "../../../../../mopro-core/examples/circom/keccak256/target/keccak256_256_test_js/keccak256_256_test.wasm"; sourceTree = ""; }; CE5A5C082AD43A860074539D /* keccak256_256_test.r1cs */ = {isa = PBXFileReference; lastKnownFileType = file; name = keccak256_256_test.r1cs; path = "../../../../../mopro-core/examples/circom/keccak256/target/keccak256_256_test.r1cs"; sourceTree = ""; }; CEA2D12E2AB96A7A00F292D2 /* multiplier2.wasm */ = {isa = PBXFileReference; lastKnownFileType = file; name = multiplier2.wasm; path = "../../../../../mopro-core/examples/circom/multiplier2/target/multiplier2_js/multiplier2.wasm"; sourceTree = ""; }; @@ -176,6 +179,7 @@ CEA2D1282AB9681E00F292D2 /* Resources */ = { isa = PBXGroup; children = ( + CE2C1B8B2AFFCC5E002AF8BC /* main.wasm */, CE5A5C082AD43A860074539D /* keccak256_256_test.r1cs */, CE5A5C052AD43A790074539D /* keccak256_256_test.wasm */, CEA2D12E2AB96A7A00F292D2 /* multiplier2.wasm */, @@ -287,6 +291,7 @@ 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, CE5A5C062AD43A790074539D /* keccak256_256_test.wasm in Resources */, + CE2C1B8C2AFFCC5E002AF8BC /* main.wasm in Resources */, 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, CEA2D12F2AB96A7A00F292D2 /* multiplier2.wasm in Resources */, CE5A5C092AD43A860074539D /* keccak256_256_test.r1cs in Resources */, @@ -299,6 +304,7 @@ files = ( CE5A5C0A2AD43A860074539D /* keccak256_256_test.r1cs in Resources */, CE5A5C072AD43A790074539D /* keccak256_256_test.wasm in Resources */, + CE2C1B8D2AFFCC5E002AF8BC /* main.wasm in Resources */, CEA2D1332AB96AB500F292D2 /* multiplier2.r1cs in Resources */, CEA2D1302AB96A7A00F292D2 /* multiplier2.wasm in Resources */, ); diff --git a/mopro-ios/MoproKit/Example/MoproKit/RSAViewController.swift b/mopro-ios/MoproKit/Example/MoproKit/RSAViewController.swift index 690f195e..721355b7 100644 --- a/mopro-ios/MoproKit/Example/MoproKit/RSAViewController.swift +++ b/mopro-ios/MoproKit/Example/MoproKit/RSAViewController.swift @@ -234,8 +234,10 @@ class RSAViewController: UIViewController { //verifyButton.isEnabled = true // Enable the Verify button once proof has been generated } catch let error as MoproError { print("MoproError: \(error)") + textView.text += "MoproError: \(error)\n" } catch { print("Unexpected error: \(error)") + textView.text += "Unexpected error: \(error)\n" } }