Skip to content

pellartech/MerkleProof2017

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Merkle Proof Signature Suite 2017

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published