merkleproof2017

0.0.4 • Public • Published

Install

npm install merkleproof2017

Getting Started

  //Import module
  const merkleproof2017 = require('merkleproof2017')

  // Load unsigned certificates from disk
  let cert1 = await merkleproof2017.loadUnsignedCertificate('/UnsignedCerts/UnsignedCert1.json')
  let cert2 = await merkleproof2017.loadUnsignedCertificate('/UnsignedCerts/UnsignedCert2.json')

  // Put certs into array
  let certArray = [cert1, cert2]

  // Sign certificates
  let signedCerts = await merkleproof2017.signCertificates(certArray)

  // Print array of signed sertificates
  console.log(JSON.stringify(signedCerts, null, 2))

/merkleproof2017/

    Package Sidebar

    Install

    npm i merkleproof2017

    Weekly Downloads

    1

    Version

    0.0.4

    License

    ISC

    Unpacked Size

    4.25 kB

    Total Files

    5

    Last publish

    Collaborators

    • sledro