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))

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    1
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

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