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

@provablehq/veil-aleo-sdk

v0.4.1

Published

Local signing and proving for the Veil Aleo SDK, backed by the Provable SDK.

Downloads

0

Readme

@provablehq/veil-aleo-sdk

Local signing and proving for the Veil Aleo SDK, backed by the Provable WASM SDK (@provablehq/sdk).

Reach for this package when the caller holds an Aleo private key directly — bots, scripts, tests, and CI — rather than connecting a wallet. It turns a private key into an account, wires a wallet client with proving configured (delegated or local), builds record scanners, and derives the same account keys (address, view key) and blinded claim identity that private flows depend on. Because it loads WASM, an app that connects a wallet instead — the wallet holds the keys and proves for you — generally does not need this package at all.

Installation

pnpm add @provablehq/veil-aleo-sdk @provablehq/veil-core

Usage

Load the SDK for a network, then build the account, scanner, and clients from the returned handle. loadNetwork is async because it fetches the network's WASM binaries; the handle it returns is synchronous from there on.

import { loadNetwork } from '@provablehq/veil-aleo-sdk'

const aleo = await loadNetwork('testnet')

// A record scanner so the wallet client can find the private records that
// program calls spend. The first requestRecords registers the view key with the
// service (one network round-trip); later calls reuse it.
const scanner = aleo.createRemoteScanner({
  url: 'https://api.provable.com/scanner',
  consumerId: CONSUMER_ID,
  apiKey: DPS_API_KEY, // authenticates + registers the view key for scanning
})

// A fully-wired client pair: an account from the private key, a public client
// for reads, and a wallet client with proving + the scanner attached.
const { publicClient, walletClient, account } = aleo.createAleoClient({
  privateKey: PRIVATE_KEY,
  networkUrl: 'https://api.provable.com/v2',
  provingMode: 'delegated',
  proverUrl: 'https://api.provable.com/prove/testnet',
  apiKey: DPS_API_KEY,
  consumerId: CONSUMER_ID,
  records: scanner,
})

account.address // 'aleo1...'

Pass provingMode: 'local' to prove in-process instead of delegating to a prover service (drop proverUrl/apiKey/consumerId). The walletClient composes with action packages the same way a wallet-backed client does:

import { shieldSwapActions } from '@provablehq/shield-swap-sdk'

const client = walletClient.extend(
  shieldSwapActions({ api: { baseUrl: 'https://amm-api.dev.provable.com' } }),
)

The handle also exposes the pieces individually when the caller does not want the full pair:

  • aleo.privateKeyToAccount(privateKey) / aleo.mnemonicToAccount(mnemonic) / aleo.generateAccount() — build a LocalAccount.
  • aleo.createProvingConfig({ ... }) — the proving config for createWalletClient({ proving }).
  • aleo.createStandaloneScanner({ ... }) — a scanner keyed by an explicit view key, with no account attached.
  • aleo.decryptRecord(viewKey, ciphertext) / aleo.verifySignature(...) — network-agnostic key operations.

For local iteration without a live chain, createDevnodeClient() returns the same client pair pointed at an Aleo Devnode instance with a pre-funded seeded account.

WASM dependency

@provablehq/sdk ships the Aleo cryptography as WebAssembly, and this package loads it. That is the cost of holding keys and proving locally. An app that connects a wallet — Shield, Leo — should build its client from the wallet adapter instead (see @provablehq/veil-aleo-wallet-adapter) and skip @provablehq/veil-aleo-sdk, keeping the WASM out of the bundle.