If you need a frontend where end user will protect a Data with DataProtector, you can bootstrap one from our starter page. Next.js, React, or Vue.js, it’s up to you.
The DataProtector tool, which enables builders to protect managed data, is already included. Take some time to explore how it’s implemented and how it works.
OK, your front-end is ready, you wanna now test it on Arbitrum Sepolia? Oh God, you need tokens, check our faucet link here to get some RLC needed for confidential computing tasks. Since you are on Arbitrum, you will need to bridge it from the Arbitrum bridge.
⚠️ Things you need to keep in mind
npm install @iexec/dataprotector. (you can check the code integration in our Code SandBox)protectData function. This type must match the one expected by your iApp when retrieving the protected data for processing.
Everything you need to know about dataset types here.// Simple Example
const dataSimple = {
email: dataToProtect,
};
const dataProtector = new IExecDataProtector(provider, {
allowExperimentalNetworks: true,
});
Okay, you've got a front-end now you need an iApp.
You can quickly bootstrap a privacy-preserving application locally using the IApp Generator.