Javascript module to work with HashKey DID Protocol.
npm install hashkeydid-js
hashkeydid-js provides simple access to the HashKey DID Contracts.
DIDSigner and DIDResolverSigner are the core objects to send transactions with HashKey DID Contracts.
didSigner = new DIDSigner("private_key")
resolverSigner = new ResolverSigner("private_key")Registering HashKey DID account with JS SDK
didSigner.Claim("xxx.key")Querying user address with did name
import {GetAddrByDIDName} from "hashkeydid-js"
// DID name: herro.key
// overrides(optional): {"blockTag": 16513266} (search at block number 16513266)
async function QueryAddrByDIDName(){
let addr = await GetAddrByDIDName("herro.key", {"blockTag": 16513266})
}