JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q45701F
  • License ISC

zero knowledge age proofing on chain with realid.eth

Package Exports

  • @authenticid-labs/zk-age-proof
  • @authenticid-labs/zk-age-proof/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@authenticid-labs/zk-age-proof) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm i @authenticid-labs/zk-age-proof

or

yarn add @authenticid-labs/zk-age-proof

Usage

const {doZKProof, getZKHash, getZKProof} = require('@authenticid-labs/zk-age-proof');

const {proof, timestamp} = await getZKProof(provider, wallet_address);
const hash = getZKHash(age: number, timestamp: Date, dob: Date, secretPhrase: string);
const success = doZKProof(age: number, hash: string, proof: string);