npm.io
2.0.0 • Published 3 years ago

hashkeydid

Licence
ISC
Version
2.0.0
Deps
4
Size
310 kB
Vulns
0
Weekly
0

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"});

Keywords