Hypersign DID SDK

A Javascript based SDK for DID Operations

Hypersign Decentralized Identifiers (Hypersign DID) comply W3C DID specification and is built on top of Hypersign Identity Blockchain Network. It implements Hypersign DID scheme (did:hid).

Note: did:hid DID scheme is yet to be offcially registered on W3C DID registry.

Read Decentralized Identifier (DID) section for more details.

Hypersign DID SDK

Is a javascript library for DID related operation (generate, sign, verify etc). It also provides APIs to store/update/retrive DID and DID Documents to/from the Hypersign DID Registry on the Hypersign Blockchain network easily.

Table of Contents

Install The Package

Import The Package

Offchain APIs

Initialize Instance of HypersignDID

generateKeys()

Generate a new key pair of type Ed25519VerificationKey2020

API Definition

Usage

Outputs

// TODO: It should also outputs algorithm

generate()

Generates a new DID Document

API Definition

Usage

Outputs

sign()

Sing a DID Document and generated proof

API Definition

Usage

Outputs

verify()

Verifies a signed DID Document.

API Definition

Usage

Outputs

Onchain APIs

Initialize with offlineSigner

Create Instance of the class

OfflineSigner

You may follow this this code snippet for creating OfflineSigner

Call init() to initialize the `offlineSigner`

register()

Registers a DID and DIDDocument on blockchain

API Definition

Usage

Outputs

resolve()

Resolves a DID document from blockchain provided the DID.

API Definition

Usage

Outputs

update()

Updates the DID document on blockchain

API Definition

Usage

Outputs

deactivate()

Deactivates the DID document on blockchain

API Definition

Usage

Outputs

Security Concerns

// TODO

Last updated