@daosign/verification
v0.1.2
Published
DAOsign verification library
Downloads
4
Readme
DAOsign Vertification Tool
This verification tool is designed to verify DAOsign certificate.
Usage
To user, follow these steps:
Install veritifcation tool:
npm install @daosign/verification
Import verify function:
import { verifyCertificateBytes } from "@daosign/verification"
Pass Certificate file bytes to verify function
function verify(file) { return verifyCertificateBytes(bytes); }
Example
Example usage:
import fs from "fs";
import { verifyCertificateBytes } from "@daosign/verification"
async function validate(filePath) {
const file = fs.readFileSync(filePath);
return await verifyCertificateBytes(file);
}