1.0.18 • Published 5 months ago

@decentralized-identity/ion-pow-sdk v1.0.18

Weekly downloads
-
License
apache-2.0
Repository
github
Last release
5 months ago

ion-pow-sdk

This repo contains the sdk for ION proof of work.

How To Use It

  1. npm install ion-pow-sdk
  2. const IonProofOfWork = require('ion-pow-sdk'); or import IonProofOfWork from 'ion-pow-sdk'
  3. call IonProofOfWork.submitIonRequestUntilSuccess(getChallengeUri, solveChallengeUri, JSON.stringify(requestBody))
  4. The SDK will get the challenge, solve it, and submit the request for you.