2.0.4 • Published 1 year ago

everscale-did-sdk-radiance v2.0.4

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

DID-SDK

This SDK aims to help the development of integrations with DidStorage smart-contracts that use JavaScript.

Contents

How to install

npm i everscale-did-sdk-radiance

Example use did-core for Node js

const { libNode } = require("@tonclient/lib-node");

const core = require('everscale-did-sdk-radiance');


async function main() {

  core.initSettings("devNet", libNode);
  
  const did = 'did:everscale:d760f69f830dfa0668f2e7923392217589ec8d62dcb90f2c06656665dba7fb4d';
  
  res = await core.resolveDIDDocument(did);

  console.log(res);
}

Example use did-core for Web

import { libWeb } from "@tonclient/lib-web";

import core from 'everscale-did-sdk-radiance';

async function main() {

  core.initSettings("devNet", libWeb);
  
  const did = 'did:everscale:d760f69f830dfa0668f2e7923392217589ec8d62dcb90f2c06656665dba7fb4d';
  
  res = await core.resolveDIDDocument(did);

  console.log(res);
}

Example use did-core for Node js or Web

Check file test/run.js

How to test

set params (address and keys) for giver contract in test/GiverContract.json file and run

npm install
npm run test

Output

tests are completed
Result of tests
start tests: success
Test 1 - Create did smart-contract: success
Test 2 - resolve did: success
Test 3 - update json did document: success
Test 4 - update Issuer Address of did document smart-contract: success
Test 5 - deactivate did document smart-contract: success
Test 6 - sign data: success
Test 7 - verify signature: success
2.0.4

1 year ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago