Intro: How to Get Invited to Super Protocol Testnet
The Super Protocol Testnet Phase One is live! This is an invite only mode while we’re polishing everything before a more open Phase Two.
Help us get there faster! To get an invite follow these steps:
- Fill out the application form and let us know on Discord — a short intro of your project and your plans on using confidential computing
- Receive an invitation letter with the details of your testnet account
- Follow the instructions in this manual
- You’re awesome! Start building with Super Protocol Testnet.
We have received a lot of applications, and we have limited computational resources at the moment. But rest assured that all applications will be processed and everyone will get their invitation letter.
This is a trimmed Medium version — you can read the docs, if that’s more convenient.
Don’t forget to follow the updates or ask any questions on Discord!
Getting Started With SP Testnet
In order to get started with SP Testnet you’ll need:
- An account with an Access Token (received in a confirmation letter)
- MATIC and TEE tokens (you can receive testnet tokens using Web UI or CLI)
- Metamask browser extension
There are currently two ways to interact with the protocol:
- Web User Interface. An easy-to-use web application for those who want to quickly try out solutions already deployed on the protocol. It allows you to use your own data, but it does not support deploying your own solutions.
- Command-line Interface (CLI). A powerful tool for developers who want to try deploying their own solutions and leverage the full functionality of the protocol. Right now SP Testnet supports Python script execution.
Let’s go ahead and create an order for confidential computing resources using a pre-existing solution.
What will we do? Using Super Protocol Web UI we will place an order for one of the available Python machine learning scripts and a dataset, process them using one of the Trusted Execution Environment provider’s resources, and upload the encrypted result to Storj decentralized storage.
Step one: if you haven’t configured your metamask to login into SP Testnet — you can do it using our manual.
Now hit “New Order” (big orange button) on the right. Now that’s an interesting form that connects lots of Super Protocol’s moving parts together!
- Solution — here you can pick a script that you want to execute using TEE. Right now there are several pre-made solutions (let us know if you want more and which ones exactly).
Select one of the solutions deployed on the protocol. To learn more about a particular solution click on the link in the description. A base image that is used by the solution will be added automatically and cannot be removed.
- Data — your script should process something, so add the dataset.
If you want to use one or several datasets available on the protocol, then fill in this field. If you want to use your own data, then leave it empty.
- Storage — where should we upload the output.
Select storage offer that will be used for temporary storing calculation results.
- TEE provider node. Select the one that will be doing the calculations from the list of available nodes. If several nodes are available, then it would be wise to pick the one with the least active orders.
- File — add your own data and see if it would work!
Upload a new file with the data that you want to process. Note that the data format must match the requirements of the solution. Check the solution description if not sure.
- Encryption passphrase that would be used to encrypt the order results.
You will not be able to access the results if you lose it. You can either generate the passphrase or use your own.
- Deposit in TEE tokens that would be used for payments.
It is calculated automatically and could be increased. Note that only the necessary amount will be used, you will be able to withdraw the rest after the order is completed.
Here you can see several things come together from the end-user perspective. The workflow is somewhat similar to the one you’d expect from a serverless cloud solution: you have a script, a dataset, a place to store results of the script execution — everything encrypted and processed in a decentralized manner.
Once you’ve place the order, you can see what’s inside:
Super Protocol calculates the required cost in TEE automatically (Deposit in previous popup) and after the task is complete you can see the actual cost in the column to the right below. Don’t worry, if the computations were harder than expected and consumed more resources — you can replenish your deposit (top right button) to add additional funds.
After the order is completed “Get Result” button should be available (top right corner, again). You’ll need a secret phrase in order to download it, so make sure you’ve got it written down somewhere.
Once everything is done, you can safely withdraw your remaining deposit. Notice that “Get Result” is still available for some time to make sure you won’t accidentally lose your data.
Awesome, you’ve made some confidential computations using a decentralized Trusted Execution Environment!
To learn what happens under the hood when you place an order and utilize TEE resources check out the Whitepaper!