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

@opaquecash/stealth-chain-solana

v0.2.4

Published

Solana (web3.js) integration for the Opaque stealth registry and announcer: program IDs, PDA derivation, instruction builders, announcement scanning, and the SolanaAdapter

Readme

@opaquecash/stealth-chain-solana

Solana (@solana/web3.js) integration for the Opaque stealth registry and announcer — the Solana counterpart to @opaquecash/stealth-chain (EVM/viem).

All DKSAP crypto is shared with the Ethereum path via the chain-neutral core (@opaquecash/stealth-core / opaque-scanner WASM). Only chain access lives here: program ids, PDA derivation, Anchor instruction building, and Announcement log decoding.

What's here

  • SolanaAdapter — implements @opaquecash/adapter's ChainAdapter (fetchAnnouncements, resolveMetaAddress, isRegistered, watchAnnouncements) and adds buildAnnounceInstruction / buildRegisterKeysInstruction.
  • RegistrygetRegistryEntryPda (["stealth_meta", registrant, schemeId_le]), buildRegisterKeysInstruction, resolveMetaAddress, isRegistered, decodeRegistryEntryMetaAddress.
  • AnnouncerbuildAnnounceInstruction, decodeAnnouncementLogs / decodeAnnouncementEventData / encodeAnnouncementEventData, fetchAnnouncementsRange, watchAnnouncements.
  • Stealth destinationsderiveStealthSolanaKeypair[FromStealthPrivKey] and the matching address helpers (Keypair.fromSeed(sha256("opaque-solana-stealth-v1" || pubkey))).
  • ConfiggetSolanaDeployment(cluster), SOLANA_DEPLOYMENTS, CLUSTER_ENDPOINTS, discriminators, SCHEME_ID_SECP256K1.

This package never reads import.meta.env or any ambient config: pass a Connection, rpcUrl, or cluster explicitly. Signing stays in the app's wallet layer — the builders return unsigned TransactionInstructions.

Usage

import { Connection, PublicKey } from "@solana/web3.js";
import { SolanaAdapter } from "@opaquecash/stealth-chain-solana";

const adapter = new SolanaAdapter({ cluster: "devnet" });

// Unified inbox (chain-neutral announcements; run the WASM view-tag/DKSAP filter next).
const announcements = await adapter.fetchAnnouncements({ limit: 500 });

// Resolve a recipient's meta-address by Solana pubkey.
const meta = await adapter.resolveMetaAddress("E9LBRG5e...");

// Build an announce instruction for the wallet layer to sign.
const ix = adapter.buildAnnounceInstruction({
  caller: new PublicKey("..."),
  stealthAddress,   // 20-byte EVM-style bytes from computeStealthAddressAndViewTag
  ephemeralPubKey,  // 33-byte compressed secp256k1
  metadata,         // metadata[0] = view tag
});

IDL

idl/stealth_announcer.json is the deployed program IDL (devnet HGFn2fH7bVQ5cSuiG52NjzN9m11YrB3FZUfoN9b9A5jf), vendored for consumers that prefer Anchor. This package decodes/encodes with hardcoded discriminators (sourced from that IDL) so it has no Anchor runtime dependency.

Devnet program ids

| Program | Id | | --- | --- | | Stealth registry | E9LBRG5eP2kvuNfveouqQ9tA5P6nrpyLyWFjH9MFYVno | | Stealth announcer | HGFn2fH7bVQ5cSuiG52NjzN9m11YrB3FZUfoN9b9A5jf | | Schema registry | FbgMJYGWnLKLcrKYS1NxM5uER1ihQkYLMTLs4STuDMWB | | Attestation engine V2 | 4T9kPCVCFGdEuLpEqRJihsPCbEEo2LWWDEPFvUESEqtM | | Groth16 verifier | 6mFaKyp7F4NqNeoiBLEWSqy5wJSk7rWf1EYumVXgHvhQ | | Reputation verifier | BSnkCDoTpgNVN5BbF3aN5L5EJPiaYUkqqj9MHp8kaqWM |