├── .eslintignore ├── .eslintrc.json ├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── docs ├── MerkleProofAlgorithm.md ├── OnChainOffChain.md ├── SelectivePrivacy.md └── VulnerabilityPatch-SpoofingOtherCerts.md ├── examples └── sample-certs │ ├── example.0.json │ ├── example.1.json │ └── example.2.json ├── index.js ├── lib └── logger.js ├── package.json ├── scripts ├── benchmark.sh └── makeCerts.sh ├── src ├── batchIssue.js ├── batchIssue.test.js ├── batchVerify.js ├── crypto.js ├── crypto.test.js └── diskUtils.js └── test ├── e2e.test.js ├── fixtures └── schema │ ├── 1.0 │ ├── 1.json │ └── 2.json │ ├── 1.1 │ ├── 1.json │ └── 2.json │ ├── 1.2 │ ├── 1.json │ └── 2.json │ ├── 1.3 │ ├── 1.json │ └── 2.json │ ├── 1.4 │ ├── 1.json │ └── 2.json │ ├── 1.5 │ ├── 1.json │ └── 2.json │ └── 2.0 │ ├── 1.json │ ├── 2.json │ └── 3.json └── helpers.js /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/README.md -------------------------------------------------------------------------------- /docs/MerkleProofAlgorithm.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/docs/MerkleProofAlgorithm.md -------------------------------------------------------------------------------- /docs/OnChainOffChain.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/docs/OnChainOffChain.md -------------------------------------------------------------------------------- /docs/SelectivePrivacy.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/docs/SelectivePrivacy.md -------------------------------------------------------------------------------- /docs/VulnerabilityPatch-SpoofingOtherCerts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/docs/VulnerabilityPatch-SpoofingOtherCerts.md -------------------------------------------------------------------------------- /examples/sample-certs/example.0.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/examples/sample-certs/example.0.json -------------------------------------------------------------------------------- /examples/sample-certs/example.1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/examples/sample-certs/example.1.json -------------------------------------------------------------------------------- /examples/sample-certs/example.2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/examples/sample-certs/example.2.json -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/index.js -------------------------------------------------------------------------------- /lib/logger.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/lib/logger.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/package.json -------------------------------------------------------------------------------- /scripts/benchmark.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/scripts/benchmark.sh -------------------------------------------------------------------------------- /scripts/makeCerts.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/scripts/makeCerts.sh -------------------------------------------------------------------------------- /src/batchIssue.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/src/batchIssue.js -------------------------------------------------------------------------------- /src/batchIssue.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/src/batchIssue.test.js -------------------------------------------------------------------------------- /src/batchVerify.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/src/batchVerify.js -------------------------------------------------------------------------------- /src/crypto.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/src/crypto.js -------------------------------------------------------------------------------- /src/crypto.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/src/crypto.test.js -------------------------------------------------------------------------------- /src/diskUtils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/src/diskUtils.js -------------------------------------------------------------------------------- /test/e2e.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/test/e2e.test.js -------------------------------------------------------------------------------- /test/fixtures/schema/1.0/1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/test/fixtures/schema/1.0/1.json -------------------------------------------------------------------------------- /test/fixtures/schema/1.0/2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/test/fixtures/schema/1.0/2.json -------------------------------------------------------------------------------- /test/fixtures/schema/1.1/1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/test/fixtures/schema/1.1/1.json -------------------------------------------------------------------------------- /test/fixtures/schema/1.1/2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/test/fixtures/schema/1.1/2.json -------------------------------------------------------------------------------- /test/fixtures/schema/1.2/1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/test/fixtures/schema/1.2/1.json -------------------------------------------------------------------------------- /test/fixtures/schema/1.2/2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/test/fixtures/schema/1.2/2.json -------------------------------------------------------------------------------- /test/fixtures/schema/1.3/1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/test/fixtures/schema/1.3/1.json -------------------------------------------------------------------------------- /test/fixtures/schema/1.3/2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/test/fixtures/schema/1.3/2.json -------------------------------------------------------------------------------- /test/fixtures/schema/1.4/1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/test/fixtures/schema/1.4/1.json -------------------------------------------------------------------------------- /test/fixtures/schema/1.4/2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/test/fixtures/schema/1.4/2.json -------------------------------------------------------------------------------- /test/fixtures/schema/1.5/1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/test/fixtures/schema/1.5/1.json -------------------------------------------------------------------------------- /test/fixtures/schema/1.5/2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/test/fixtures/schema/1.5/2.json -------------------------------------------------------------------------------- /test/fixtures/schema/2.0/1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/test/fixtures/schema/2.0/1.json -------------------------------------------------------------------------------- /test/fixtures/schema/2.0/2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/test/fixtures/schema/2.0/2.json -------------------------------------------------------------------------------- /test/fixtures/schema/2.0/3.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/test/fixtures/schema/2.0/3.json -------------------------------------------------------------------------------- /test/helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenCerts/certificate-cli/HEAD/test/helpers.js --------------------------------------------------------------------------------