0.0.4 • Published 4 years ago

merkleproof2017 v0.0.4

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

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

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago