@holonym-foundation/off-chain-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

@holonym-foundation/off-chain-sdk

An SDK for verifying off-chain proofs from Holonym users.

Installation

npm i @holonym-foundation/off-chain-sdk

Usage

See Holonym's docs for off-chain proofs for more information on how to get proofs from users.

import { verifyUniquenessProof } from "@holonym-foundation/off-chain-sdk";
import type { Proof } from "@holonym-foundation/off-chain-sdk";

async function verify(proof: Proof): Promise<boolean> {
  const result = await verifyUniquenessProof(proof);
  console.log(`User is unique: ${result}`);
  return result;
}

Readme

Keywords

none

Package Sidebar

Install

npm i @holonym-foundation/off-chain-sdk

Weekly Downloads

1

Version

0.0.6

License

MIT

Unpacked Size

5.52 kB

Total Files

5

Last publish

Collaborators

  • calebtuttle
  • caleb-at-holonym