OpenCerts is able to batch large number of certificates to be issued on the Ethereum blockchain in a single transaction.
To follow through this section, please have all the certificates generated from the previous step in a single folder.
Clone the certificate-cli source code repository to your deployment environment
git clone https://github.com/GovTechSG/certificate-cli.git
Navigate into the directory
Install the dependencies for the package
npm install –production –ignore-scripts
Place the unsigned certificates into a folder
mkdir unsigned_certs mv <path/certs> unsigned_certs
Run the CLI Tool to batch the certificates
node index.js batch unsigned_certs signed_certs
2018-08-30T05:06:55.313Z info: Batch Certificate Root: 70250f22ecaa7c12cdde4a4bc6dc3bf2464433691cd462bcfe980d7e85f6a06c
Upon successful batching of the certificates, the merkle root for the entire batch will be printed and the signed certificates will be found in the folder
Note the merkle root, it will be published onto the certficate store in later steps.
For the documentations for writing custom application to process the certificates, refer to the documentation for OpenCerts