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

idtree-sdk

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idtree-sdk

SDK to Interact with IDTree Hyperledger Network and generate UniqueIDs

latest
npmnpm
Version
1.0.2
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Welcome to idtree-sdk

Version License: ISC

SDK to Interact with IDTree Hyperledger Network and generate UniqueIDs

  • To Get an API-KEY Please Register
  • Once You Register You will receive an apiKey
  • You can use that apiKey in our idtree-sdk, intruction given below

Install

npm install idtree-sdk

Usage

const generateId = require('idtree-sdk')
const apiKey = `YOUR_API_KEY` //received after registration
const id = await generateId.generateUniqueID(apiKey)

Example Responses

- On Success:
  {
    status: 200,
    uniqueID: '06F608371B194EB968D202DA82E93FD9C3F96F27',
    privateKey: '-----BEGIN PRIVATE KEY-----MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgIPCf+W56LOUGhwRewwVKt9SFXxWH+jxzO0iI30NZpiGhRANCAAQXzGjR87ixS8jaVsJmA2/At5DPhZ8TZTdRlLgWhcfVwiPJAnSAYbVv6g2TbYpOewhjOjgIppwRurCbUby58N2d-----END PRIVATE KEY-----'
  }

- On Error:
  {
    status: 401,
    error: 'Invalid API Key',
    data: {
      result: 0,
      msg: 'error',
      data: 'Invalid API Key'
    }
  }

IDTree SDK to Interact with IDTree Hyperledger Fabric Blockchain Network

FAQs

Package last updated on 09 Jan 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