Skip to content

hashkeydid/hashkeydid-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HashKey DID SDK - NPM

License

TypeScript module to work with HashKey DID Protocol.

Installation

npm install hashkeydid

Usage

hashkeydid provides simple access to the HashKey DID Contracts.

Basic

HashKeyDID

HashKeyDID is the Basic object to send transactions with HashKey DID Contracts.

import {NewHashKeyDID} from "hashkeydid";

HashKeyDIDOnlyRead = await NewHashKeyDID("rpc url");

HashKeyDIDByPrivateKey = await NewHashKeyDID("rpc url", {privateKey: "private_key"});

HashKeyDIDByMnemonic = await NewHashKeyDID("rpc url", {mnemonic: "mnemonic"});