Socket
Socket
Sign inDemoInstall

@iexec/dataprotector

Package Overview
Dependencies
248
Maintainers
4
Versions
59
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @iexec/dataprotector

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


Version published
Weekly downloads
188
increased by51.61%
Maintainers
4
Created
Weekly downloads
 

Readme

Source

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

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.

Keywords

FAQs

Last updated on 02 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc