Installation
We provide SDKs for developing projects in: NodeJS, Go, React Native (Android and iOS), Web projects, Kotlin for Android, Swift for iOS, and Unity for mobile game development.
Obtaining Credentials
To obtain the necessary credentials for accessing the Sodot JFrog Artifactory repository, use our guide here.
Minimum Requirements for Installation
- Unity 6.0 or higher (i.e.
minSdkVersion 23for Android, and iOS 13.4 or higher)
Unity SDK Installation
To use the Sodot Unity SDK in your Unity mobile game project, follow these installation steps:
-
Follow the instructions in the Obtaining Credentials section to obtain your credentials and log into the JFrog Artifactory repository.
-
Create a
.upmconfig.tomlfile in the home directory of your machine (e.g.~/.upmconfig.tomlon Linux or macOS, or%USERPROFILE%\.upmconfig.tomlon Windows) with the following content:
[npmAuth."https://repo.sodot.dev/artifactory/api/npm/v1-sodot-mpc-sdk-unity/"]
token = "<YOUR_JFROG_NPM_TOKEN>"
email = "<YOUR_EMAIL>"
alwaysAuth = true
-
Set registry URL in Unity:
- Open Unity and go to
Edit>Project Settings. - In the
Package Managersection, set theScoped Registriesto include the Sodot registry:- Name: Sodot
- URL:
https://repo.sodot.dev/artifactory/api/npm/v1-sodot-mpc-sdk-unity - Scope:
dev.sodot.mpc.sdk
- Open Unity and go to
-
Open the
Package Managerin Unity by going toWindow>Package Management>Package Manager. -
In the Package Manager window, in the
Registriessection, select theSodotregistry you just added. -
Select the
Sodot MPCpackage from the list of available packages and clickInstall.
Usage
After installation, you can import the SDK classes in your C# code by importing the package e.g. :
using SodotSDK.Ecdsa;
You can now start generating keys and signing. Refer to the Getting Started guide for next steps.