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

@zktable/contracts

v0.1.1

Published

Generic Soroban referee contract + vendored UltraHonk verifier for zkTable

Downloads

289

Readme

@zktable/contracts

Soroban (Rust) on-chain layer for zkTable: the generic game referee contract plus the UltraHonk proof verifier it depends on.

Layout

crates/
  ultrahonk-verifier/   # pure-Rust UltraHonk verifier (BN254 host functions)
  test-utils/           # test helpers for the verifier
contracts/
  verifier/             # thin verifier wrapper contract (M0 anchor) — zktable-verifier
  referee/              # generic game referee (M2+)  [added in M2]
scripts/
  deploy_verifier.sh    # build + deploy + verify a circuit's proof on testnet

Provenance

crates/ultrahonk-verifier and contracts/verifier are vendored from yugocabrio/rs-soroban-ultrahonk (MIT). See crates/ultrahonk-verifier/VERIFIER_PROVENANCE.md. The verifier implements UltraHonk verification in Rust using Stellar's BN254 host functions (Protocol 26+). We treat it as an audited, load-bearing dependency and build the zkTable referee on top of it unchanged.

Toolchain (pinned — see repo rust-toolchain.toml)

  • Rust stable (1.94+), target wasm32v1-none (soroban-sdk 26 rejects wasm32-unknown-unknown).
  • soroban-sdk 26.0.1, stellar CLI 23+.
  • Build with cargo +stable build --release --target wasm32v1-none. The stellar contract build wrapper may select the wrong toolchain — prefer the explicit cargo command above (already wired into pnpm build).

Verifier contract API (zktable-verifier)

__constructor(vk_bytes: Bytes)                       // VK immutable at deploy
verify_proof(public_inputs: Bytes, proof_bytes: Bytes) -> Result<(), Error>
vk_bytes() -> Bytes

PROOF_BYTES = 14592. Contract error #4 = VerificationFailed.

Reproduce M0 (proof verified on live testnet)

# 1. build the circuit artifacts (proof / vk / public_inputs)
packages/circuits/scripts/build_one.sh simple_circuit
# 2. build + deploy the verifier and verify the proof on-chain
packages/contracts/scripts/deploy_verifier.sh simple_circuit alice testnet

A valid proof returns null (Ok); a tampered proof fails with contract error #4.

Test

cargo +stable test        # native unit + Soroban-host integration tests (needs built circuit artifacts)