Skip to content

This product enables users to confidentially store private data–such as mail address, documents, personal information ... etc.

License

Notifications You must be signed in to change notification settings

ngopriyanka/dataprotector-sdk

 
 

Repository files navigation

iExec logo

DataProtector

DataProtector offers developers methods to create apps that give users unparalleled ownership and privacy over their data.

Through DataProtector, users may allow apps to use their data–without ever revealing the data itself. This revolutionary approach to data management relies on:

  • end-to-end encryption backed by a confidential computing technology that prevents apps from accessing users’ unencrypted data
  • smart contracts that manage apps’ rights to use users’ encrypted data

DataProtector bundles 6 methods:

  • protectData — that safeguards any data. It takes responsibility for encrypting the data and recording ownership on a smart contract
  • grantAccess — that authorizes an app to use users’ data without ever revealing the data itself
  • revokeAllAccess — that revokes all apps' access to users’ data
  • revokeOneAccess — that revokes an app's access to users’ data
  • fetchProtectedData — that retrieves data protected by DataProtector
  • fetchGrantedAccess — that provides the list of authorization with associated apps and users to use existing protected data

npm license

Installation

DataProtector is available as an npm package.

npm:

npm install @iexec/dataprotector

yarn:

yarn add @iexec/dataprotector

Get started

Browser

import { IExecDataProtector } from '@iexec/dataprotector';

const web3Provider = window.ethereum;
const dataProtector = new IExecDataProtector(web3Provider);

NodeJS

import { IExecDataProtector, getWeb3Provider } from '@iexec/dataprotector';

const { PRIVATE_KEY } = process.env;

const web3Provider = getWeb3Provider(PRIVATE_KEY);
const dataProtector = new IExecDataProtector(web3Provider);

Documentation

License

This project is licensed under the terms of the Apache 2.0.

About

This product enables users to confidentially store private data–such as mail address, documents, personal information ... etc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.8%
  • JavaScript 0.2%