New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

multisafe-sdk

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multisafe-sdk

Welcome to the MultiSafe Auth SDK Repo.

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Auth SDK

Welcome to the MultiSafe Auth SDK Repo.

What is this package for?

This package includes all the methods to interact with ipfs gateway via end to end encryption.

How do I get set up?

  • npm i auth-sdk --save
  • make sure you have node installed on your machine

Methods

Add Data to IPFS

const auth = require("auth-sdk");

let data = "Hello World";
await auth.ipfs.addData(data);

Get Data from IPFS

const auth = require("auth-sdk");

let cid = "QmPb5f92FxKPYdT3QNBd1GKiL4tZUXUrzF4Hkpdr3Gf1gK";
await auth.ipfs.getData(cid);

Encrypt Data using Ethereum Signatures

const auth = require("auth-sdk");

let signature = <Get signature from ethereum private key by signing a message>
auth.cryptoUtils.encryptData("some data",signature, safeAddress);

Decrypt Data using Ethereum Signatures

const auth = require("auth-sdk");

let signature = <Get signature from ethereum private key by signing a message>
auth.cryptoUtils.decryptData(<Encrypted String>,signature, safeAddress);

Encrypt Data using Encryption Key

const auth = require("auth-sdk");

let signature = <Get signature from ethereum private key by signing a message>
auth.cryptoUtils.encryptDataUsingEncryptionKey("some data",encryptionKey);

Decrypt Data using Encryption Key

const auth = require("auth-sdk");

let signature = <Get signature from ethereum private key by signing a message>
auth.cryptoUtils.decryptDataUsingEncryptionKey(<Encrypted String>, encryptionKey);

Get Encryption Key using Ethereum Signatures

const auth = require("auth-sdk");

let signature = <Get signature from ethereum private key by signing a message>
auth.cryptoUtils.getEncryptionKey(signature, safeAddress);

Encrypt data using public key

const auth = require("auth-sdk");

let signature = <Get signature from ethereum private key by signing a message>
await auth.cryptoUtils.encryptUsingPublicKey(data, publicKey);

Encrypt data using signatures

const auth = require("auth-sdk");

let signature = <Get signature from ethereum private key by signing a message>
await auth.cryptoUtils.encryptUsingSignatures(data, signature);

Decrypt data using signatures

const auth = require("auth-sdk");

let signature = <Get signature from ethereum private key by signing a message>
await auth.cryptoUtils.decryptUsingSignatures(encryptedData, signature);

Get public key using signatures

const auth = require("auth-sdk");

let signature = <Get signature from ethereum private key by signing a message>
auth.cryptoUtils.getPublicKey(signature);

FAQs

Package last updated on 24 Aug 2021

Did you know?

Socket

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