├── .eslintignore ├── .eslintrc.json ├── .github ├── dependabot.yml └── stale.yml ├── .gitignore ├── .prettierignore ├── .prettierrc.yaml ├── .vscode └── settings.json ├── LICENSE ├── README.md ├── lerna.json ├── mlc_config.json ├── mpc-core-kit-ios ├── mpc-core-kit-ios-auth0 │ ├── mpc-core-kit-ios-auth0.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ ├── xcshareddata │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ │ └── swiftpm │ │ │ │ │ └── Package.resolved │ │ │ └── xcuserdata │ │ │ │ └── ayushb.xcuserdatad │ │ │ │ ├── UserInterfaceState.xcuserstate │ │ │ │ └── WorkspaceSettings.xcsettings │ │ └── xcuserdata │ │ │ └── ayushb.xcuserdatad │ │ │ ├── xcdebugger │ │ │ └── Breakpoints_v2.xcbkptlist │ │ │ └── xcschemes │ │ │ └── xcschememanagement.plist │ ├── mpc-core-kit-ios-auth0 │ │ ├── Assets.xcassets │ │ │ ├── AccentColor.colorset │ │ │ │ └── Contents.json │ │ │ ├── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ └── Contents.json │ │ ├── Helpers │ │ │ ├── EthereumClient.swift │ │ │ ├── Extensions.swift │ │ │ └── UserStorage.swift │ │ ├── Info.plist │ │ ├── Models │ │ │ └── MainViewModel.swift │ │ ├── Preview Content │ │ │ └── Preview Assets.xcassets │ │ │ │ └── Contents.json │ │ ├── Views │ │ │ ├── ContentView.swift │ │ │ ├── HomeView.swift │ │ │ ├── LoadingView.swift │ │ │ ├── LoginView.swift │ │ │ └── RecoveryView.swift │ │ └── mpc_core_kit_ios_auth0App.swift │ ├── mpc-core-kit-ios-auth0Tests │ │ └── mpc_core_kit_ios_auth0Tests.swift │ └── mpc-core-kit-ios-auth0UITests │ │ ├── mpc_core_kit_ios_auth0UITests.swift │ │ └── mpc_core_kit_ios_auth0UITestsLaunchTests.swift └── mpc-core-kit-ios-quick-start │ ├── mpc-core-kit-ios-quick-start.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ ├── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── swiftpm │ │ │ │ └── Package.resolved │ │ └── xcuserdata │ │ │ └── ayushb.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── xcuserdata │ │ └── ayushb.xcuserdatad │ │ ├── xcdebugger │ │ └── Breakpoints_v2.xcbkptlist │ │ └── xcschemes │ │ └── xcschememanagement.plist │ ├── mpc-core-kit-ios-quick-start │ ├── Assets.xcassets │ │ ├── AccentColor.colorset │ │ │ └── Contents.json │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Helpers │ │ ├── EthereumHelper.swift │ │ ├── Extension.swift │ │ └── UserStorage.swift │ ├── Models │ │ └── MainViewModel.swift │ ├── Preview Content │ │ └── Preview Assets.xcassets │ │ │ └── Contents.json │ ├── Views │ │ ├── ContentView.swift │ │ ├── HomeView.swift │ │ ├── LoginView.swift │ │ └── RecoveryView.swift │ └── mpc_core_kit_ios_quick_startApp.swift │ ├── mpc-core-kit-ios-quick-startTests │ └── mpc_core_kit_ios_quick_startTests.swift │ └── mpc-core-kit-ios-quick-startUITests │ ├── mpc_core_kit_ios_quick_startUITests.swift │ └── mpc_core_kit_ios_quick_startUITestsLaunchTests.swift ├── mpc-core-kit-node └── mpc-core-kit-node-quick-start │ ├── .gitignore │ ├── README.md │ ├── index.js │ ├── package-lock.json │ ├── package.json │ ├── privateKey.pem │ └── publicKey.pem ├── mpc-core-kit-react-native ├── mpc-core-kit-rn-auth0 │ ├── .bundle │ │ └── config │ ├── .eslintrc.js │ ├── .gitignore │ ├── .prettierrc.js │ ├── .watchmanconfig │ ├── App.tsx │ ├── Gemfile │ ├── Gemfile.lock │ ├── README.md │ ├── __tests__ │ │ └── App.test.tsx │ ├── android │ │ ├── app │ │ │ ├── build.gradle │ │ │ ├── debug.keystore │ │ │ ├── proguard-rules.pro │ │ │ └── src │ │ │ │ ├── debug │ │ │ │ └── AndroidManifest.xml │ │ │ │ └── main │ │ │ │ ├── AndroidManifest.xml │ │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── mpccorekitrnauth0 │ │ │ │ │ ├── MainActivity.kt │ │ │ │ │ └── MainApplication.kt │ │ │ │ └── res │ │ │ │ ├── drawable │ │ │ │ └── rn_edit_text_material.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ └── values │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ ├── build.gradle │ │ ├── gradle.properties │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ ├── gradle-wrapper.jar │ │ │ │ └── gradle-wrapper.properties │ │ ├── gradlew │ │ ├── gradlew.bat │ │ └── settings.gradle │ ├── app.json │ ├── babel.config.js │ ├── customTransformer.js │ ├── globals.ts │ ├── index.js │ ├── ios │ │ ├── .xcode.env │ │ ├── Podfile │ │ ├── Podfile.lock │ │ ├── mpccorekitrnauth0.xcodeproj │ │ │ ├── project.pbxproj │ │ │ └── xcshareddata │ │ │ │ └── xcschemes │ │ │ │ └── mpccorekitrnauth0.xcscheme │ │ ├── mpccorekitrnauth0.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ └── IDEWorkspaceChecks.plist │ │ ├── mpccorekitrnauth0 │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.mm │ │ │ ├── Images.xcassets │ │ │ │ ├── AppIcon.appiconset │ │ │ │ │ └── Contents.json │ │ │ │ └── Contents.json │ │ │ ├── Info.plist │ │ │ ├── LaunchScreen.storyboard │ │ │ └── main.m │ │ └── mpccorekitrnauth0Tests │ │ │ ├── Info.plist │ │ │ └── mpccorekitrnauth0Tests.m │ ├── jest.config.js │ ├── metro.config.js │ ├── package-lock.json │ ├── package.json │ └── tsconfig.json ├── mpc-core-kit-rn-expo-auth0 │ ├── .gitignore │ ├── App.tsx │ ├── android │ │ ├── .gitignore │ │ ├── app │ │ │ ├── build.gradle │ │ │ ├── debug.keystore │ │ │ ├── proguard-rules.pro │ │ │ └── src │ │ │ │ ├── debug │ │ │ │ └── AndroidManifest.xml │ │ │ │ └── main │ │ │ │ ├── AndroidManifest.xml │ │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── anonymous │ │ │ │ │ └── mpccorekitexpoauth0 │ │ │ │ │ ├── MainActivity.kt │ │ │ │ │ └── MainApplication.kt │ │ │ │ └── res │ │ │ │ ├── drawable-hdpi │ │ │ │ └── splashscreen_image.png │ │ │ │ ├── drawable-mdpi │ │ │ │ └── splashscreen_image.png │ │ │ │ ├── drawable-xhdpi │ │ │ │ └── splashscreen_image.png │ │ │ │ ├── drawable-xxhdpi │ │ │ │ └── splashscreen_image.png │ │ │ │ ├── drawable-xxxhdpi │ │ │ │ └── splashscreen_image.png │ │ │ │ ├── drawable │ │ │ │ ├── rn_edit_text_material.xml │ │ │ │ └── splashscreen.xml │ │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_foreground.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_foreground.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_foreground.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_foreground.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_foreground.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── values-night │ │ │ │ └── colors.xml │ │ │ │ └── values │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ ├── build.gradle │ │ ├── gradle.properties │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ ├── gradle-wrapper.jar │ │ │ │ └── gradle-wrapper.properties │ │ ├── gradlew │ │ ├── gradlew.bat │ │ ├── react-settings-plugin │ │ │ ├── build.gradle.kts │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── kotlin │ │ │ │ └── expo │ │ │ │ └── plugins │ │ │ │ └── ReactSettingsPlugin.kt │ │ └── settings.gradle │ ├── app.config.ts │ ├── app.json │ ├── assets │ │ ├── adaptive-icon.png │ │ ├── favicon.png │ │ ├── icon.png │ │ └── splash.png │ ├── babel.config.js │ ├── customTransformer.js │ ├── globals.ts │ ├── ios │ │ ├── .gitignore │ │ ├── .xcode.env │ │ ├── Podfile │ │ ├── Podfile.lock │ │ ├── Podfile.properties.json │ │ ├── mpccorekitexpoauth0.xcodeproj │ │ │ ├── project.pbxproj │ │ │ └── xcshareddata │ │ │ │ └── xcschemes │ │ │ │ └── mpccorekitexpoauth0.xcscheme │ │ ├── mpccorekitexpoauth0.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ └── mpccorekitexpoauth0 │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.mm │ │ │ ├── Images.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ ├── App-Icon-1024x1024@1x.png │ │ │ │ └── Contents.json │ │ │ ├── Contents.json │ │ │ ├── SplashScreen.imageset │ │ │ │ ├── Contents.json │ │ │ │ └── image.png │ │ │ └── SplashScreenBackground.imageset │ │ │ │ ├── Contents.json │ │ │ │ └── image.png │ │ │ ├── Info.plist │ │ │ ├── PrivacyInfo.xcprivacy │ │ │ ├── SplashScreen.storyboard │ │ │ ├── Supporting │ │ │ └── Expo.plist │ │ │ ├── main.m │ │ │ ├── mpccorekitexpoauth0-Bridging-Header.h │ │ │ ├── mpccorekitexpoauth0.entitlements │ │ │ └── noop-file.swift │ ├── metro.config.js │ ├── package-lock.json │ ├── package.json │ └── tsconfig.json ├── mpc-core-kit-rn-quick-start │ ├── .bundle │ │ └── config │ ├── .eslintrc.js │ ├── .gitignore │ ├── .prettierrc.js │ ├── .watchmanconfig │ ├── App.tsx │ ├── Gemfile │ ├── Gemfile.lock │ ├── README.md │ ├── __tests__ │ │ └── App.test.tsx │ ├── android │ │ ├── app │ │ │ ├── build.gradle │ │ │ ├── debug.keystore │ │ │ ├── google-services.json │ │ │ ├── proguard-rules.pro │ │ │ └── src │ │ │ │ ├── debug │ │ │ │ └── AndroidManifest.xml │ │ │ │ └── main │ │ │ │ ├── AndroidManifest.xml │ │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── mpccorekitrnquickstart │ │ │ │ │ ├── MainActivity.kt │ │ │ │ │ └── MainApplication.kt │ │ │ │ └── res │ │ │ │ ├── drawable │ │ │ │ └── rn_edit_text_material.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ └── values │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ ├── build.gradle │ │ ├── gradle.properties │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ ├── gradle-wrapper.jar │ │ │ │ └── gradle-wrapper.properties │ │ ├── gradlew │ │ ├── gradlew.bat │ │ └── settings.gradle │ ├── app.json │ ├── babel.config.js │ ├── customTransformer.js │ ├── globals.ts │ ├── index.js │ ├── ios │ │ ├── .xcode.env │ │ ├── GoogleService-Info.plist │ │ ├── Podfile │ │ ├── Podfile.lock │ │ ├── mpccorekitrnquickstart.xcodeproj │ │ │ ├── project.pbxproj │ │ │ ├── project.xcworkspace │ │ │ │ ├── contents.xcworkspacedata │ │ │ │ └── xcshareddata │ │ │ │ │ └── IDEWorkspaceChecks.plist │ │ │ └── xcshareddata │ │ │ │ └── xcschemes │ │ │ │ └── mpccorekitrnquickstart.xcscheme │ │ ├── mpccorekitrnquickstart.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ ├── mpccorekitrnquickstart │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.mm │ │ │ ├── Images.xcassets │ │ │ │ ├── AppIcon.appiconset │ │ │ │ │ └── Contents.json │ │ │ │ └── Contents.json │ │ │ ├── Info.plist │ │ │ ├── LaunchScreen.storyboard │ │ │ ├── PrivacyInfo.xcprivacy │ │ │ └── main.m │ │ └── mpccorekitrnquickstartTests │ │ │ ├── Info.plist │ │ │ └── mpccorekitrnquickstartTests.m │ ├── jest.config.js │ ├── metro.config.js │ ├── package-lock.json │ ├── package.json │ └── tsconfig.json └── mpc-core-kit-rn-solana │ ├── .bundle │ └── config │ ├── .eslintrc.js │ ├── .gitignore │ ├── .prettierrc.js │ ├── .watchmanconfig │ ├── App.tsx │ ├── Gemfile │ ├── Gemfile.lock │ ├── README.md │ ├── __tests__ │ └── App.test.tsx │ ├── android │ ├── app │ │ ├── build.gradle │ │ ├── debug.keystore │ │ ├── google-services.json │ │ ├── proguard-rules.pro │ │ └── src │ │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── mpccorekitrnquickstart │ │ │ │ ├── MainActivity.kt │ │ │ │ └── MainApplication.kt │ │ │ └── res │ │ │ ├── drawable │ │ │ └── rn_edit_text_material.xml │ │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ └── values │ │ │ ├── strings.xml │ │ │ └── styles.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ └── settings.gradle │ ├── app.json │ ├── babel.config.js │ ├── customTransformer.js │ ├── globals.ts │ ├── index.js │ ├── ios │ ├── .xcode.env │ ├── GoogleService-Info.plist │ ├── Podfile │ ├── Podfile.lock │ ├── mpccorekitrnquickstart.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ └── IDEWorkspaceChecks.plist │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── mpccorekitrnquickstart.xcscheme │ ├── mpccorekitrnquickstart.xcworkspace │ │ └── contents.xcworkspacedata │ ├── mpccorekitrnquickstart │ │ ├── AppDelegate.h │ │ ├── AppDelegate.mm │ │ ├── Images.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ └── Contents.json │ │ ├── Info.plist │ │ ├── LaunchScreen.storyboard │ │ ├── PrivacyInfo.xcprivacy │ │ └── main.m │ └── mpccorekitrnquickstartTests │ │ ├── Info.plist │ │ └── mpccorekitrnquickstartTests.m │ ├── jest.config.js │ ├── metro.config.js │ ├── package-lock.json │ ├── package.json │ └── tsconfig.json ├── mpc-core-kit-web ├── implicit-flow-examples │ ├── mpc-core-kit-popup-flow-example │ │ ├── .gitignore │ │ ├── README.md │ │ ├── index.html │ │ ├── package-lock.json │ │ ├── package.json │ │ ├── public │ │ │ ├── favicon.ico │ │ │ ├── logo192.png │ │ │ ├── logo512.png │ │ │ ├── manifest.json │ │ │ ├── robots.txt │ │ │ └── serviceworker │ │ │ │ └── sw.js │ │ ├── src │ │ │ ├── App.css │ │ │ ├── App.test.tsx │ │ │ ├── App.tsx │ │ │ ├── index.css │ │ │ ├── index.tsx │ │ │ ├── logo.svg │ │ │ ├── service-worker.ts │ │ │ ├── serviceWorkerRegistration.ts │ │ │ └── vite-env.d.ts │ │ ├── tsconfig.json │ │ └── vite.config.ts │ └── mpc-core-kit-redirect-flow-example │ │ ├── README.md │ │ ├── config-overrides.js │ │ ├── index.html │ │ ├── package-lock.json │ │ ├── package.json │ │ ├── public │ │ ├── favicon.ico │ │ ├── index.html │ │ ├── logo192.png │ │ ├── logo512.png │ │ ├── manifest.json │ │ └── robots.txt │ │ ├── src │ │ ├── App.css │ │ ├── App.tsx │ │ ├── index.css │ │ ├── index.tsx │ │ ├── logo.svg │ │ └── react-app-env.d.ts │ │ ├── tsconfig.json │ │ └── vite.config.ts ├── mpc-core-kit-aggregate-verifier-example │ ├── .gitignore │ ├── README.md │ ├── index.html │ ├── package-lock.json │ ├── package.json │ ├── public │ │ ├── favicon.ico │ │ ├── logo192.png │ │ ├── logo512.png │ │ ├── manifest.json │ │ ├── robots.txt │ │ └── serviceworker │ │ │ └── sw.js │ ├── src │ │ ├── App.css │ │ ├── App.test.tsx │ │ ├── App.tsx │ │ ├── ethersRPC.ts │ │ ├── index.css │ │ ├── index.tsx │ │ ├── logo.svg │ │ ├── service-worker.ts │ │ ├── serviceWorkerRegistration.ts │ │ ├── setupTests.ts │ │ ├── viemRPC.ts │ │ ├── vite-env.d.ts │ │ └── web3RPC.ts │ ├── tsconfig.json │ └── vite.config.ts ├── mpc-core-kit-bitcoin │ ├── README.md │ ├── index.html │ ├── package-lock.json │ ├── package.json │ ├── public │ │ ├── favicon.ico │ │ ├── logo192.png │ │ ├── logo512.png │ │ ├── manifest.json │ │ └── robots.txt │ ├── src │ │ ├── App.css │ │ ├── App.tsx │ │ ├── BitcoinComponent.tsx │ │ ├── BitcoinSigner.ts │ │ ├── Loading.tsx │ │ ├── ethersRPC.ts │ │ ├── index.css │ │ ├── index.tsx │ │ ├── logo.svg │ │ ├── spinner.svg │ │ ├── viemRPC.ts │ │ ├── vite-env.d.ts │ │ └── web3RPC.ts │ ├── tsconfig.json │ └── vite.config.js ├── mpc-core-kit-farcaster │ ├── .env.example │ ├── .eslintrc.json │ ├── .gitignore │ ├── README.md │ ├── next.config.js │ ├── package-lock.json │ ├── package.json │ ├── pages │ │ ├── _app.tsx │ │ ├── _document.tsx │ │ ├── api │ │ │ ├── auth │ │ │ │ └── [...nextauth].ts │ │ │ └── login.ts │ │ └── index.tsx │ └── tsconfig.json ├── mpc-core-kit-near │ ├── .gitignore │ ├── README.md │ ├── eslint.config.js │ ├── index.html │ ├── package-lock.json │ ├── package.json │ ├── public │ │ └── vite.svg │ ├── src │ │ ├── App.css │ │ ├── App.tsx │ │ ├── assets │ │ │ └── react.svg │ │ ├── index.css │ │ ├── main.tsx │ │ ├── nearRPC.ts │ │ └── vite-env.d.ts │ ├── tsconfig.app.json │ ├── tsconfig.json │ ├── tsconfig.node.json │ └── vite.config.ts ├── mpc-core-kit-solana │ ├── .gitignore │ ├── README.md │ ├── index.html │ ├── package-lock.json │ ├── package.json │ ├── public │ │ ├── favicon.ico │ │ ├── logo192.png │ │ ├── logo512.png │ │ ├── manifest.json │ │ └── robots.txt │ ├── src │ │ ├── App.css │ │ ├── App.tsx │ │ ├── index.css │ │ ├── index.tsx │ │ ├── logo.svg │ │ ├── solanaRPC.ts │ │ └── vite-env.d.ts │ ├── tsconfig.json │ └── vite.config.js └── quick-starts │ ├── mpc-core-kit-angular-quick-start │ ├── .editorconfig │ ├── .gitignore │ ├── .vscode │ │ ├── extensions.json │ │ ├── launch.json │ │ └── tasks.json │ ├── README.md │ ├── angular.json │ ├── karma.conf.js │ ├── package-lock.json │ ├── package.json │ ├── src │ │ ├── app │ │ │ ├── app.component.css │ │ │ ├── app.component.html │ │ │ ├── app.component.spec.ts │ │ │ ├── app.component.ts │ │ │ ├── app.module.ts │ │ │ ├── ethersRPC.ts │ │ │ ├── viemRPC.ts │ │ │ └── web3RPC.ts │ │ ├── assets │ │ │ └── .gitkeep │ │ ├── environments │ │ │ ├── environment.prod.ts │ │ │ └── environment.ts │ │ ├── favicon.ico │ │ ├── index.html │ │ ├── main.ts │ │ ├── polyfills.ts │ │ ├── styles.css │ │ └── test.ts │ ├── tsconfig.app.json │ ├── tsconfig.json │ └── tsconfig.spec.json │ ├── mpc-core-kit-nextjs-quick-start │ ├── .eslintrc.json │ ├── .gitignore │ ├── README.md │ ├── app │ │ ├── ethersRPC.ts │ │ ├── favicon.ico │ │ ├── globals.css │ │ ├── layout.tsx │ │ ├── page.tsx │ │ ├── viemRPC.ts │ │ └── web3RPC.ts │ ├── next-env.d.ts │ ├── next.config.js │ ├── package-lock.json │ ├── package.json │ ├── public │ │ ├── next.svg │ │ └── vercel.svg │ └── tsconfig.json │ ├── mpc-core-kit-react-quick-start │ ├── README.md │ ├── index.html │ ├── package-lock.json │ ├── package.json │ ├── public │ │ ├── favicon.ico │ │ ├── logo192.png │ │ ├── logo512.png │ │ ├── manifest.json │ │ └── robots.txt │ ├── src │ │ ├── App.css │ │ ├── App.tsx │ │ ├── ethersRPC.ts │ │ ├── index.css │ │ ├── index.tsx │ │ ├── logo.svg │ │ ├── recovery.tsx │ │ ├── viemRPC.ts │ │ ├── vite-env.d.ts │ │ └── web3RPC.ts │ ├── tsconfig.json │ └── vite.config.js │ └── mpc-core-kit-vue-quick-start │ ├── .browserslistrc │ ├── .eslintrc.js │ ├── .gitignore │ ├── README.md │ ├── babel.config.js │ ├── package-lock.json │ ├── package.json │ ├── public │ ├── favicon.ico │ └── index.html │ ├── src │ ├── App.vue │ ├── Home.vue │ ├── assets │ │ └── logo.png │ ├── main.ts │ └── shims-vue.d.ts │ ├── tsconfig.json │ └── vue.config.js ├── package-lock.json ├── package.json └── tsconfig.json /.eslintignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | 6 | # testing 7 | /coverage 8 | 9 | #production 10 | /build 11 | 12 | # misc 13 | .DS_Store 14 | .env.local 15 | .env.development.local 16 | .env.test.local 17 | .env.production.local 18 | 19 | npm-debug.log* 20 | yarn-debug.log* 21 | yarn-error.log* 22 | examples/ 23 | dist/ 24 | types/ 25 | **/*.d.ts 26 | **/*.json 27 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["@toruslabs/eslint-config-typescript"], 3 | "parser": "@typescript-eslint/parser", 4 | "ignorePatterns": "*.config.js", 5 | "parserOptions": { 6 | "sourceType": "module", 7 | "ecmaVersion": 11, 8 | "project": "./tsconfig.json" 9 | }, 10 | "rules": { 11 | "@typescript-eslint/no-throw-literal": 0, 12 | "no-case-declarations": 0, 13 | "no-console": 0, 14 | "import/extensions": [ 15 | "error", 16 | "ignorePackages", 17 | { 18 | "js": "never", 19 | "jsx": "never", 20 | "ts": "never", 21 | "tsx": "never" 22 | } 23 | ] 24 | }, 25 | "env": { 26 | "es2020": true, 27 | "browser": true, 28 | "node": true 29 | } 30 | } -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | 3 | updates: 4 | - package-ecosystem: npm 5 | directory: / 6 | schedule: 7 | interval: monthly 8 | -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- 1 | # Number of days of inactivity before an issue becomes stale 2 | daysUntilStale: 30 3 | # Number of days of inactivity before a stale issue is closed 4 | daysUntilClose: 30 5 | # Issues with these labels will never be considered stale 6 | exemptLabels: false 7 | # Label to use when marking an issue as stale 8 | staleLabel: stale 9 | # Comment to post when marking an issue as stale. Set to `false` to disable 10 | markComment: > 11 | This issue has been automatically marked as stale because it has not had 12 | recent activity. It will be closed if no further activity occurs. Thank you 13 | for your contribution. 14 | # Comment to post when closing a stale issue. Set to `false` to disable 15 | closeComment: > 16 | Closed due to inactivity. Please open a new issue regarding this or ask one of the maintainers to reopen. 17 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | # package.json is formatted by package managers, so we ignore it here 2 | package.json 3 | 4 | # See https://help.github.com/ignore-files/ for more about ignoring files. 5 | 6 | # dependencies 7 | /node_modules 8 | 9 | # testing 10 | /coverage 11 | 12 | #production 13 | /build 14 | 15 | # misc 16 | .DS_Store 17 | .env.local 18 | .env.development.local 19 | .env.test.local 20 | .env.production.local 21 | 22 | npm-debug.log* 23 | yarn-debug.log* 24 | yarn-error.log* 25 | /packages/*/types -------------------------------------------------------------------------------- /.prettierrc.yaml: -------------------------------------------------------------------------------- 1 | # .prettierrc or .prettierrc.yaml 2 | printWidth: 150 3 | singleQuote: false 4 | semi: true 5 | trailingComma: es5 6 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "editor.codeActionsOnSave": { 3 | "source.fixAll": "explicit" 4 | }, 5 | "eslint.workingDirectories": [ 6 | { 7 | "directory": "mpc-core-kit/**/*", 8 | "changeProcessCWD": true 9 | }, 10 | { 11 | "directory": "node-sdk/**/*", 12 | "changeProcessCWD": true 13 | }, 14 | { 15 | "directory": "single-factor-auth-web/**/*", 16 | "changeProcessCWD": true 17 | }, 18 | { 19 | "directory": "tkey-web/**/*", 20 | "changeProcessCWD": true 21 | }, 22 | ], 23 | "cSpell.words": [] 24 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Torus Labs Private Limited 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- 1 | { 2 | "schema": "node_modules/lerna/schemas/lerna-schema.json", 3 | "useNx": false, 4 | "useWorkspaces": false, 5 | "version": "0.0.0", 6 | "packages": [ 7 | "mpc-core-kit-web/**/*", 8 | "mpc-core-kit-node/**/*" 9 | ] 10 | } -------------------------------------------------------------------------------- /mlc_config.json: -------------------------------------------------------------------------------- 1 | { 2 | "httpHeaders": [ 3 | { 4 | "urls": [ 5 | "https://github.com/", 6 | "https://guides.github.com/", 7 | "https://help.github.com/", 8 | "https://docs.github.com/" 9 | ], 10 | "headers": { 11 | "Accept-Encoding": "zstd, br, gzip, deflate" 12 | } 13 | } 14 | ], 15 | "replacementPatterns": [ 16 | { 17 | "pattern": "^/", 18 | "replacement": "https://github.com/Web3Auth/web3auth-core-kit-examples/tree/main/" 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-auth0/mpc-core-kit-ios-auth0.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-auth0/mpc-core-kit-ios-auth0.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-auth0/mpc-core-kit-ios-auth0.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-auth0/mpc-core-kit-ios-auth0.xcodeproj/project.xcworkspace/xcuserdata/ayushb.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-ios/mpc-core-kit-ios-auth0/mpc-core-kit-ios-auth0.xcodeproj/project.xcworkspace/xcuserdata/ayushb.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-auth0/mpc-core-kit-ios-auth0.xcodeproj/project.xcworkspace/xcuserdata/ayushb.xcuserdatad/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildLocationStyle 6 | UseAppPreferences 7 | CustomBuildLocationType 8 | RelativeToDerivedData 9 | DerivedDataLocationStyle 10 | Default 11 | ShowSharedSchemesAutomaticallyEnabled 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-auth0/mpc-core-kit-ios-auth0/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-auth0/mpc-core-kit-ios-auth0/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "platform" : "ios", 6 | "size" : "1024x1024" 7 | } 8 | ], 9 | "info" : { 10 | "author" : "xcode", 11 | "version" : 1 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-auth0/mpc-core-kit-ios-auth0/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-auth0/mpc-core-kit-ios-auth0/Helpers/Extensions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Extensions.swift 3 | // mpc-core-kit-ios-auth0 4 | // 5 | // Created by Ayush B on 20/05/24. 6 | // 7 | 8 | import Foundation 9 | import mpc_core_kit_swift 10 | import tkey 11 | import MpcProviderSwift 12 | import web3 13 | 14 | extension MpcCoreKit : EvmSigner { 15 | public func sign(message: Data) throws -> Data { 16 | let data = try self.tssSign(message: message) 17 | return data 18 | } 19 | 20 | public var publicKey: Data { 21 | let fullAddress = try! KeyPoint( 22 | address: self.getTssPubKey().hexString 23 | ).getPublicKey(format: .FullAddress) 24 | 25 | return Data(hex: fullAddress).suffix(64) 26 | } 27 | 28 | } 29 | 30 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-auth0/mpc-core-kit-ios-auth0/Helpers/UserStorage.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UserStorage.swift 3 | // mpc-core-kit-ios-auth0 4 | // 5 | // Created by Ayush B on 30/04/24. 6 | // 7 | 8 | import Foundation 9 | import mpc_core_kit_swift 10 | 11 | class UserStorage : ILocalStorage { 12 | func get(key: String) async throws -> Data { 13 | print(key) 14 | guard let data = UserDefaults().value(forKey: key) as? Data else { 15 | return Data() 16 | } 17 | return data 18 | } 19 | 20 | func set(key: String, payload: Data) async throws { 21 | UserDefaults().setValue(payload, forKey: key) 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-auth0/mpc-core-kit-ios-auth0/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleURLTypes 6 | 7 | 8 | CFBundleTypeRole 9 | None 10 | CFBundleURLName 11 | auth0 12 | CFBundleURLSchemes 13 | 14 | $(PRODUCT_BUNDLE_IDENTIFIER) 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-auth0/mpc-core-kit-ios-auth0/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-auth0/mpc-core-kit-ios-auth0/Views/ContentView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ContentView.swift 3 | // mpc-core-kit-ios-auth0 4 | // 5 | // Created by Ayush B on 30/04/24. 6 | // 7 | 8 | import SwiftUI 9 | 10 | struct ContentView: View { 11 | @StateObject var viewModel: MainViewModel 12 | 13 | var body: some View { 14 | NavigationView { 15 | if viewModel.isLoggedIn { 16 | if viewModel.isRecoveryRequired { 17 | RecoveryView(viewModel: viewModel) 18 | } else { 19 | HomeView(viewModel: viewModel) 20 | } 21 | } else if viewModel.isRecoveryRequired { 22 | RecoveryView(viewModel: viewModel) 23 | } else { 24 | LoginView(viewModel: viewModel) 25 | } 26 | } 27 | } 28 | } 29 | 30 | #Preview { 31 | ContentView(viewModel: MainViewModel()) 32 | } 33 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-auth0/mpc-core-kit-ios-auth0/mpc_core_kit_ios_auth0App.swift: -------------------------------------------------------------------------------- 1 | // 2 | // mpc_core_kit_ios_auth0App.swift 3 | // mpc-core-kit-ios-auth0 4 | // 5 | // Created by Ayush B on 30/04/24. 6 | // 7 | 8 | import SwiftUI 9 | 10 | @main 11 | struct mpc_core_kit_ios_auth0App: App { 12 | var body: some Scene { 13 | WindowGroup { 14 | ContentView(viewModel: MainViewModel()) 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-auth0/mpc-core-kit-ios-auth0UITests/mpc_core_kit_ios_auth0UITestsLaunchTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // mpc_core_kit_ios_auth0UITestsLaunchTests.swift 3 | // mpc-core-kit-ios-auth0UITests 4 | // 5 | // Created by Ayush B on 30/04/24. 6 | // 7 | 8 | import XCTest 9 | 10 | final class mpc_core_kit_ios_auth0UITestsLaunchTests: XCTestCase { 11 | 12 | override class var runsForEachTargetApplicationUIConfiguration: Bool { 13 | true 14 | } 15 | 16 | override func setUpWithError() throws { 17 | continueAfterFailure = false 18 | } 19 | 20 | func testLaunch() throws { 21 | let app = XCUIApplication() 22 | app.launch() 23 | 24 | // Insert steps here to perform after app launch but before taking a screenshot, 25 | // such as logging into a test account or navigating somewhere in the app 26 | 27 | let attachment = XCTAttachment(screenshot: app.screenshot()) 28 | attachment.name = "Launch Screen" 29 | attachment.lifetime = .keepAlways 30 | add(attachment) 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-quick-start/mpc-core-kit-ios-quick-start.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-quick-start/mpc-core-kit-ios-quick-start.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-quick-start/mpc-core-kit-ios-quick-start.xcodeproj/project.xcworkspace/xcuserdata/ayushb.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-ios/mpc-core-kit-ios-quick-start/mpc-core-kit-ios-quick-start.xcodeproj/project.xcworkspace/xcuserdata/ayushb.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-quick-start/mpc-core-kit-ios-quick-start/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-quick-start/mpc-core-kit-ios-quick-start/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "platform" : "ios", 6 | "size" : "1024x1024" 7 | } 8 | ], 9 | "info" : { 10 | "author" : "xcode", 11 | "version" : 1 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-quick-start/mpc-core-kit-ios-quick-start/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-quick-start/mpc-core-kit-ios-quick-start/Helpers/Extension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Extension.swift 3 | // mpc-core-kit-ios-quick-start 4 | // 5 | // Created by Ayush B on 20/05/24. 6 | // 7 | 8 | import Foundation 9 | import mpc_core_kit_swift 10 | import tkey 11 | import MpcProviderSwift 12 | import web3 13 | 14 | extension MpcCoreKit : EvmSigner { 15 | public func sign(message: Data) throws -> Data { 16 | let data = try self.tssSign(message: message) 17 | return data 18 | } 19 | 20 | public var publicKey: Data { 21 | let fullAddress = try! KeyPoint( 22 | address: self.getTssPubKey().hexString 23 | ).getPublicKey(format: .FullAddress) 24 | 25 | return Data(hex: fullAddress).suffix(64) 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-quick-start/mpc-core-kit-ios-quick-start/Helpers/UserStorage.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UserStorage.swift 3 | // mpc-core-kit-ios-quick-start 4 | // 5 | // Created by Ayush B on 09/04/24. 6 | // 7 | 8 | import Foundation 9 | import mpc_core_kit_swift 10 | 11 | class UserStorage : ILocalStorage { 12 | func get(key: String) async throws -> Data { 13 | print(key) 14 | guard let data = UserDefaults().value(forKey: key) as? Data else { 15 | return Data() 16 | } 17 | return data 18 | } 19 | 20 | func set(key: String, payload: Data) async throws { 21 | UserDefaults().setValue(payload, forKey: key) 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-quick-start/mpc-core-kit-ios-quick-start/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-quick-start/mpc-core-kit-ios-quick-start/Views/ContentView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ContentView.swift 3 | // mpc-core-kit-ios-quick-start 4 | // 5 | // Created by Ayush B on 09/04/24. 6 | // 7 | 8 | import SwiftUI 9 | 10 | struct ContentView: View { 11 | @StateObject var viewModel: MainViewModel 12 | 13 | var body: some View { 14 | NavigationView { 15 | if viewModel.isLoggedIn { 16 | if viewModel.isRecoveryRequired { 17 | RecoveryView(viewModel: viewModel) 18 | } else { 19 | HomeView(viewModel: viewModel) 20 | } 21 | 22 | } else if viewModel.isRecoveryRequired { 23 | RecoveryView(viewModel: viewModel) 24 | } else { 25 | LoginView(viewModel: viewModel) 26 | } 27 | } 28 | } 29 | } 30 | 31 | #Preview { 32 | ContentView(viewModel: MainViewModel()) 33 | } 34 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-quick-start/mpc-core-kit-ios-quick-start/Views/LoginView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LoginView.swift 3 | // mpc-core-kit-ios-quick-start 4 | // 5 | // Created by Ayush B on 09/04/24. 6 | // 7 | 8 | import SwiftUI 9 | 10 | struct LoginView: View { 11 | @StateObject var viewModel: MainViewModel 12 | 13 | var body: some View { 14 | VStack(spacing: 16) { 15 | Spacer() 16 | Text( 17 | "MPC Core-Kit iOS Demo" 18 | ).font(.title).multilineTextAlignment(.center) 19 | Button( 20 | action: { 21 | viewModel.loginWithOAuth() 22 | }, 23 | label: { 24 | Text("Sign in with Google") 25 | } 26 | ).buttonStyle(.bordered) 27 | Spacer() 28 | }.onAppear { 29 | viewModel.initialize() 30 | } 31 | 32 | } 33 | } 34 | 35 | #Preview { 36 | LoginView(viewModel: MainViewModel()) 37 | } 38 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-quick-start/mpc-core-kit-ios-quick-start/mpc_core_kit_ios_quick_startApp.swift: -------------------------------------------------------------------------------- 1 | // 2 | // mpc_core_kit_ios_quick_startApp.swift 3 | // mpc-core-kit-ios-quick-start 4 | // 5 | // Created by Ayush B on 09/04/24. 6 | // 7 | 8 | import SwiftUI 9 | 10 | @main 11 | struct mpc_core_kit_ios_quick_startApp: App { 12 | var body: some Scene { 13 | WindowGroup { 14 | ContentView(viewModel: MainViewModel()) 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /mpc-core-kit-ios/mpc-core-kit-ios-quick-start/mpc-core-kit-ios-quick-startUITests/mpc_core_kit_ios_quick_startUITestsLaunchTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // mpc_core_kit_ios_quick_startUITestsLaunchTests.swift 3 | // mpc-core-kit-ios-quick-startUITests 4 | // 5 | // Created by Ayush B on 09/04/24. 6 | // 7 | 8 | import XCTest 9 | 10 | final class mpc_core_kit_ios_quick_startUITestsLaunchTests: XCTestCase { 11 | 12 | override class var runsForEachTargetApplicationUIConfiguration: Bool { 13 | true 14 | } 15 | 16 | override func setUpWithError() throws { 17 | continueAfterFailure = false 18 | } 19 | 20 | func testLaunch() throws { 21 | let app = XCUIApplication() 22 | app.launch() 23 | 24 | // Insert steps here to perform after app launch but before taking a screenshot, 25 | // such as logging into a test account or navigating somewhere in the app 26 | 27 | let attachment = XCTAttachment(screenshot: app.screenshot()) 28 | attachment.name = "Launch Screen" 29 | attachment.lifetime = .keepAlways 30 | add(attachment) 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /mpc-core-kit-node/mpc-core-kit-node-quick-start/.gitignore: -------------------------------------------------------------------------------- 1 | # Node modules 2 | node_modules/ 3 | 4 | # Logs 5 | logs 6 | *.log 7 | npm-debug.log* 8 | yarn-debug.log* 9 | yarn-error.log* 10 | 11 | # Runtime data 12 | pids 13 | *.pid 14 | *.seed 15 | *.pid.lock 16 | 17 | # Directory for instrumented libs generated by jscoverage/JSCover 18 | lib-cov 19 | 20 | # Coverage directory used by tools like istanbul 21 | coverage/ 22 | *.lcov 23 | 24 | # Production 25 | dist/ 26 | build/ 27 | 28 | # Secret files 29 | .env 30 | .env.local 31 | .env.*.local 32 | 33 | # Dependency directories 34 | jspm_packages/ 35 | 36 | # IDE files 37 | *.sublime-project 38 | *.sublime-workspace 39 | .vscode/ 40 | .idea/ 41 | .DS_Store 42 | 43 | # Storage file (contains session details) 44 | storage.json 45 | -------------------------------------------------------------------------------- /mpc-core-kit-node/mpc-core-kit-node-quick-start/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "MSA", 3 | "//IMP START": "IMP START - Web3Auth Installation", 4 | "dependencies": { 5 | "@tkey/common-types": "^15.1.0", 6 | "@toruslabs/tss-dkls-lib": "^4.1.0", 7 | "@web3auth/base": "^9.3.0", 8 | "@web3auth/ethereum-mpc-provider": "^9.3.0", 9 | "@web3auth/ethereum-provider": "^9.3.0", 10 | "@web3auth/mpc-core-kit": "^3.2.4", 11 | "bn.js": "^5.2.1", 12 | "firebase": "^10.13.2", 13 | "fs": "^0.0.1-security", 14 | "jsonwebtoken": "^9.0.2", 15 | "web3": "^4.13.0" 16 | }, 17 | "//IMP END": "IMP END - Web3Auth Installation", 18 | "description": "Web3Auth's Node SDK Demo App", 19 | "keywords": [], 20 | "license": "ISC", 21 | "main": "index.js", 22 | "name": "mpc-core-kit-node-quick-start", 23 | "scripts": { 24 | "start": "node index.js" 25 | }, 26 | "version": "1.0.0", 27 | "devDependencies": { 28 | "@types/jsonwebtoken": "^9.0.6" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /mpc-core-kit-node/mpc-core-kit-node-quick-start/publicKey.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PUBLIC KEY----- 2 | MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAskj78C3fpVD6X99O7lQ9 3 | XddAWsoO7+C4n338WguH8NtS5+ZrIQVHJvq1AOIYFaDLaif7GvDnN/4m01AFZ7r3 4 | /5MiaLi4256bNFM817iVTaFsRhqNM+TOm4M/SptEsKaLK8UjLXaLCLoSdk5VCqK3 5 | uNTQGCJoni7AJh2kKcWwmPAEIzFQUBC+v1hxSBy9MwFI9uh7ozp80pV7N1ufgOWd 6 | 9QQFMFXC9NyAXXdQ1l7BltpPf6YJjdjyyY7j7jpYNqxgdpgTIkouyLhAB4wQMq/m 7 | 4lVYKnCBMzagapxjp7cZCUCPClrDFOZ1H1LGQX900XbdyTPBeiripJvvjCc368Jw 8 | 7QIDAQAB 9 | -----END PUBLIC KEY----- 10 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/.bundle/config: -------------------------------------------------------------------------------- 1 | BUNDLE_PATH: "vendor/bundle" 2 | BUNDLE_FORCE_RUBY_PLATFORM: 1 3 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native', 4 | }; 5 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | ios/.xcode.env.local 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | *.hprof 33 | .cxx/ 34 | *.keystore 35 | !debug.keystore 36 | 37 | # node.js 38 | # 39 | node_modules/ 40 | npm-debug.log 41 | yarn-error.log 42 | 43 | # fastlane 44 | # 45 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 46 | # screenshots whenever they are needed. 47 | # For more information about the recommended setup visit: 48 | # https://docs.fastlane.tools/best-practices/source-control/ 49 | 50 | **/fastlane/report.xml 51 | **/fastlane/Preview.html 52 | **/fastlane/screenshots 53 | **/fastlane/test_output 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | 58 | # Ruby / CocoaPods 59 | /ios/Pods/ 60 | /vendor/bundle/ 61 | 62 | # Temporary files created by Metro to check the health of the file watcher 63 | .metro-health-check* 64 | 65 | # testing 66 | /coverage 67 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | arrowParens: 'avoid', 3 | bracketSameLine: true, 4 | bracketSpacing: false, 5 | singleQuote: true, 6 | trailingComma: 'all', 7 | }; 8 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version 4 | ruby ">= 2.6.10" 5 | 6 | # Cocoapods 1.15 introduced a bug which break the build. We will remove the upper 7 | # bound in the template on Cocoapods with next React Native release. 8 | gem 'cocoapods', '>= 1.13', '< 1.15' 9 | gem 'activesupport', '>= 6.1.7.5', '< 7.1.0' 10 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/__tests__/App.test.tsx: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: import explicitly to use the types shipped with jest. 10 | import {it} from '@jest/globals'; 11 | 12 | // Note: test renderer must be required after react-native. 13 | import renderer from 'react-test-renderer'; 14 | 15 | it('renders correctly', () => { 16 | renderer.create(); 17 | }); 18 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/debug.keystore -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/java/com/mpccorekitrnauth0/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.mpccorekitrnauth0 2 | 3 | import com.facebook.react.ReactActivity 4 | import com.facebook.react.ReactActivityDelegate 5 | import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled 6 | import com.facebook.react.defaults.DefaultReactActivityDelegate 7 | 8 | class MainActivity : ReactActivity() { 9 | 10 | /** 11 | * Returns the name of the main component registered from JavaScript. This is used to schedule 12 | * rendering of the component. 13 | */ 14 | override fun getMainComponentName(): String = "mpccorekitrnauth0" 15 | 16 | /** 17 | * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate] 18 | * which allows you to enable New Architecture with a single boolean flags [fabricEnabled] 19 | */ 20 | override fun createReactActivityDelegate(): ReactActivityDelegate = 21 | DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled) 22 | } 23 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | mpccorekitrnauth0 3 | 4 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext { 3 | buildToolsVersion = "34.0.0" 4 | minSdkVersion = 21 5 | compileSdkVersion = 34 6 | targetSdkVersion = 34 7 | ndkVersion = "25.1.8937393" 8 | kotlinVersion = "1.8.0" 9 | } 10 | repositories { 11 | google() 12 | mavenCentral() 13 | } 14 | dependencies { 15 | classpath("com.android.tools.build:gradle") 16 | classpath("com.facebook.react:react-native-gradle-plugin") 17 | classpath("org.jetbrains.kotlin:kotlin-gradle-plugin") 18 | } 19 | } 20 | 21 | apply plugin: "com.facebook.react.rootproject" 22 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip 4 | networkTimeout=10000 5 | validateDistributionUrl=true 6 | zipStoreBase=GRADLE_USER_HOME 7 | zipStorePath=wrapper/dists 8 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'mpccorekitrnauth0' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | includeBuild('../node_modules/@react-native/gradle-plugin') 5 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mpccorekitrnauth0", 3 | "displayName": "mpccorekitrnauth0" 4 | } 5 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:@react-native/babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/customTransformer.js: -------------------------------------------------------------------------------- 1 | const { nodeModulesPolyfillPlugin } = require("esbuild-plugins-node-modules-polyfill"); 2 | const reactNativeReactBridgeTransformer = require("react-native-react-bridge/lib/plugin"); 3 | const esbuildOptions = { 4 | plugins: [ 5 | nodeModulesPolyfillPlugin({ 6 | globals: { 7 | Buffer: true, 8 | crypto: true, 9 | }, 10 | // modules: { 11 | // Buffer : true, 12 | // } 13 | }), 14 | ], 15 | }; 16 | module.exports.transform = function ({ src, filename, options }) { 17 | const transform = reactNativeReactBridgeTransformer.createTransformer(esbuildOptions); 18 | return transform({ src, filename, options }); 19 | }; 20 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/globals.ts: -------------------------------------------------------------------------------- 1 | global.Buffer = require('buffer').Buffer; -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import {AppRegistry} from 'react-native'; 6 | import './globals'; 7 | import "@ethersproject/shims"; 8 | import {name as appName} from './app.json'; 9 | 10 | import App from './App'; 11 | 12 | AppRegistry.registerComponent(appName, () => App); 13 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/ios/.xcode.env: -------------------------------------------------------------------------------- 1 | # This `.xcode.env` file is versioned and is used to source the environment 2 | # used when running script phases inside Xcode. 3 | # To customize your local environment, you can create an `.xcode.env.local` 4 | # file that is not versioned. 5 | 6 | # NODE_BINARY variable contains the PATH to the node executable. 7 | # 8 | # Customize the NODE_BINARY variable here. 9 | # For example, to use nvm with brew, add the following line 10 | # . "$(brew --prefix nvm)/nvm.sh" --no-use 11 | export NODE_BINARY=$(command -v node) 12 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/ios/mpccorekitrnauth0.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/ios/mpccorekitrnauth0.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/ios/mpccorekitrnauth0/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : RCTAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/ios/mpccorekitrnauth0/AppDelegate.mm: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #import 4 | #import 5 | 6 | @implementation AppDelegate 7 | 8 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 9 | { 10 | self.moduleName = @"mpccorekitrnauth0"; 11 | // You can add your custom initial props in the dictionary below. 12 | // They will be passed down to the ViewController used by React Native. 13 | self.initialProps = @{}; 14 | 15 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 16 | } 17 | 18 | - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url 19 | options:(NSDictionary *)options 20 | { 21 | return [RCTLinkingManager application:app openURL:url options:options]; 22 | } 23 | 24 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 25 | { 26 | return [self getBundleURL]; 27 | } 28 | 29 | - (NSURL *)getBundleURL 30 | { 31 | #if DEBUG 32 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; 33 | #else 34 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 35 | #endif 36 | } 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/ios/mpccorekitrnauth0/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "2x", 6 | "size" : "20x20" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "3x", 11 | "size" : "20x20" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "scale" : "2x", 16 | "size" : "29x29" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "scale" : "3x", 21 | "size" : "29x29" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "scale" : "2x", 26 | "size" : "40x40" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "scale" : "2x", 36 | "size" : "60x60" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "scale" : "3x", 41 | "size" : "60x60" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "scale" : "1x", 46 | "size" : "1024x1024" 47 | } 48 | ], 49 | "info" : { 50 | "author" : "xcode", 51 | "version" : 1 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/ios/mpccorekitrnauth0/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/ios/mpccorekitrnauth0/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | @autoreleasepool { 8 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/ios/mpccorekitrnauth0Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'react-native', 3 | }; 4 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-auth0/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@react-native/typescript-config/tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/.gitignore: -------------------------------------------------------------------------------- 1 | # Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files 2 | 3 | # dependencies 4 | node_modules/ 5 | 6 | # Expo 7 | .expo/ 8 | dist/ 9 | web-build/ 10 | 11 | # Native 12 | *.orig.* 13 | *.jks 14 | *.p8 15 | *.p12 16 | *.key 17 | *.mobileprovision 18 | 19 | # Metro 20 | .metro-health-check* 21 | 22 | # debug 23 | npm-debug.* 24 | yarn-debug.* 25 | yarn-error.* 26 | 27 | # macOS 28 | .DS_Store 29 | *.pem 30 | 31 | # local env files 32 | .env*.local 33 | 34 | # typescript 35 | *.tsbuildinfo 36 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Android/IntelliJ 6 | # 7 | build/ 8 | .idea 9 | .gradle 10 | local.properties 11 | *.iml 12 | *.hprof 13 | .cxx/ 14 | 15 | # Bundle artifacts 16 | *.jsbundle 17 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/debug.keystore -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # react-native-reanimated 11 | -keep class com.swmansion.reanimated.** { *; } 12 | -keep class com.facebook.react.turbomodule.** { *; } 13 | 14 | # Add any project specific keep options here: 15 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/drawable-hdpi/splashscreen_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/drawable-hdpi/splashscreen_image.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/drawable-mdpi/splashscreen_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/drawable-mdpi/splashscreen_image.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/drawable-xhdpi/splashscreen_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/drawable-xhdpi/splashscreen_image.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/drawable-xxhdpi/splashscreen_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/drawable-xxhdpi/splashscreen_image.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/drawable-xxxhdpi/splashscreen_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/drawable-xxxhdpi/splashscreen_image.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/drawable/splashscreen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/values-night/colors.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | #ffffff 3 | #ffffff 4 | #023c69 5 | #ffffff 6 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | mpccorekitexpoauth0 3 | contain 4 | false 5 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 14 | 17 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-all.zip 4 | networkTimeout=10000 5 | validateDistributionUrl=true 6 | zipStoreBase=GRADLE_USER_HOME 7 | zipStorePath=wrapper/dists 8 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/react-settings-plugin/build.gradle.kts: -------------------------------------------------------------------------------- 1 | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile 2 | 3 | plugins { 4 | kotlin("jvm") version "1.9.24" 5 | id("java-gradle-plugin") 6 | } 7 | 8 | repositories { 9 | mavenCentral() 10 | } 11 | 12 | gradlePlugin { 13 | plugins { 14 | create("reactSettingsPlugin") { 15 | id = "com.facebook.react.settings" 16 | implementationClass = "expo.plugins.ReactSettingsPlugin" 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/android/react-settings-plugin/src/main/kotlin/expo/plugins/ReactSettingsPlugin.kt: -------------------------------------------------------------------------------- 1 | package expo.plugins 2 | 3 | import org.gradle.api.Plugin 4 | import org.gradle.api.initialization.Settings 5 | 6 | class ReactSettingsPlugin : Plugin { 7 | override fun apply(settings: Settings) { 8 | // Do nothing, just register the plugin. 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/app.config.ts: -------------------------------------------------------------------------------- 1 | import 'ts-node/register'; // Add this to import TypeScript files 2 | import { ExpoConfig } from 'expo/config'; 3 | 4 | const config: ExpoConfig = { 5 | name: 'my-app', 6 | slug: 'my-app', 7 | }; 8 | 9 | export default config; 10 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "expo": { 3 | "name": "mpccorekitexpoauth0", 4 | "slug": "mpccorekitexpoauth0", 5 | "version": "1.0.0", 6 | "orientation": "portrait", 7 | "icon": "./assets/icon.png", 8 | "userInterfaceStyle": "light", 9 | "splash": { 10 | "image": "./assets/splash.png", 11 | "resizeMode": "contain", 12 | "backgroundColor": "#ffffff" 13 | }, 14 | "ios": { 15 | "supportsTablet": true, 16 | "bundleIdentifier": "com.anonymous.mpccorekitexpoauth0" 17 | }, 18 | "android": { 19 | "adaptiveIcon": { 20 | "foregroundImage": "./assets/adaptive-icon.png", 21 | "backgroundColor": "#ffffff" 22 | }, 23 | "package": "com.anonymous.mpccorekitexpoauth0" 24 | }, 25 | "web": { 26 | "favicon": "./assets/favicon.png" 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/assets/adaptive-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/assets/adaptive-icon.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/assets/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/assets/favicon.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/assets/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/assets/icon.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/assets/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/assets/splash.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = function(api) { 2 | api.cache(true); 3 | return { 4 | presets: ['babel-preset-expo'], 5 | }; 6 | }; 7 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/customTransformer.js: -------------------------------------------------------------------------------- 1 | const { nodeModulesPolyfillPlugin } = require("esbuild-plugins-node-modules-polyfill"); 2 | const reactNativeReactBridgeTransformer = require("react-native-react-bridge/lib/plugin"); 3 | const esbuildOptions = { 4 | plugins: [ 5 | nodeModulesPolyfillPlugin({ 6 | globals: { 7 | Buffer: true, 8 | crypto: true, 9 | }, 10 | // modules: { 11 | // Buffer : true, 12 | // } 13 | }), 14 | ], 15 | }; 16 | module.exports.transform = function ({ src, filename, options }) { 17 | const transform = reactNativeReactBridgeTransformer.createTransformer(esbuildOptions); 18 | return transform({ src, filename, options }); 19 | }; 20 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/globals.ts: -------------------------------------------------------------------------------- 1 | global.Buffer = require("buffer").Buffer; 2 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/ios/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | .xcode.env.local 25 | 26 | # Bundle artifacts 27 | *.jsbundle 28 | 29 | # CocoaPods 30 | /Pods/ 31 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/ios/.xcode.env: -------------------------------------------------------------------------------- 1 | # This `.xcode.env` file is versioned and is used to source the environment 2 | # used when running script phases inside Xcode. 3 | # To customize your local environment, you can create an `.xcode.env.local` 4 | # file that is not versioned. 5 | 6 | # NODE_BINARY variable contains the PATH to the node executable. 7 | # 8 | # Customize the NODE_BINARY variable here. 9 | # For example, to use nvm with brew, add the following line 10 | # . "$(brew --prefix nvm)/nvm.sh" --no-use 11 | export NODE_BINARY=$(command -v node) 12 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/ios/Podfile.properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "expo.jsEngine": "hermes", 3 | "EX_DEV_CLIENT_NETWORK_INSPECTOR": "true" 4 | } 5 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/ios/mpccorekitexpoauth0.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/ios/mpccorekitexpoauth0/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | 5 | @interface AppDelegate : EXAppDelegateWrapper 6 | 7 | @end 8 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/ios/mpccorekitexpoauth0/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/ios/mpccorekitexpoauth0/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/ios/mpccorekitexpoauth0/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "filename": "App-Icon-1024x1024@1x.png", 5 | "idiom": "universal", 6 | "platform": "ios", 7 | "size": "1024x1024" 8 | } 9 | ], 10 | "info": { 11 | "version": 1, 12 | "author": "expo" 13 | } 14 | } -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/ios/mpccorekitexpoauth0/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "expo" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/ios/mpccorekitexpoauth0/Images.xcassets/SplashScreen.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "idiom": "universal", 5 | "filename": "image.png", 6 | "scale": "1x" 7 | }, 8 | { 9 | "idiom": "universal", 10 | "scale": "2x" 11 | }, 12 | { 13 | "idiom": "universal", 14 | "scale": "3x" 15 | } 16 | ], 17 | "info": { 18 | "version": 1, 19 | "author": "expo" 20 | } 21 | } -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/ios/mpccorekitexpoauth0/Images.xcassets/SplashScreen.imageset/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/ios/mpccorekitexpoauth0/Images.xcassets/SplashScreen.imageset/image.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/ios/mpccorekitexpoauth0/Images.xcassets/SplashScreenBackground.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "idiom": "universal", 5 | "filename": "image.png", 6 | "scale": "1x" 7 | }, 8 | { 9 | "idiom": "universal", 10 | "scale": "2x" 11 | }, 12 | { 13 | "idiom": "universal", 14 | "scale": "3x" 15 | } 16 | ], 17 | "info": { 18 | "version": 1, 19 | "author": "expo" 20 | } 21 | } -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/ios/mpccorekitexpoauth0/Images.xcassets/SplashScreenBackground.imageset/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/ios/mpccorekitexpoauth0/Images.xcassets/SplashScreenBackground.imageset/image.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/ios/mpccorekitexpoauth0/Supporting/Expo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | EXUpdatesCheckOnLaunch 6 | ALWAYS 7 | EXUpdatesEnabled 8 | 9 | EXUpdatesLaunchWaitMs 10 | 0 11 | 12 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/ios/mpccorekitexpoauth0/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | 11 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/ios/mpccorekitexpoauth0/mpccorekitexpoauth0-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Use this file to import your target's public headers that you would like to expose to Swift. 3 | // 4 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/ios/mpccorekitexpoauth0/mpccorekitexpoauth0.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/ios/mpccorekitexpoauth0/noop-file.swift: -------------------------------------------------------------------------------- 1 | // 2 | // @generated 3 | // A blank Swift file must be created for native modules with Swift files to work correctly. 4 | // 5 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "strict": true 4 | }, 5 | "extends": "expo/tsconfig.base" 6 | } 7 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/.bundle/config: -------------------------------------------------------------------------------- 1 | BUNDLE_PATH: "vendor/bundle" 2 | BUNDLE_FORCE_RUBY_PLATFORM: 1 3 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native', 4 | }; 5 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | arrowParens: 'avoid', 3 | bracketSameLine: true, 4 | bracketSpacing: false, 5 | singleQuote: true, 6 | trailingComma: 'all', 7 | }; 8 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version 4 | ruby ">= 2.6.10" 5 | 6 | # Exclude problematic versions of cocoapods and activesupport that causes build failures. 7 | gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1' 8 | gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0' 9 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/__tests__/App.test.tsx: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: import explicitly to use the types shipped with jest. 10 | import {it} from '@jest/globals'; 11 | 12 | // Note: test renderer must be required after react-native. 13 | import renderer from 'react-test-renderer'; 14 | 15 | it('renders correctly', () => { 16 | renderer.create(); 17 | }); 18 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/debug.keystore -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 13 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/java/com/mpccorekitrnquickstart/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.mpccorekitrnquickstart 2 | 3 | import com.facebook.react.ReactActivity 4 | import com.facebook.react.ReactActivityDelegate 5 | import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled 6 | import com.facebook.react.defaults.DefaultReactActivityDelegate 7 | 8 | class MainActivity : ReactActivity() { 9 | 10 | /** 11 | * Returns the name of the main component registered from JavaScript. This is used to schedule 12 | * rendering of the component. 13 | */ 14 | override fun getMainComponentName(): String = "mpccorekitrnquickstart" 15 | 16 | /** 17 | * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate] 18 | * which allows you to enable New Architecture with a single boolean flags [fabricEnabled] 19 | */ 20 | override fun createReactActivityDelegate(): ReactActivityDelegate = 21 | DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled) 22 | } 23 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | mpccorekitrnquickstart 3 | 4 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext { 3 | buildToolsVersion = "34.0.0" 4 | // IMP START - Requirements Android 5 | minSdkVersion = 23 6 | compileSdkVersion = 34 7 | targetSdkVersion = 34 8 | // IMP END - Requirements Android 9 | ndkVersion = "26.1.10909125" 10 | kotlinVersion = "1.9.24" 11 | } 12 | repositories { 13 | google() 14 | mavenCentral() 15 | } 16 | dependencies { 17 | classpath("com.android.tools.build:gradle") 18 | classpath("com.facebook.react:react-native-gradle-plugin") 19 | classpath("org.jetbrains.kotlin:kotlin-gradle-plugin") 20 | classpath("com.google.gms:google-services:4.4.2") 21 | } 22 | } 23 | 24 | apply plugin: "com.facebook.react.rootproject" 25 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-all.zip 4 | networkTimeout=10000 5 | validateDistributionUrl=true 6 | zipStoreBase=GRADLE_USER_HOME 7 | zipStorePath=wrapper/dists 8 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/android/settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") } 2 | plugins { id("com.facebook.react.settings") } 3 | extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() } 4 | rootProject.name = 'mpccorekitrnquickstart' 5 | include ':app' 6 | includeBuild('../node_modules/@react-native/gradle-plugin') 7 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mpccorekitrnquickstart", 3 | "displayName": "mpccorekitrnquickstart" 4 | } 5 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:@react-native/babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/customTransformer.js: -------------------------------------------------------------------------------- 1 | const { nodeModulesPolyfillPlugin } = require("esbuild-plugins-node-modules-polyfill"); 2 | const reactNativeReactBridgeTransformer = require("react-native-react-bridge/lib/plugin"); 3 | const esbuildOptions = { 4 | plugins: [ 5 | nodeModulesPolyfillPlugin({ 6 | globals: { 7 | Buffer: true, 8 | crypto: true, 9 | }, 10 | // modules: { 11 | // Buffer : true, 12 | // } 13 | }), 14 | ], 15 | }; 16 | module.exports.transform = function ({ src, filename, options }) { 17 | const transform = reactNativeReactBridgeTransformer.createTransformer(esbuildOptions); 18 | return transform({ src, filename, options }); 19 | }; 20 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/globals.ts: -------------------------------------------------------------------------------- 1 | global.Buffer = require('buffer').Buffer; -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import {AppRegistry} from 'react-native'; 6 | import './globals'; 7 | import "@ethersproject/shims"; 8 | import {name as appName} from './app.json'; 9 | 10 | import App from './App'; 11 | 12 | AppRegistry.registerComponent(appName, () => App); 13 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/ios/.xcode.env: -------------------------------------------------------------------------------- 1 | # This `.xcode.env` file is versioned and is used to source the environment 2 | # used when running script phases inside Xcode. 3 | # To customize your local environment, you can create an `.xcode.env.local` 4 | # file that is not versioned. 5 | 6 | # NODE_BINARY variable contains the PATH to the node executable. 7 | # 8 | # Customize the NODE_BINARY variable here. 9 | # For example, to use nvm with brew, add the following line 10 | # . "$(brew --prefix nvm)/nvm.sh" --no-use 11 | export NODE_BINARY=$(command -v node) 12 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/ios/mpccorekitrnquickstart.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/ios/mpccorekitrnquickstart.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/ios/mpccorekitrnquickstart.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/ios/mpccorekitrnquickstart/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : RCTAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/ios/mpccorekitrnquickstart/AppDelegate.mm: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | #import 3 | #import 4 | 5 | @implementation AppDelegate 6 | 7 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 8 | { 9 | [FIRApp configure]; 10 | self.moduleName = @"mpccorekitrnquickstart"; 11 | // You can add your custom initial props in the dictionary below. 12 | // They will be passed down to the ViewController used by React Native. 13 | self.initialProps = @{}; 14 | 15 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 16 | } 17 | 18 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 19 | { 20 | return [self bundleURL]; 21 | } 22 | 23 | - (NSURL *)bundleURL 24 | { 25 | #if DEBUG 26 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; 27 | #else 28 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 29 | #endif 30 | } 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/ios/mpccorekitrnquickstart/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "2x", 6 | "size" : "20x20" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "3x", 11 | "size" : "20x20" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "scale" : "2x", 16 | "size" : "29x29" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "scale" : "3x", 21 | "size" : "29x29" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "scale" : "2x", 26 | "size" : "40x40" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "scale" : "2x", 36 | "size" : "60x60" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "scale" : "3x", 41 | "size" : "60x60" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "scale" : "1x", 46 | "size" : "1024x1024" 47 | } 48 | ], 49 | "info" : { 50 | "author" : "xcode", 51 | "version" : 1 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/ios/mpccorekitrnquickstart/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/ios/mpccorekitrnquickstart/PrivacyInfo.xcprivacy: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSPrivacyAccessedAPITypes 6 | 7 | 8 | NSPrivacyAccessedAPIType 9 | NSPrivacyAccessedAPICategoryUserDefaults 10 | NSPrivacyAccessedAPITypeReasons 11 | 12 | CA92.1 13 | 1C8F.1 14 | C56D.1 15 | 16 | 17 | 18 | NSPrivacyAccessedAPIType 19 | NSPrivacyAccessedAPICategoryFileTimestamp 20 | NSPrivacyAccessedAPITypeReasons 21 | 22 | C617.1 23 | 24 | 25 | 26 | NSPrivacyAccessedAPIType 27 | NSPrivacyAccessedAPICategorySystemBootTime 28 | NSPrivacyAccessedAPITypeReasons 29 | 30 | 35F9.1 31 | 32 | 33 | 34 | NSPrivacyCollectedDataTypes 35 | 36 | NSPrivacyTracking 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/ios/mpccorekitrnquickstart/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | @autoreleasepool { 8 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/ios/mpccorekitrnquickstartTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'react-native', 3 | }; 4 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-quick-start/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@react-native/typescript-config/tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/.bundle/config: -------------------------------------------------------------------------------- 1 | BUNDLE_PATH: "vendor/bundle" 2 | BUNDLE_FORCE_RUBY_PLATFORM: 1 3 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native', 4 | }; 5 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | arrowParens: 'avoid', 3 | bracketSameLine: true, 4 | bracketSpacing: false, 5 | singleQuote: true, 6 | trailingComma: 'all', 7 | }; 8 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version 4 | ruby ">= 2.6.10" 5 | 6 | # Exclude problematic versions of cocoapods and activesupport that causes build failures. 7 | gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1' 8 | gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0' 9 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/__tests__/App.test.tsx: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: import explicitly to use the types shipped with jest. 10 | import {it} from '@jest/globals'; 11 | 12 | // Note: test renderer must be required after react-native. 13 | import renderer from 'react-test-renderer'; 14 | 15 | it('renders correctly', () => { 16 | renderer.create(); 17 | }); 18 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/debug.keystore -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 13 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/java/com/mpccorekitrnquickstart/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.mpccorekitrnquickstart 2 | 3 | import com.facebook.react.ReactActivity 4 | import com.facebook.react.ReactActivityDelegate 5 | import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled 6 | import com.facebook.react.defaults.DefaultReactActivityDelegate 7 | 8 | class MainActivity : ReactActivity() { 9 | 10 | /** 11 | * Returns the name of the main component registered from JavaScript. This is used to schedule 12 | * rendering of the component. 13 | */ 14 | override fun getMainComponentName(): String = "mpccorekitrnquickstart" 15 | 16 | /** 17 | * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate] 18 | * which allows you to enable New Architecture with a single boolean flags [fabricEnabled] 19 | */ 20 | override fun createReactActivityDelegate(): ReactActivityDelegate = 21 | DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled) 22 | } 23 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | mpccorekitrnquickstart 3 | 4 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext { 3 | buildToolsVersion = "34.0.0" 4 | // IMP START - Requirements Android 5 | minSdkVersion = 23 6 | compileSdkVersion = 34 7 | targetSdkVersion = 34 8 | // IMP END - Requirements Android 9 | ndkVersion = "26.1.10909125" 10 | kotlinVersion = "1.9.24" 11 | } 12 | repositories { 13 | google() 14 | mavenCentral() 15 | } 16 | dependencies { 17 | classpath("com.android.tools.build:gradle") 18 | classpath("com.facebook.react:react-native-gradle-plugin") 19 | classpath("org.jetbrains.kotlin:kotlin-gradle-plugin") 20 | classpath("com.google.gms:google-services:4.4.2") 21 | } 22 | } 23 | 24 | apply plugin: "com.facebook.react.rootproject" 25 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-all.zip 4 | networkTimeout=10000 5 | validateDistributionUrl=true 6 | zipStoreBase=GRADLE_USER_HOME 7 | zipStorePath=wrapper/dists 8 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/android/settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") } 2 | plugins { id("com.facebook.react.settings") } 3 | extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() } 4 | rootProject.name = 'mpccorekitrnquickstart' 5 | include ':app' 6 | includeBuild('../node_modules/@react-native/gradle-plugin') 7 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mpccorekitrnquickstart", 3 | "displayName": "mpccorekitrnquickstart" 4 | } 5 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:@react-native/babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/customTransformer.js: -------------------------------------------------------------------------------- 1 | const { nodeModulesPolyfillPlugin } = require("esbuild-plugins-node-modules-polyfill"); 2 | const reactNativeReactBridgeTransformer = require("react-native-react-bridge/lib/plugin"); 3 | const esbuildOptions = { 4 | plugins: [ 5 | nodeModulesPolyfillPlugin({ 6 | globals: { 7 | Buffer: true, 8 | crypto: true, 9 | }, 10 | // modules: { 11 | // Buffer : true, 12 | // } 13 | }), 14 | ], 15 | }; 16 | module.exports.transform = function ({ src, filename, options }) { 17 | const transform = reactNativeReactBridgeTransformer.createTransformer(esbuildOptions); 18 | return transform({ src, filename, options }); 19 | }; 20 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/globals.ts: -------------------------------------------------------------------------------- 1 | import 'react-native-get-random-values'; 2 | global.Buffer = require('buffer').Buffer; 3 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import {AppRegistry} from 'react-native'; 6 | import './globals'; 7 | import {name as appName} from './app.json'; 8 | 9 | import App from './App'; 10 | 11 | AppRegistry.registerComponent(appName, () => App); 12 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/ios/.xcode.env: -------------------------------------------------------------------------------- 1 | # This `.xcode.env` file is versioned and is used to source the environment 2 | # used when running script phases inside Xcode. 3 | # To customize your local environment, you can create an `.xcode.env.local` 4 | # file that is not versioned. 5 | 6 | # NODE_BINARY variable contains the PATH to the node executable. 7 | # 8 | # Customize the NODE_BINARY variable here. 9 | # For example, to use nvm with brew, add the following line 10 | # . "$(brew --prefix nvm)/nvm.sh" --no-use 11 | export NODE_BINARY=$(command -v node) 12 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/ios/mpccorekitrnquickstart.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/ios/mpccorekitrnquickstart.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/ios/mpccorekitrnquickstart.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/ios/mpccorekitrnquickstart/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : RCTAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/ios/mpccorekitrnquickstart/AppDelegate.mm: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | #import 3 | #import 4 | 5 | @implementation AppDelegate 6 | 7 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 8 | { 9 | [FIRApp configure]; 10 | self.moduleName = @"mpccorekitrnquickstart"; 11 | // You can add your custom initial props in the dictionary below. 12 | // They will be passed down to the ViewController used by React Native. 13 | self.initialProps = @{}; 14 | 15 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 16 | } 17 | 18 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 19 | { 20 | return [self bundleURL]; 21 | } 22 | 23 | - (NSURL *)bundleURL 24 | { 25 | #if DEBUG 26 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; 27 | #else 28 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 29 | #endif 30 | } 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/ios/mpccorekitrnquickstart/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "2x", 6 | "size" : "20x20" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "3x", 11 | "size" : "20x20" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "scale" : "2x", 16 | "size" : "29x29" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "scale" : "3x", 21 | "size" : "29x29" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "scale" : "2x", 26 | "size" : "40x40" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "scale" : "2x", 36 | "size" : "60x60" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "scale" : "3x", 41 | "size" : "60x60" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "scale" : "1x", 46 | "size" : "1024x1024" 47 | } 48 | ], 49 | "info" : { 50 | "author" : "xcode", 51 | "version" : 1 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/ios/mpccorekitrnquickstart/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/ios/mpccorekitrnquickstart/PrivacyInfo.xcprivacy: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSPrivacyAccessedAPITypes 6 | 7 | 8 | NSPrivacyAccessedAPIType 9 | NSPrivacyAccessedAPICategoryUserDefaults 10 | NSPrivacyAccessedAPITypeReasons 11 | 12 | CA92.1 13 | 1C8F.1 14 | C56D.1 15 | 16 | 17 | 18 | NSPrivacyAccessedAPIType 19 | NSPrivacyAccessedAPICategoryFileTimestamp 20 | NSPrivacyAccessedAPITypeReasons 21 | 22 | C617.1 23 | 24 | 25 | 26 | NSPrivacyAccessedAPIType 27 | NSPrivacyAccessedAPICategorySystemBootTime 28 | NSPrivacyAccessedAPITypeReasons 29 | 30 | 35F9.1 31 | 32 | 33 | 34 | NSPrivacyCollectedDataTypes 35 | 36 | NSPrivacyTracking 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/ios/mpccorekitrnquickstart/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | @autoreleasepool { 8 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/ios/mpccorekitrnquickstartTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'react-native', 3 | }; 4 | -------------------------------------------------------------------------------- /mpc-core-kit-react-native/mpc-core-kit-rn-solana/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@react-native/typescript-config/tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-popup-flow-example/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-popup-flow-example/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-popup-flow-example/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-popup-flow-example/public/favicon.ico -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-popup-flow-example/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-popup-flow-example/public/logo192.png -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-popup-flow-example/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-popup-flow-example/public/logo512.png -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-popup-flow-example/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-popup-flow-example/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-popup-flow-example/src/App.test.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { render, screen } from '@testing-library/react'; 3 | import App from './App'; 4 | 5 | test('renders learn react link', () => { 6 | render(); 7 | const linkElement = screen.getByText(/learn react/i); 8 | expect(linkElement).toBeInTheDocument(); 9 | }); 10 | -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-popup-flow-example/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-popup-flow-example/src/index.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom/client'; 3 | import './index.css'; 4 | import App from './App'; 5 | import * as serviceWorkerRegistration from './serviceWorkerRegistration'; 6 | 7 | const root = ReactDOM.createRoot( 8 | document.getElementById('root') as HTMLElement 9 | ); 10 | root.render( 11 | // 12 | 13 | // 14 | ); 15 | 16 | // If you want your app to work offline and load faster, you can change 17 | // unregister() to register() below. Note this comes with some pitfalls. 18 | // Learn more about service workers: https://cra.link/PWA 19 | serviceWorkerRegistration.unregister(); 20 | -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-popup-flow-example/src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-popup-flow-example/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "allowJs": false, 4 | "allowSyntheticDefaultImports": true, 5 | "esModuleInterop": true, 6 | "forceConsistentCasingInFileNames": true, 7 | "isolatedModules": true, 8 | "jsx": "react-jsx", 9 | "lib": [ 10 | "dom", 11 | "dom.iterable", 12 | "esnext" 13 | ], 14 | "module": "esnext", 15 | "moduleResolution": "node", 16 | "noEmit": true, 17 | "noFallthroughCasesInSwitch": true, 18 | "resolveJsonModule": true, 19 | "skipLibCheck": true, 20 | "strict": true, 21 | "target": "ESNext", 22 | "types": [ 23 | "vite/client" 24 | ] 25 | }, 26 | "include": [ 27 | "src" 28 | ] 29 | } -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-popup-flow-example/vite.config.ts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vite"; 2 | import react from "@vitejs/plugin-react"; 3 | 4 | // https://vitejs.dev/config/ 5 | export default defineConfig({ 6 | plugins: [react()], 7 | resolve: { 8 | alias: { 9 | crypto: "empty-module", 10 | assert: "empty-module", 11 | http: "empty-module", 12 | https: "empty-module", 13 | os: "empty-module", 14 | url: "empty-module", 15 | zlib: "empty-module", 16 | stream: "stream", 17 | _stream_duplex: "empty-module", 18 | _stream_passthrough: "empty-module", 19 | _stream_readable: "empty-module", 20 | _stream_writable: "empty-module", 21 | _stream_transform: "empty-module", 22 | }, 23 | }, 24 | define: { 25 | global: "globalThis", 26 | }, 27 | }); -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-redirect-flow-example/config-overrides.js: -------------------------------------------------------------------------------- 1 | const webpack = require("webpack"); 2 | 3 | module.exports = function override(config) { 4 | const fallback = config.resolve.fallback || {}; 5 | // IMP START - Bundler Issues 6 | Object.assign(fallback, { 7 | crypto: require.resolve('crypto-browserify'), 8 | stream: require.resolve('stream-browserify'), 9 | assert: require.resolve('assert'), 10 | http: require.resolve('stream-http'), 11 | https: require.resolve('https-browserify'), 12 | os: require.resolve('os-browserify'), 13 | url: require.resolve('url'), 14 | zlib: require.resolve("browserify-zlib") 15 | }); 16 | config.resolve.fallback = fallback; 17 | config.plugins = (config.plugins || []).concat([ 18 | new webpack.ProvidePlugin({ 19 | process: "process/browser", 20 | Buffer: ["buffer", "Buffer"], 21 | }), 22 | ]); 23 | // IMP END - Bundler Issues 24 | config.ignoreWarnings = [/Failed to parse source map/]; 25 | config.module.rules.push({ 26 | test: /\.(js|mjs|jsx)$/, 27 | enforce: "pre", 28 | loader: require.resolve("source-map-loader"), 29 | resolve: { 30 | fullySpecified: false, 31 | }, 32 | }); 33 | return config; 34 | }; 35 | -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-redirect-flow-example/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-redirect-flow-example/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-redirect-flow-example/public/favicon.ico -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-redirect-flow-example/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-redirect-flow-example/public/logo192.png -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-redirect-flow-example/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-redirect-flow-example/public/logo512.png -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-redirect-flow-example/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-redirect-flow-example/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-redirect-flow-example/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-redirect-flow-example/src/index.tsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom/client"; 3 | import "./index.css"; 4 | import App from "./App"; 5 | 6 | const root = ReactDOM.createRoot( 7 | document.getElementById("root") as HTMLElement 8 | ); 9 | root.render( 10 | 11 | 12 | 13 | ); 14 | -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-redirect-flow-example/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-redirect-flow-example/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "allowJs": false, 4 | "allowSyntheticDefaultImports": true, 5 | "esModuleInterop": true, 6 | "forceConsistentCasingInFileNames": true, 7 | "isolatedModules": true, 8 | "jsx": "react-jsx", 9 | "lib": [ 10 | "dom", 11 | "dom.iterable", 12 | "esnext" 13 | ], 14 | "module": "esnext", 15 | "moduleResolution": "node", 16 | "noEmit": true, 17 | "noFallthroughCasesInSwitch": true, 18 | "resolveJsonModule": true, 19 | "skipLibCheck": true, 20 | "strict": true, 21 | "target": "ESNext", 22 | "types": [ 23 | "vite/client" 24 | ] 25 | }, 26 | "include": [ 27 | "src" 28 | ] 29 | } -------------------------------------------------------------------------------- /mpc-core-kit-web/implicit-flow-examples/mpc-core-kit-redirect-flow-example/vite.config.ts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vite"; 2 | import react from "@vitejs/plugin-react"; 3 | 4 | // https://vitejs.dev/config/ 5 | export default defineConfig({ 6 | plugins: [react()], 7 | resolve: { 8 | alias: { 9 | crypto: "empty-module", 10 | assert: "empty-module", 11 | http: "empty-module", 12 | https: "empty-module", 13 | os: "empty-module", 14 | url: "empty-module", 15 | zlib: "empty-module", 16 | stream: "stream", 17 | _stream_duplex: "empty-module", 18 | _stream_passthrough: "empty-module", 19 | _stream_readable: "empty-module", 20 | _stream_writable: "empty-module", 21 | _stream_transform: "empty-module", 22 | }, 23 | }, 24 | define: { 25 | global: "globalThis", 26 | }, 27 | }); -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-aggregate-verifier-example/.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # Compiled output 4 | /dist 5 | /tmp 6 | /out-tsc 7 | /bazel-out 8 | 9 | # Node 10 | /node_modules 11 | npm-debug.log 12 | yarn-error.log 13 | 14 | # IDEs and editors 15 | .idea/ 16 | .project 17 | .classpath 18 | .c9/ 19 | *.launch 20 | .settings/ 21 | *.sublime-workspace 22 | 23 | # Visual Studio Code 24 | .vscode/* 25 | !.vscode/settings.json 26 | !.vscode/tasks.json 27 | !.vscode/launch.json 28 | !.vscode/extensions.json 29 | .history/* 30 | 31 | # Miscellaneous 32 | /.angular/cache 33 | .sass-cache/ 34 | /connect.lock 35 | /coverage 36 | /libpeerconnection.log 37 | testem.log 38 | /typings 39 | 40 | # System files 41 | .DS_Store 42 | Thumbs.db 43 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-aggregate-verifier-example/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-aggregate-verifier-example/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/mpc-core-kit-aggregate-verifier-example/public/favicon.ico -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-aggregate-verifier-example/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/mpc-core-kit-aggregate-verifier-example/public/logo192.png -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-aggregate-verifier-example/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/mpc-core-kit-aggregate-verifier-example/public/logo512.png -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-aggregate-verifier-example/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-aggregate-verifier-example/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-aggregate-verifier-example/src/App.test.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { render, screen } from '@testing-library/react'; 3 | import App from './App'; 4 | 5 | test('renders learn react link', () => { 6 | render(); 7 | const linkElement = screen.getByText(/learn react/i); 8 | expect(linkElement).toBeInTheDocument(); 9 | }); 10 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-aggregate-verifier-example/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-aggregate-verifier-example/src/index.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom/client'; 3 | import './index.css'; 4 | import App from './App'; 5 | import * as serviceWorkerRegistration from './serviceWorkerRegistration'; 6 | 7 | const root = ReactDOM.createRoot( 8 | document.getElementById('root') as HTMLElement 9 | ); 10 | root.render( 11 | 12 | 13 | 14 | ); 15 | 16 | // If you want your app to work offline and load faster, you can change 17 | // unregister() to register() below. Note this comes with some pitfalls. 18 | // Learn more about service workers: https://cra.link/PWA 19 | serviceWorkerRegistration.unregister(); 20 | 21 | // If you want to start measuring performance in your app, pass a function 22 | // to log results (for example: reportWebVitals(console.log)) 23 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals 24 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-aggregate-verifier-example/src/setupTests.ts: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import '@testing-library/jest-dom'; 6 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-aggregate-verifier-example/src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-aggregate-verifier-example/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "allowJs": false, 4 | "allowSyntheticDefaultImports": true, 5 | "esModuleInterop": true, 6 | "forceConsistentCasingInFileNames": true, 7 | "isolatedModules": true, 8 | "jsx": "react-jsx", 9 | "lib": [ 10 | "dom", 11 | "dom.iterable", 12 | "esnext" 13 | ], 14 | "module": "esnext", 15 | "moduleResolution": "node", 16 | "noEmit": true, 17 | "noFallthroughCasesInSwitch": true, 18 | "resolveJsonModule": true, 19 | "skipLibCheck": true, 20 | "strict": true, 21 | "target": "ESNext", 22 | "types": [ 23 | "vite/client" 24 | ] 25 | }, 26 | "include": [ 27 | "src" 28 | ] 29 | } -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-aggregate-verifier-example/vite.config.ts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vite"; 2 | import react from "@vitejs/plugin-react"; 3 | 4 | // https://vitejs.dev/config/ 5 | export default defineConfig({ 6 | plugins: [react()], 7 | resolve: { 8 | alias: { 9 | crypto: "empty-module", 10 | assert: "empty-module", 11 | http: "empty-module", 12 | https: "empty-module", 13 | os: "empty-module", 14 | url: "empty-module", 15 | zlib: "empty-module", 16 | stream: "stream", 17 | _stream_duplex: "empty-module", 18 | _stream_passthrough: "empty-module", 19 | _stream_readable: "empty-module", 20 | _stream_writable: "empty-module", 21 | _stream_transform: "empty-module", 22 | }, 23 | }, 24 | define: { 25 | global: "globalThis", 26 | }, 27 | }); -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-bitcoin/README.md: -------------------------------------------------------------------------------- 1 | # Web3Auth MPC CoreKit Web [`@web3auth/mpc-core-kit`](https://web3auth.io/docs/sdk/core-kit/mpc-core-kit) Bitcoin Example 2 | 3 | [![Web3Auth](https://img.shields.io/badge/Web3Auth-SDK-blue)](https://web3auth.io/docs/sdk/core-kit/mpc-core-kit) 4 | [![Web3Auth](https://img.shields.io/badge/Web3Auth-Community-cyan)](https://community.web3auth.io) 5 | 6 | [Join our Community Portal](https://community.web3auth.io/) to get support and stay up to date with the latest news and updates. 7 | 8 | This example demonstrates how to use Web3Auth's MPC CoreKit Web SDK for Bitcoin. 9 | 10 | ## How to Use 11 | 12 | ### Download Manually 13 | 14 | ```bash 15 | npx degit Web3Auth/web3auth-core-kit-examples/mpc-core-kit-web/mpc-core-kit-bitcoin w3a-mpc-core-kit-bitcoin 16 | ``` 17 | 18 | Install & Run: 19 | 20 | ```bash 21 | cd w3a-mpc-core-kit-bitcoin 22 | npm install 23 | npm run start 24 | # or 25 | cd w3a-mpc-core-kit-bitcoin 26 | yarn 27 | yarn start 28 | ``` 29 | 30 | ## Important Links 31 | 32 | - [Website](https://web3auth.io) 33 | - [Docs](https://web3auth.io/docs) 34 | - [Guides](https://web3auth.io/docs/guides) 35 | - [SDK / API References](https://web3auth.io/docs/sdk) 36 | - [Pricing](https://web3auth.io/pricing.html) 37 | - [Community Portal](https://community.web3auth.io) 38 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-bitcoin/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/mpc-core-kit-bitcoin/public/favicon.ico -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-bitcoin/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/mpc-core-kit-bitcoin/public/logo192.png -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-bitcoin/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/mpc-core-kit-bitcoin/public/logo512.png -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-bitcoin/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-bitcoin/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-bitcoin/src/BitcoinSigner.ts: -------------------------------------------------------------------------------- 1 | import { secp256k1 } from "@tkey/common-types"; 2 | import { sigToRSV, Web3AuthMPCCoreKit } from "@web3auth/mpc-core-kit"; 3 | import { networks, SignerAsync } from "bitcoinjs-lib"; 4 | 5 | export function createBitcoinJsSigner(props: { coreKitInstance: Web3AuthMPCCoreKit; network: networks.Network }): SignerAsync { 6 | return { 7 | sign: async (hash: Buffer, lowR?: boolean) => { 8 | let sig = await props.coreKitInstance.sign(hash, true); 9 | const { r, s } = sigToRSV(sig); 10 | const sigBuffer = Buffer.concat([r, s]); 11 | return sigBuffer; 12 | }, 13 | publicKey: props.coreKitInstance.getPubKeyPoint().toSEC1(secp256k1, true), 14 | network: props.network, 15 | }; 16 | } 17 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-bitcoin/src/Loading.tsx: -------------------------------------------------------------------------------- 1 | import loader from "./spinner.svg"; // Tell webpack this JS file uses this image 2 | 3 | const Loading = () => ( 4 |
5 | Loading 6 |
7 | ); 8 | 9 | // New BlurredLoading component 10 | const BlurredLoading = () => ( 11 |
25 |
33 | Loading 34 |
35 |
36 | ); 37 | 38 | export { Loading, BlurredLoading }; 39 | export default Loading; 40 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-bitcoin/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-bitcoin/src/index.tsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom/client"; 3 | import "./index.css"; 4 | import App from "./App"; 5 | 6 | const root = ReactDOM.createRoot( 7 | document.getElementById("root") as HTMLElement 8 | ); 9 | root.render( 10 | 11 | 12 | 13 | ); 14 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-bitcoin/src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-bitcoin/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "allowJs": false, 4 | "allowSyntheticDefaultImports": true, 5 | "esModuleInterop": true, 6 | "forceConsistentCasingInFileNames": true, 7 | "isolatedModules": true, 8 | "jsx": "react-jsx", 9 | "lib": ["dom", "dom.iterable", "esnext"], 10 | "module": "esnext", 11 | "moduleResolution": "node", 12 | "noEmit": true, 13 | "noFallthroughCasesInSwitch": true, 14 | "resolveJsonModule": true, 15 | "skipLibCheck": true, 16 | "strict": true, 17 | "target": "ESNext", 18 | "types": ["vite/client"] 19 | }, 20 | "include": ["src"] 21 | } -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-bitcoin/vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vite"; 2 | import react from "@vitejs/plugin-react"; 3 | 4 | export default defineConfig({ 5 | plugins: [react()], 6 | resolve: { 7 | alias: { 8 | crypto: "empty-module", 9 | }, 10 | }, 11 | define: { 12 | global: "globalThis", 13 | }, 14 | }); -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-farcaster/.env.example: -------------------------------------------------------------------------------- 1 | # openssl genrsa -out privateKey.pem 2048 2 | PRIVATE_KEY="" 3 | # https://web3auth.io/docs/auth-provider-setup/byo-jwt-provider#how-to-convert-pem-to-jwks -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-farcaster/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-farcaster/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | .yarn/install-state.gz 8 | 9 | # testing 10 | /coverage 11 | 12 | # next.js 13 | /.next/ 14 | /out/ 15 | 16 | # production 17 | /build 18 | 19 | # misc 20 | .DS_Store 21 | *.pem 22 | 23 | # debug 24 | npm-debug.log* 25 | yarn-debug.log* 26 | yarn-error.log* 27 | 28 | # local env files 29 | .env*.local 30 | 31 | # vercel 32 | .vercel 33 | 34 | # typescript 35 | *.tsbuildinfo 36 | next-env.d.ts 37 | 38 | .pem -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-farcaster/README.md: -------------------------------------------------------------------------------- 1 | # Sign In With Farcaster + NextAuth.js Demo + Web3Auth MPC CoreKit Web SDK 2 | 3 | This example app shows how to use Sign In With Farcaster in a Next.js app with a backend API, using [NextAuth.js](https://next-auth.js.org/) for authentication and [Web3Auth](https://web3auth.io) for Key Management. 4 | 5 | ## Getting Started 6 | 7 | ```bash 8 | npx degit Web3Auth/web3auth-core-kit-examples/mpc-core-kit-web/mpc-core-kit-farcaster w3a-mpc-core-kit-web-farcaster && cd w3a-mpc-core-kit-web-farcaster && yarn install && yarn dev 9 | ``` 10 | 11 | ## Important Links 12 | 13 | - [Website](https://web3auth.io) 14 | - [Docs](https://web3auth.io/docs) 15 | - [Guides](https://web3auth.io/docs/guides) 16 | - [SDK / API References](https://web3auth.io/docs/sdk) 17 | - [Pricing](https://web3auth.io/pricing.html) 18 | - [Community Portal](https://community.web3auth.io) 19 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-farcaster/next.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('next').NextConfig} */ 2 | const nextConfig = { 3 | reactStrictMode: true, 4 | } 5 | 6 | module.exports = nextConfig 7 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-farcaster/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mpc-core-kit-farcaster", 3 | "private": true, 4 | "scripts": { 5 | "build": "next build", 6 | "dev": "next dev", 7 | "lint": "next lint", 8 | "start": "next start" 9 | }, 10 | "version": "0.1.1", 11 | "dependencies": { 12 | "@farcaster/auth-client": "^0.1.1", 13 | "@farcaster/auth-kit": "0.2.2", 14 | "@toruslabs/tss-dkls-lib": "^4.1.0", 15 | "@web3auth/ethereum-mpc-provider": "^9.3.0", 16 | "@web3auth/mpc-core-kit": "3.2.4", 17 | "ethers": "^6.12.0", 18 | "jsonwebtoken": "^9.0.2", 19 | "next": "14.0.4", 20 | "next-auth": "^4.24.5", 21 | "react": "^18.2.0", 22 | "react-dom": "^18.2.0", 23 | "viem": "^2.0.3" 24 | }, 25 | "devDependencies": { 26 | "@types/jsonwebtoken": "^9.0.6", 27 | "@types/node": "^20", 28 | "@types/react": "^18", 29 | "@types/react-dom": "^18", 30 | "eslint-config-next": "14.2.1", 31 | "typescript": "^5" 32 | } 33 | } -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-farcaster/pages/_app.tsx: -------------------------------------------------------------------------------- 1 | import { SessionProvider } from "next-auth/react"; 2 | import type { AppProps } from "next/app"; 3 | 4 | export default function App({ Component, pageProps: { session, ...pageProps } }: AppProps) { 5 | return ( 6 | 7 | 8 | 9 | ); 10 | } 11 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-farcaster/pages/_document.tsx: -------------------------------------------------------------------------------- 1 | import { Html, Head, Main, NextScript } from 'next/document' 2 | 3 | export default function Document() { 4 | return ( 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | ) 13 | } 14 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-farcaster/pages/api/login.ts: -------------------------------------------------------------------------------- 1 | import jwt from "jsonwebtoken"; 2 | import type { NextApiRequest, NextApiResponse } from "next"; 3 | 4 | export default function handler(req: NextApiRequest, res: NextApiResponse<{ token: string }>) { 5 | const { userData } = req.body; 6 | const privateKey = process.env.PRIVATE_KEY!; 7 | 8 | const jwtToken = jwt.sign( 9 | { 10 | sub: userData?.fid.toString(), 11 | name: userData?.displayName, 12 | username: userData?.username, 13 | profileImage: userData?.pfpUrl, 14 | custody: userData?.custody, 15 | aud: "w3a:farcaster-server", 16 | iss: "https://web3auth.io", 17 | iat: Math.floor(Date.now() / 1000), 18 | exp: Math.floor(Date.now() / 1000) + 60 * 60, 19 | }, 20 | privateKey, 21 | { algorithm: "RS256", keyid: "49563d7e86f6626426be" } 22 | ); 23 | res.status(200).json({ token: jwtToken }); 24 | } 25 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-farcaster/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "lib": ["dom", "dom.iterable", "esnext"], 5 | "allowJs": true, 6 | "skipLibCheck": true, 7 | "strict": true, 8 | "noEmit": true, 9 | "esModuleInterop": true, 10 | "module": "esnext", 11 | "moduleResolution": "bundler", 12 | "resolveJsonModule": true, 13 | "isolatedModules": true, 14 | "jsx": "preserve", 15 | "incremental": true, 16 | "paths": { 17 | "@/*": ["./*"] 18 | } 19 | }, 20 | "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], 21 | "exclude": ["node_modules"] 22 | } 23 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-near/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-near/README.md: -------------------------------------------------------------------------------- 1 | # Web3Auth MPC CoreKit Web [`@web3auth/mpc-core-kit`](https://web3auth.io/docs/sdk/core-kit/mpc-core-kit) Near Example 2 | 3 | [![Web3Auth](https://img.shields.io/badge/Web3Auth-SDK-blue)](https://web3auth.io/docs/sdk/core-kit/mpc-core-kit) 4 | [![Web3Auth](https://img.shields.io/badge/Web3Auth-Community-cyan)](https://community.web3auth.io) 5 | 6 | [Join our Community Portal](https://community.web3auth.io/) to get support and stay up to date with the latest news and updates. 7 | 8 | This example demonstrates how to use Web3Auth's MPC CoreKit Web SDK wth Near. 9 | 10 | ## How to Use 11 | 12 | ### Download Manually 13 | 14 | ```bash 15 | npx degit Web3Auth/web3auth-core-kit-examples/mpc-core-kit-web/mpc-core-kit-near w3a-mpc-core-kit-near 16 | ``` 17 | 18 | Install & Run: 19 | 20 | ```bash 21 | cd w3a-mpc-core-kit-near 22 | npm install 23 | npm run start 24 | # or 25 | cd w3a-mpc-core-kit-near 26 | yarn 27 | yarn start 28 | ``` 29 | 30 | ## Important Links 31 | 32 | - [Website](https://web3auth.io) 33 | - [Docs](https://web3auth.io/docs) 34 | - [Guides](https://web3auth.io/docs/guides) 35 | - [SDK / API References](https://web3auth.io/docs/sdk) 36 | - [Pricing](https://web3auth.io/pricing.html) 37 | - [Community Portal](https://community.web3auth.io) 38 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-near/eslint.config.js: -------------------------------------------------------------------------------- 1 | import js from '@eslint/js' 2 | import globals from 'globals' 3 | import reactHooks from 'eslint-plugin-react-hooks' 4 | import reactRefresh from 'eslint-plugin-react-refresh' 5 | import tseslint from 'typescript-eslint' 6 | 7 | export default tseslint.config( 8 | { ignores: ['dist'] }, 9 | { 10 | extends: [js.configs.recommended, ...tseslint.configs.recommended], 11 | files: ['**/*.{ts,tsx}'], 12 | languageOptions: { 13 | ecmaVersion: 2020, 14 | globals: globals.browser, 15 | }, 16 | plugins: { 17 | 'react-hooks': reactHooks, 18 | 'react-refresh': reactRefresh, 19 | }, 20 | rules: { 21 | ...reactHooks.configs.recommended.rules, 22 | 'react-refresh/only-export-components': [ 23 | 'warn', 24 | { allowConstantExport: true }, 25 | ], 26 | }, 27 | }, 28 | ) 29 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-near/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 11 | 12 | 13 | 14 | Vite + React + TS 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-near/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mpc-core-kit-near", 3 | "private": true, 4 | "version": "0.0.0", 5 | "type": "module", 6 | "scripts": { 7 | "dev": "vite", 8 | "build": "tsc -b && vite build", 9 | "lint": "eslint .", 10 | "preview": "vite preview" 11 | }, 12 | "dependencies": { 13 | "@toruslabs/tss-frost-lib": "^1.0.0", 14 | "@types/node": "^18.11.18", 15 | "@types/react": "^18.0.26", 16 | "@types/react-dom": "^18.0.10", 17 | "@web3auth/mpc-core-kit": "^3.2.4", 18 | "bn.js": "^5.2.1", 19 | "firebase": "^10.4.0", 20 | "near-api-js": "^4.0.3", 21 | "react": "^18.3.1", 22 | "react-dom": "^18.3.1", 23 | "typescript": "^4.9.4", 24 | "vm-browserify": "^1.1.2", 25 | "web-vitals": "^3.1.0" 26 | }, 27 | "devDependencies": { 28 | "@eslint/js": "^9.9.0", 29 | "@types/react": "^18.3.3", 30 | "@types/react-dom": "^18.3.0", 31 | "@vitejs/plugin-react": "^4.3.1", 32 | "buffer": "^6.0.3", 33 | "empty-module": "^0.0.2", 34 | "eslint": "^9.9.0", 35 | "eslint-plugin-react-hooks": "^5.1.0-rc.0", 36 | "eslint-plugin-react-refresh": "^0.4.9", 37 | "globals": "^15.9.0", 38 | "process": "^0.11.10", 39 | "typescript": "^5.5.3", 40 | "typescript-eslint": "^8.0.1", 41 | "vite": "^5.4.1" 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-near/src/main.tsx: -------------------------------------------------------------------------------- 1 | import { StrictMode } from 'react' 2 | import { createRoot } from 'react-dom/client' 3 | import App from './App.tsx' 4 | import './index.css' 5 | 6 | createRoot(document.getElementById('root')!).render( 7 | 8 | 9 | , 10 | ) 11 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-near/src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-near/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES2020", 4 | "useDefineForClassFields": true, 5 | "lib": ["ES2020", "DOM", "DOM.Iterable"], 6 | "module": "ESNext", 7 | "skipLibCheck": true, 8 | 9 | /* Bundler mode */ 10 | "moduleResolution": "bundler", 11 | "allowImportingTsExtensions": true, 12 | "isolatedModules": true, 13 | "moduleDetection": "force", 14 | "noEmit": true, 15 | "jsx": "react-jsx", 16 | 17 | /* Linting */ 18 | "strict": true, 19 | "noUnusedLocals": true, 20 | "noUnusedParameters": true, 21 | "noFallthroughCasesInSwitch": true 22 | }, 23 | "include": ["src"] 24 | } 25 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-near/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "files": [], 3 | "references": [ 4 | { "path": "./tsconfig.app.json" }, 5 | { "path": "./tsconfig.node.json" } 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-near/tsconfig.node.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES2022", 4 | "lib": ["ES2023"], 5 | "module": "ESNext", 6 | "skipLibCheck": true, 7 | 8 | /* Bundler mode */ 9 | "moduleResolution": "bundler", 10 | "allowImportingTsExtensions": true, 11 | "isolatedModules": true, 12 | "moduleDetection": "force", 13 | "noEmit": true, 14 | 15 | /* Linting */ 16 | "strict": true, 17 | "noUnusedLocals": true, 18 | "noUnusedParameters": true, 19 | "noFallthroughCasesInSwitch": true 20 | }, 21 | "include": ["vite.config.ts"] 22 | } 23 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-near/vite.config.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable import/no-extraneous-dependencies */ 2 | import react from "@vitejs/plugin-react"; 3 | import { defineConfig } from "vite"; 4 | 5 | // https://vitejs.dev/config/ 6 | export default defineConfig({ 7 | plugins: [react()], 8 | resolve: { 9 | alias: { 10 | crypto: "empty-module", 11 | assert: "empty-module", 12 | http: "empty-module", 13 | https: "empty-module", 14 | os: "empty-module", 15 | url: "empty-module", 16 | zlib: "empty-module", 17 | stream: "empty-module", 18 | _stream_duplex: "empty-module", 19 | _stream_passthrough: "empty-module", 20 | _stream_readable: "empty-module", 21 | _stream_writable: "empty-module", 22 | _stream_transform: "empty-module", 23 | }, 24 | }, 25 | define: { 26 | global: "globalThis", 27 | }, 28 | }); -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-solana/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-solana/README.md: -------------------------------------------------------------------------------- 1 | # Web3Auth MPC CoreKit Web [`@web3auth/mpc-core-kit`](https://web3auth.io/docs/sdk/core-kit/mpc-core-kit) Solana Example 2 | 3 | [![Web3Auth](https://img.shields.io/badge/Web3Auth-SDK-blue)](https://web3auth.io/docs/sdk/core-kit/mpc-core-kit) 4 | [![Web3Auth](https://img.shields.io/badge/Web3Auth-Community-cyan)](https://community.web3auth.io) 5 | 6 | [Join our Community Portal](https://community.web3auth.io/) to get support and stay up to date with the latest news and updates. 7 | 8 | This example demonstrates how to use Web3Auth's MPC CoreKit Web SDK wth Solana. 9 | 10 | ## How to Use 11 | 12 | ### Download Manually 13 | 14 | ```bash 15 | npx degit Web3Auth/web3auth-core-kit-examples/mpc-core-kit-web/mpc-core-kit-solana w3a-mpc-core-kit-solana 16 | ``` 17 | 18 | Install & Run: 19 | 20 | ```bash 21 | cd w3a-mpc-core-kit-solana 22 | npm install 23 | npm run start 24 | # or 25 | cd w3a-mpc-core-kit-solana 26 | yarn 27 | yarn start 28 | ``` 29 | 30 | ## Important Links 31 | 32 | - [Website](https://web3auth.io) 33 | - [Docs](https://web3auth.io/docs) 34 | - [Guides](https://web3auth.io/docs/guides) 35 | - [SDK / API References](https://web3auth.io/docs/sdk) 36 | - [Pricing](https://web3auth.io/pricing.html) 37 | - [Community Portal](https://community.web3auth.io) 38 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-solana/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-solana/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/mpc-core-kit-solana/public/favicon.ico -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-solana/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/mpc-core-kit-solana/public/logo192.png -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-solana/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/mpc-core-kit-solana/public/logo512.png -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-solana/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-solana/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-solana/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-solana/src/index.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom/client'; 3 | import './index.css'; 4 | import App from './App'; 5 | 6 | const root = ReactDOM.createRoot( 7 | document.getElementById('root') as HTMLElement 8 | ); 9 | root.render( 10 | 11 | 12 | 13 | ); 14 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-solana/src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-solana/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "allowJs": false, 4 | "allowSyntheticDefaultImports": true, 5 | "esModuleInterop": true, 6 | "forceConsistentCasingInFileNames": true, 7 | "isolatedModules": true, 8 | "jsx": "react-jsx", 9 | "lib": [ 10 | "dom", 11 | "dom.iterable", 12 | "esnext" 13 | ], 14 | "module": "esnext", 15 | "moduleResolution": "node", 16 | "noEmit": true, 17 | "noFallthroughCasesInSwitch": true, 18 | "resolveJsonModule": true, 19 | "skipLibCheck": true, 20 | "strict": true, 21 | "target": "ESNext", 22 | "types": [ 23 | "vite/client" 24 | ] 25 | }, 26 | "include": [ 27 | "src" 28 | ] 29 | } -------------------------------------------------------------------------------- /mpc-core-kit-web/mpc-core-kit-solana/vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vite"; 2 | import react from "@vitejs/plugin-react"; 3 | 4 | export default defineConfig({ 5 | plugins: [react()], 6 | resolve: { 7 | alias: { 8 | crypto: "empty-module", 9 | }, 10 | }, 11 | define: { 12 | global: "globalThis", 13 | }, 14 | }); -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-angular-quick-start/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see https://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.ts] 12 | quote_type = single 13 | 14 | [*.md] 15 | max_line_length = off 16 | trim_trailing_whitespace = false 17 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-angular-quick-start/.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # Compiled output 4 | /dist 5 | /tmp 6 | /out-tsc 7 | /bazel-out 8 | 9 | # Node 10 | /node_modules 11 | npm-debug.log 12 | yarn-error.log 13 | 14 | # IDEs and editors 15 | .idea/ 16 | .project 17 | .classpath 18 | .c9/ 19 | *.launch 20 | .settings/ 21 | *.sublime-workspace 22 | 23 | # Visual Studio Code 24 | .vscode/* 25 | !.vscode/settings.json 26 | !.vscode/tasks.json 27 | !.vscode/launch.json 28 | !.vscode/extensions.json 29 | .history/* 30 | 31 | # Miscellaneous 32 | /.angular/cache 33 | .sass-cache/ 34 | /connect.lock 35 | /coverage 36 | /libpeerconnection.log 37 | testem.log 38 | /typings 39 | 40 | # System files 41 | .DS_Store 42 | Thumbs.db 43 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-angular-quick-start/.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846 3 | "recommendations": ["angular.ng-template"] 4 | } 5 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-angular-quick-start/.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 3 | "version": "0.2.0", 4 | "configurations": [ 5 | { 6 | "name": "ng serve", 7 | "type": "pwa-chrome", 8 | "request": "launch", 9 | "preLaunchTask": "npm: start", 10 | "url": "http://localhost:4200/" 11 | }, 12 | { 13 | "name": "ng test", 14 | "type": "chrome", 15 | "request": "launch", 16 | "preLaunchTask": "npm: test", 17 | "url": "http://localhost:9876/debug.html" 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-angular-quick-start/.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | // For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558 3 | "version": "2.0.0", 4 | "tasks": [ 5 | { 6 | "type": "npm", 7 | "script": "start", 8 | "isBackground": true, 9 | "problemMatcher": { 10 | "owner": "typescript", 11 | "pattern": "$tsc", 12 | "background": { 13 | "activeOnStart": true, 14 | "beginsPattern": { 15 | "regexp": "(.*?)" 16 | }, 17 | "endsPattern": { 18 | "regexp": "bundle generation complete" 19 | } 20 | } 21 | } 22 | }, 23 | { 24 | "type": "npm", 25 | "script": "test", 26 | "isBackground": true, 27 | "problemMatcher": { 28 | "owner": "typescript", 29 | "pattern": "$tsc", 30 | "background": { 31 | "activeOnStart": true, 32 | "beginsPattern": { 33 | "regexp": "(.*?)" 34 | }, 35 | "endsPattern": { 36 | "regexp": "bundle generation complete" 37 | } 38 | } 39 | } 40 | } 41 | ] 42 | } 43 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-angular-quick-start/src/app/app.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { TestBed } from '@angular/core/testing'; 2 | import { AppComponent } from './app.component'; 3 | 4 | describe('AppComponent', () => { 5 | beforeEach(async () => { 6 | await TestBed.configureTestingModule({ 7 | declarations: [ 8 | AppComponent 9 | ], 10 | }).compileComponents(); 11 | }); 12 | 13 | it('should create the app', () => { 14 | const fixture = TestBed.createComponent(AppComponent); 15 | const app = fixture.componentInstance; 16 | expect(app).toBeTruthy(); 17 | }); 18 | 19 | it(`should have as title 'angular-web3auth-modal'`, () => { 20 | const fixture = TestBed.createComponent(AppComponent); 21 | const app = fixture.componentInstance; 22 | expect(app.title).toEqual('angular-web3auth-modal'); 23 | }); 24 | 25 | it('should render title', () => { 26 | const fixture = TestBed.createComponent(AppComponent); 27 | fixture.detectChanges(); 28 | const compiled = fixture.nativeElement as HTMLElement; 29 | expect(compiled.querySelector('.content span')?.textContent).toContain('angular-web3auth-modal app is running!'); 30 | }); 31 | }); 32 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-angular-quick-start/src/app/app.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from "@angular/core"; 2 | import { BrowserModule } from "@angular/platform-browser"; 3 | 4 | import { AppComponent } from "./app.component"; 5 | import { FormsModule } from "@angular/forms"; 6 | 7 | @NgModule({ 8 | declarations: [AppComponent], 9 | imports: [BrowserModule, FormsModule], 10 | providers: [], 11 | bootstrap: [AppComponent], 12 | }) 13 | export class AppModule { } 14 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-angular-quick-start/src/assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/quick-starts/mpc-core-kit-angular-quick-start/src/assets/.gitkeep -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-angular-quick-start/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-angular-quick-start/src/environments/environment.ts: -------------------------------------------------------------------------------- 1 | // This file can be replaced during build by using the `fileReplacements` array. 2 | // `ng build` replaces `environment.ts` with `environment.prod.ts`. 3 | // The list of file replacements can be found in `angular.json`. 4 | 5 | export const environment = { 6 | production: false, 7 | }; 8 | 9 | /* 10 | * For easier debugging in development mode, you can import the following file 11 | * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. 12 | * 13 | * This import should be commented out in production mode because it will have a negative impact 14 | * on performance if an error is thrown. 15 | */ 16 | // import 'zone.js/plugins/zone-error'; // Included with Angular CLI. 17 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-angular-quick-start/src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/quick-starts/mpc-core-kit-angular-quick-start/src/favicon.ico -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-angular-quick-start/src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | AngularWeb3authModal 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-angular-quick-start/src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from "@angular/core"; 2 | import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; 3 | 4 | import { AppModule } from "./app/app.module"; 5 | import { environment } from "./environments/environment"; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic() 12 | .bootstrapModule(AppModule) 13 | // eslint-disable-next-line no-console 14 | .catch((err) => console.error(err)); 15 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-angular-quick-start/src/polyfills.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable @typescript-eslint/no-var-requires */ 2 | import "zone.js"; // Included with Angular CLI. 3 | 4 | // IMP START - Bundler Issues 5 | (window as any).global = window; 6 | global.Buffer = global.Buffer || require("buffer").Buffer; 7 | global.process = global.process || require("process"); 8 | // IMP END - Bundler Issues 9 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-angular-quick-start/src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | .setting { 3 | width: 100%; 4 | } 5 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-angular-quick-start/src/test.ts: -------------------------------------------------------------------------------- 1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files 2 | 3 | import "zone.js/testing"; 4 | 5 | import { getTestBed } from "@angular/core/testing"; 6 | import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from "@angular/platform-browser-dynamic/testing"; 7 | 8 | // First, initialize the Angular testing environment. 9 | getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); 10 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-angular-quick-start/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | /* To learn more about this file see: https://angular.io/config/tsconfig. */ 2 | { 3 | "extends": "./tsconfig.json", 4 | "compilerOptions": { 5 | "outDir": "./out-tsc/app", 6 | "types": [] 7 | }, 8 | "files": [ 9 | "src/main.ts", 10 | "src/polyfills.ts" 11 | ], 12 | "include": [ 13 | "src/**/*.d.ts" 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-angular-quick-start/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | /* To learn more about this file see: https://angular.io/config/tsconfig. */ 2 | { 3 | "extends": "./tsconfig.json", 4 | "compilerOptions": { 5 | "outDir": "./out-tsc/spec", 6 | "types": [ 7 | "jasmine" 8 | ] 9 | }, 10 | "files": [ 11 | "src/test.ts", 12 | "src/polyfills.ts" 13 | ], 14 | "include": [ 15 | "src/**/*.spec.ts", 16 | "src/**/*.d.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-nextjs-quick-start/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-nextjs-quick-start/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # next.js 12 | /.next/ 13 | /out/ 14 | 15 | # production 16 | /build 17 | 18 | # misc 19 | .DS_Store 20 | *.pem 21 | 22 | # debug 23 | npm-debug.log* 24 | yarn-debug.log* 25 | yarn-error.log* 26 | .pnpm-debug.log* 27 | 28 | # local env files 29 | .env*.local 30 | 31 | # vercel 32 | .vercel 33 | 34 | # typescript 35 | *.tsbuildinfo 36 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-nextjs-quick-start/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/quick-starts/mpc-core-kit-nextjs-quick-start/app/favicon.ico -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-nextjs-quick-start/app/layout.tsx: -------------------------------------------------------------------------------- 1 | import "./globals.css"; 2 | 3 | import { Inter } from "next/font/google"; 4 | 5 | const inter = Inter({ subsets: ["latin"] }); 6 | 7 | export const metadata = { 8 | title: "Web3Auth NextJS Quick Start", 9 | description: "Web3Auth NextJS Quick Start", 10 | }; 11 | 12 | // eslint-disable-next-line no-undef 13 | export default function RootLayout({ children }: { children: React.ReactNode }) { 14 | return ( 15 | 16 | {children} 17 | 18 | ); 19 | } 20 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-nextjs-quick-start/next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | // NOTE: This file should not be edited 5 | // see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information. 6 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-nextjs-quick-start/next.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('next').NextConfig} */ 2 | const nextConfig = { 3 | reactStrictMode: true, 4 | // swcMinify: true, 5 | } 6 | 7 | module.exports = nextConfig 8 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-nextjs-quick-start/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mpc-core-kit-nextjs-quick-start", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "dev": "next dev", 7 | "build": "next build", 8 | "start": "next start", 9 | "lint": "next lint" 10 | }, 11 | "//IMP START": "IMP START - Web3Auth Installation", 12 | "dependencies": { 13 | "@tkey/common-types": "^15.1.0", 14 | "@toruslabs/tss-dkls-lib": "^4.1.0", 15 | "@web3auth/base": "^9.3.0", 16 | "@web3auth/ethereum-mpc-provider": "^9.3.0", 17 | "@web3auth/mpc-core-kit": "3.2.4", 18 | "bn.js": "^5.2.1", 19 | "ethers": "^6.13.2", 20 | "firebase": "^10.13.2", 21 | "next": "14.2.13", 22 | "react": "18.3.1", 23 | "react-dom": "18.3.1", 24 | "viem": "^2.21.15", 25 | "web3": "^4.13.0" 26 | }, 27 | "//IMP END": "IMP END - Web3Auth Installation", 28 | "devDependencies": { 29 | "@toruslabs/eslint-config-typescript": "^3.3.4", 30 | "@types/elliptic": "^6.4.18", 31 | "@types/node": "20.4.1", 32 | "@types/react": "18.3.10", 33 | "@types/react-dom": "18.3.0", 34 | "eslint": "8.44.0", 35 | "eslint-config-next": "13.4.9", 36 | "typescript": "5.6.2" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-nextjs-quick-start/public/next.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-nextjs-quick-start/public/vercel.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-nextjs-quick-start/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "lib": ["dom", "dom.iterable", "esnext"], 5 | "allowJs": true, 6 | "skipLibCheck": true, 7 | "strict": true, 8 | "forceConsistentCasingInFileNames": true, 9 | "noEmit": true, 10 | "esModuleInterop": true, 11 | "module": "esnext", 12 | "moduleResolution": "node", 13 | "resolveJsonModule": true, 14 | "isolatedModules": true, 15 | "jsx": "preserve", 16 | "incremental": true, 17 | "plugins": [ 18 | { 19 | "name": "next" 20 | } 21 | ], 22 | "paths": { 23 | "@/*": ["./*"] 24 | } 25 | }, 26 | "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], 27 | "exclude": ["node_modules"] 28 | } 29 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-react-quick-start/README.md: -------------------------------------------------------------------------------- 1 | # Web3Auth MPC CoreKit Web [`@web3auth/mpc-core-kit`](https://web3auth.io/docs/sdk/core-kit/mpc-core-kit) QuickStart - React 2 | 3 | [![Web3Auth](https://img.shields.io/badge/Web3Auth-SDK-blue)](https://web3auth.io/docs/sdk/core-kit/mpc-core-kit) 4 | [![Web3Auth](https://img.shields.io/badge/Web3Auth-Community-cyan)](https://community.web3auth.io) 5 | 6 | [Join our Community Portal](https://community.web3auth.io/) to get support and stay up to date with the latest news and updates. 7 | 8 | This example demonstrates how to use Web3Auth's MPC CoreKit Web SDK in a React environment. 9 | 10 | ## How to Use 11 | 12 | ### Download Manually 13 | 14 | ```bash 15 | npx degit Web3Auth/web3auth-core-kit-examples/mpc-core-kit-web/quick-starts/mpc-core-kit-react-quick-start w3a-mpc-core-kit-react-quick-start 16 | ``` 17 | 18 | Install & Run: 19 | 20 | ```bash 21 | cd w3a-mpc-core-kit-react-quick-start 22 | npm install 23 | npm run start 24 | # or 25 | cd w3a-mpc-core-kit-react-quick-start 26 | yarn 27 | yarn start 28 | ``` 29 | 30 | ## Important Links 31 | 32 | - [Website](https://web3auth.io) 33 | - [Docs](https://web3auth.io/docs) 34 | - [Guides](https://web3auth.io/docs/guides) 35 | - [SDK / API References](https://web3auth.io/docs/sdk) 36 | - [Pricing](https://web3auth.io/pricing.html) 37 | - [Community Portal](https://community.web3auth.io) 38 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-react-quick-start/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/quick-starts/mpc-core-kit-react-quick-start/public/favicon.ico -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-react-quick-start/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/quick-starts/mpc-core-kit-react-quick-start/public/logo192.png -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-react-quick-start/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/quick-starts/mpc-core-kit-react-quick-start/public/logo512.png -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-react-quick-start/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-react-quick-start/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-react-quick-start/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-react-quick-start/src/index.tsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom/client"; 3 | import "./index.css"; 4 | import App from "./App"; 5 | 6 | const root = ReactDOM.createRoot( 7 | document.getElementById("root") as HTMLElement 8 | ); 9 | root.render( 10 | 11 | 12 | 13 | ); 14 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-react-quick-start/src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-react-quick-start/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "allowJs": false, 4 | "allowSyntheticDefaultImports": true, 5 | "esModuleInterop": true, 6 | "forceConsistentCasingInFileNames": true, 7 | "isolatedModules": true, 8 | "jsx": "react-jsx", 9 | "lib": ["dom", "dom.iterable", "esnext"], 10 | "module": "esnext", 11 | "moduleResolution": "node", 12 | "noEmit": true, 13 | "noFallthroughCasesInSwitch": true, 14 | "resolveJsonModule": true, 15 | "skipLibCheck": true, 16 | "strict": true, 17 | "target": "ESNext", 18 | "types": ["vite/client"] 19 | }, 20 | "include": ["src"] 21 | } -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-react-quick-start/vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vite"; 2 | import react from "@vitejs/plugin-react"; 3 | 4 | export default defineConfig({ 5 | plugins: [react()], 6 | resolve: { 7 | alias: { 8 | crypto: "empty-module", 9 | }, 10 | }, 11 | define: { 12 | global: "globalThis", 13 | }, 14 | }); -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-vue-quick-start/.browserslistrc: -------------------------------------------------------------------------------- 1 | > 1% 2 | last 2 versions 3 | not dead 4 | not ie 11 5 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-vue-quick-start/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { 4 | node: true, 5 | }, 6 | extends: [ 7 | "plugin:vue/vue3-essential", 8 | "eslint:recommended", 9 | "@vue/typescript/recommended", 10 | "plugin:prettier/recommended", 11 | ], 12 | parserOptions: { 13 | ecmaVersion: 2020, 14 | }, 15 | rules: { 16 | "no-console": process.env.NODE_ENV === "production" ? "warn" : "off", 17 | "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off", 18 | }, 19 | }; 20 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-vue-quick-start/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | 6 | # local env files 7 | .env.local 8 | .env.*.local 9 | 10 | # Log files 11 | npm-debug.log* 12 | yarn-debug.log* 13 | yarn-error.log* 14 | pnpm-debug.log* 15 | 16 | # Editor directories and files 17 | .idea 18 | .vscode 19 | *.suo 20 | *.ntvs* 21 | *.njsproj 22 | *.sln 23 | *.sw? 24 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-vue-quick-start/README.md: -------------------------------------------------------------------------------- 1 | # Web3Auth MPC CoreKit Web [`@web3auth/mpc-core-kit`](https://web3auth.io/docs/sdk/core-kit/mpc-core-kit) QuickStart - Vue.js 2 | 3 | [![Web3Auth](https://img.shields.io/badge/Web3Auth-SDK-blue)](https://web3auth.io/docs/sdk/core-kit/mpc-core-kit) 4 | [![Web3Auth](https://img.shields.io/badge/Web3Auth-Community-cyan)](https://community.web3auth.io) 5 | 6 | [Join our Community Portal](https://community.web3auth.io/) to get support and stay up to date with the latest news and updates. 7 | 8 | This example demonstrates how to use Web3Auth's MPC CoreKit Web SDK in a Vue.js application. 9 | 10 | ## How to Use 11 | 12 | ### Download Manually 13 | 14 | ```bash 15 | npx degit Web3Auth/web3auth-core-kit-examples/mpc-core-kit-web/quick-starts/mpc-core-kit-vue-quick-start w3a-mpc-core-kit-vue-quick-start 16 | ``` 17 | 18 | Install & Run: 19 | 20 | ```bash 21 | cd w3a-mpc-core-kit-vue-quick-start 22 | npm install 23 | npm run start 24 | # or 25 | cd w3a-mpc-core-kit-vue-quick-start 26 | yarn 27 | yarn start 28 | ``` 29 | 30 | ## Important Links 31 | 32 | - [Website](https://web3auth.io) 33 | - [Docs](https://web3auth.io/docs) 34 | - [Guides](https://web3auth.io/docs/guides) 35 | - [SDK / API References](https://web3auth.io/docs/sdk) 36 | - [Pricing](https://web3auth.io/pricing.html) 37 | - [Community Portal](https://community.web3auth.io) 38 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-vue-quick-start/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@vue/cli-plugin-babel/preset"], 3 | plugins: ["@babel/plugin-transform-private-methods", "@babel/plugin-transform-class-properties"], 4 | }; 5 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-vue-quick-start/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/quick-starts/mpc-core-kit-vue-quick-start/public/favicon.ico -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-vue-quick-start/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | <%= htmlWebpackPlugin.options.title %> 9 | 10 | 11 | 14 |
15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-vue-quick-start/src/App.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 19 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-vue-quick-start/src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Web3Auth/mpc-core-kit-examples/15fd1c03f6eb0fb4911e2885d26e2ab449e1d571/mpc-core-kit-web/quick-starts/mpc-core-kit-vue-quick-start/src/assets/logo.png -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-vue-quick-start/src/main.ts: -------------------------------------------------------------------------------- 1 | import { createApp } from "vue"; 2 | import App from "./App.vue"; 3 | 4 | createApp(App).mount("#app"); 5 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-vue-quick-start/src/shims-vue.d.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | declare module '*.vue' { 3 | import type { DefineComponent } from 'vue' 4 | const component: DefineComponent<{}, {}, any> 5 | export default component 6 | } 7 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-vue-quick-start/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "esnext", 4 | "module": "esnext", 5 | "strict": true, 6 | "jsx": "preserve", 7 | "moduleResolution": "node", 8 | "skipLibCheck": true, 9 | "esModuleInterop": true, 10 | "allowSyntheticDefaultImports": true, 11 | "forceConsistentCasingInFileNames": true, 12 | "useDefineForClassFields": true, 13 | "sourceMap": true, 14 | "baseUrl": ".", 15 | "types": [ 16 | "webpack-env" 17 | ], 18 | "paths": { 19 | "@/*": [ 20 | "src/*" 21 | ] 22 | }, 23 | "lib": [ 24 | "esnext", 25 | "dom", 26 | "dom.iterable", 27 | "scripthost" 28 | ] 29 | }, 30 | "include": [ 31 | "src/**/*.ts", 32 | "src/**/*.tsx", 33 | "src/**/*.vue", 34 | "tests/**/*.ts", 35 | "tests/**/*.tsx" 36 | ], 37 | "exclude": [ 38 | "node_modules" 39 | ] 40 | } 41 | -------------------------------------------------------------------------------- /mpc-core-kit-web/quick-starts/mpc-core-kit-vue-quick-start/vue.config.js: -------------------------------------------------------------------------------- 1 | const { defineConfig } = require("@vue/cli-service"); 2 | const { ProvidePlugin } = require("webpack"); 3 | const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer"); 4 | 5 | module.exports = defineConfig({ 6 | transpileDependencies: true, 7 | lintOnSave: false, 8 | // IMP START - Bundler Issues 9 | configureWebpack: (config) => { 10 | config.devtool = "source-map"; 11 | config.resolve.symlinks = false; 12 | config.resolve.fallback = { 13 | crypto: "crypto-browserify", 14 | stream: "stream-browserify", 15 | assert: "assert", 16 | os: "os-browserify", 17 | https: "https-browserify", 18 | http: "stream-http", 19 | url: "url", 20 | zlib: "browserify-zlib", 21 | }; 22 | config.plugins.push(new ProvidePlugin({ Buffer: ["buffer", "Buffer"] })); 23 | config.plugins.push(new ProvidePlugin({ process: ["process/browser"] })); 24 | // IMP END - Bundler Issues 25 | config.plugins.push( 26 | new BundleAnalyzerPlugin({ 27 | analyzerMode: "disabled", 28 | }) 29 | ); 30 | }, 31 | }); 32 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "root", 3 | "private": true, 4 | "scripts": { 5 | "update-web3auth": "lerna exec --concurrency 1 -- 'ncu -u @web3auth/* @toruslabs/* @tkey/* && npm install'", 6 | "install-all": "lerna exec --concurrency 1 -- 'npm install'", 7 | "lint-all": "lerna exec --concurrency 1 -- 'npm run lint'" 8 | }, 9 | "devDependencies": { 10 | "eslint": "^8.34.0", 11 | "eslint-config-prettier": "^8.6.0", 12 | "eslint-plugin-eslint-comments": "^3.2.0", 13 | "eslint-plugin-import": "^2.27.5", 14 | "eslint-plugin-mocha": "^10.1.0", 15 | "eslint-plugin-n": "^15.6.1", 16 | "eslint-plugin-prettier": "^4.2.1", 17 | "eslint-plugin-promise": "^6.1.1", 18 | "eslint-plugin-simple-import-sort": "^10.0.0", 19 | "eslint-plugin-tsdoc": "^0.2.17", 20 | "lerna": "^6.4.1", 21 | "npm-check-updates": "^16.7.4", 22 | "prettier": "^2.8.8" 23 | }, 24 | "dependencies": { 25 | "@react-native-community/eslint-config": "^3.2.0", 26 | "@toruslabs/eslint-config-typescript": "^1.4.0" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "lib": [ 5 | "dom", 6 | "dom.iterable", 7 | "esnext" 8 | ], 9 | "allowJs": true, 10 | "skipLibCheck": true, 11 | "esModuleInterop": true, 12 | "allowSyntheticDefaultImports": true, 13 | "strict": true, 14 | "forceConsistentCasingInFileNames": true, 15 | "noFallthroughCasesInSwitch": true, 16 | "module": "esnext", 17 | "moduleResolution": "node", 18 | "resolveJsonModule": true, 19 | "isolatedModules": true, 20 | "noEmit": true, 21 | "jsx": "react-jsx" 22 | }, 23 | "include": [ 24 | "**/src/*.ts", 25 | "**/src/*.js", 26 | "**/*.ts", 27 | "**/*.js", 28 | "**/src/*.tsx", 29 | "**/*.tsx", 30 | ], 31 | } 32 | --------------------------------------------------------------------------------