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

@zoza/sign

v0.1.0

Published

Zoza Sign SDK. Decode raw blockchain transactions (EVM, Solana, Tron, Bitcoin, USDT-TRC20), verify they match user intent before an exchange relays them, and issue cryptographic receipts that prove the check was run. Catches multi-billion-dollar heist pat

Readme

@zoza/sign

Exchange + custodian transaction safety. Decode raw blockchain bytes, verify they match the user's declared intent, issue Ed25519 receipts that prove the check was run. Catches the multi-billion-dollar heist pattern where a "routine withdrawal" is actually a calldata drain.

npm license

Install

npm install @zoza/sign

Who uses this

  • Exchanges (custodial + self-custody hybrids) running verify() on every outbound raw transaction before it's broadcast. Bybit, WazirX, Grinex-class heists all hinged on calldata that didn't match the withdrawal UI — the pattern Sign detects.
  • Custodians + treasuries verifying each signed withdrawal matches the approval ticket.
  • Auditors consuming verifyReceipt() against archived receipts to prove the check happened, without trusting the live Sign API.

Quick start

import { SignClient } from '@zoza/sign';

const sign = new SignClient({ apiKey: process.env.ZOZA_SIGN_KEY! });

// 1. Decode what the signed bytes actually do
const decoded = await sign.decode({ raw_tx: '0xf86c...' });
// → { chain: 'eth', tx_type: 'legacy', to: '0x...', value: '0x0',
//     function: 'approve', token: '0x...', amount: 'MAX_UINT256', risk_flags: [...] }

// 2. Verify it matches the intent your exchange UI declared
const verdict = await sign.verify({
  intent: { chain: 'eth', to: '0xCustomerWithdrawAddr', token: 'USDT', amount: '10000' },
  raw_tx: '0xf86c...',
});

if (!verdict.match) {
  // DO NOT BROADCAST. Archive the attempt for audit.
  // verdict.diff explains every field that diverged.
  return logAndReject(verdict);
}

// verdict.receipt is Ed25519-signed by Zoza Sign's authority key.
// Archive it. Any auditor can later offline-verify it without us.
await archive(verdict.receipt);

Offline verification of archived receipts

// Months later, an auditor validates an archived receipt:
const { public_key } = await sign.getAuthority(); // pin this once
const r = await sign.verifyReceipt({ receipt: archivedReceiptJSON });
// → { valid: true, authority: 'current', signed_at: '...' }

The authority key is rotated quarterly; getAuthorityHistory() returns the full chain so old receipts remain verifiable forever.

API

new SignClient({ apiKey, apiUrl?, fetch? })

| Option | Type | Notes | |---|---|---| | apiKey | string (required) | Issued at zoza.world/developers/sign. Format sgn_<base64>. | | apiUrl | string | Default https://sign-api.zoza.world. | | fetch | typeof fetch | Optional — Node <18 or custom signers. |

Methods

| Method | Auth | Purpose | |---|---|---| | decode({ raw_tx }) | public | Decode raw transaction bytes | | verify({ intent, raw_tx }) | API key | Compare decoded TX to intent, issue signed receipt | | verifyReceipt({ receipt, public_key? }) | public | Offline verify an archived receipt | | getAuthority() | public | Current Ed25519 authority pub key | | getAuthorityHistory() | public | All historical keys (post-rotation) | | getVerification(id) | public | Retrieve a specific verification by ID |

Chain coverage

EVM (full RLP incl. EIP-1559/2930/4844/7702), Solana, Tron (TRX + TRC-20), Bitcoin (legacy + SegWit + Taproot + BIP-70 PSBTs).

Tests

npm install
npm test

License

MIT © Zoza