npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

veritaszk-sdk

v0.3.1

Published

TypeScript SDK for VeritasZK zero-knowledge solvency proofs on Aleo. Batch verification, live proof watching, and expiry checking.

Downloads

33

Readme

veritaszk-sdk

TypeScript SDK for VeritasZK — the first zero-knowledge proof-of-solvency system on Aleo.

Organizations prove assets exceed liabilities via ZK proof without revealing amounts, asset types, or wallet addresses. Anyone can verify the result. Nobody sees the underlying data. Ever.

Quick Start

npm install veritaszk-sdk
import { verifySolvency } from 'veritaszk-sdk'

const result = await verifySolvency('aleo1cdmu479q6duu327wgm3vnphqtq2n4q4vcvp66f5742gv5f8f9qxq0w9r00')
console.log(result.isSolvent)          // true — no amounts revealed
console.log(result.verificationCount)  // times verified on-chain

Architecture

VeritasZK runs three Leo programs on Aleo Testnet in a CPI chain:

veritaszk_registry.aleo  (org identity, credentials, delegation)
         ↑
veritaszk_core.aleo ──→ veritaszk_audit.aleo
(ZK proof generation)    (immutable audit trail)

This SDK queries public mappings across all three programs. Private financial data is mathematically inaccessible — the amounts exist only in encrypted Leo Records.

API Reference

Core Functions

| Function | Description | Returns | |----------|-------------|---------| | verifySolvency(commitment) | Full solvency status for one org | Promise<SolvencyStatus> | | batchVerify(commitments[]) | Check multiple orgs in parallel | Promise<BatchVerifyResult[]> | | isRegistered(commitment) | Check if org is in registry | Promise<boolean> | | getAuditTrail(commitment) | Proof event history from audit program | Promise<AuditEvent> | | getVerificationCount(commitment) | Number of on-chain verifications | Promise<number> | | isProofExpired(commitment) | Check if proof has expired | Promise<boolean> |

React Hooks

| Hook | Description | |------|-------------| | useSolvencyStatus(commitment) | Auto-refreshing solvency status (polls every 30s) | | useAuditTrail(commitment) | Fetches audit event history on mount |

Webhook

| Class | Description | |-------|-------------| | VeritasZKWebhook | Polls solvency status and POSTs to your webhook URL on state changes |

Usage

Verify a single organization

import { verifySolvency } from 'veritaszk-sdk'

const status = await verifySolvency('aleo1...')
// {
//   orgCommitment: 'aleo1...',
//   isSolvent: true,
//   timestamp: 142857,
//   expiryBlock: 147857,
//   verificationCount: 12,
//   thresholdLevel: 2,
//   hasMultiWallet: false,
//   isExpired: false,
//   lastProofBlock: 142857
// }

Batch verification

import { batchVerify } from 'veritaszk-sdk'

const results = await batchVerify([
  'aleo1abc...',
  'aleo1def...',
])
// [{ orgCommitment: 'aleo1abc...', isSolvent: true }, ...]

Check registry

import { isRegistered } from 'veritaszk-sdk'

const registered = await isRegistered('aleo1...')
// true — organization has registered via veritaszk_registry.aleo

Audit trail

import { getAuditTrail } from 'veritaszk-sdk'

const trail = await getAuditTrail('aleo1...')
// {
//   orgCommitment: 'aleo1...',
//   eventCount: 5,
//   lastProofBlock: 142857,
//   isExpired: false
// }

React hooks

import { useSolvencyStatus } from 'veritaszk-sdk/react'

function SolvencyBadge({ commitment }: { commitment: string }) {
  const { status, loading, error } = useSolvencyStatus(commitment)

  if (loading) return <span>Checking...</span>
  if (error) return <span>Error: {error}</span>
  if (!status) return null

  return (
    <span style={{ color: status.isSolvent ? '#10b981' : '#ef4444' }}>
      {status.isSolvent ? '✓ SOLVENT' : '✗ NOT SOLVENT'}
    </span>
  )
}

Webhook monitoring

import { VeritasZKWebhook } from 'veritaszk-sdk/webhooks'

const webhook = new VeritasZKWebhook({
  url: 'https://your-server.com/webhook',
  events: ['proof.generated', 'proof.expired', 'proof.revoked'],
  orgCommitment: 'aleo1...',
  pollIntervalMs: 60000,
})

webhook.start()
// POSTs to your URL whenever solvency state changes

What the SDK Does NOT Return

By design, no function in this SDK can return:

  • Asset amounts or liability amounts
  • Wallet addresses beyond the org commitment
  • Asset types or portfolio composition
  • Any data that could reveal financial strategy

This is guaranteed by the underlying Leo contracts — the data does not exist in any queryable public state on Aleo.

Deployed Programs

| Program | Explorer | |---------|----------| | veritaszk_registry.aleo | Explorer | | veritaszk_core.aleo | Explorer | | veritaszk_audit.aleo | Explorer |

Related Packages

Links

Built on Aleo — privacy by default.