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

vellum-sdk

v0.1.1

Published

Vellum Privacy Middleware SDK for RWA Issuers

Readme

Vellum SDK

Version 0.1.0

The Vellum SDK is a plug-and-play middleware for RWA issuers on the Mantle Network. It allows you to embed conditional privacy flows into your protocol, enabling the tokenization of assets like invoices with ZK-enforced compliance (EdDSA signatures, Poseidon nullifiers, and ECDH encryption).

This SDK handles the "heavy lifting" of zero-knowledge privacy: client-side encryption, IPFS pinning, ZK input piping, and atomic minting transactions.

Vellum SDK Usage

1. Installation

npm install vellum-sdk viem

2. Import Core Functions

You can import the core logic pipelines directly if you are managing your own state, or use the React hooks for quicker integration.

import { forgeInputs, atomicMintBundle, queryCompliance } from 'vellum-sdk';

3. Pipeline: Forge, Prove, Mint

The standard flow for an issuer involves three stages: piping the data, generating the proof, and bundling the transaction.

Step A: Pipe Issuer Data Run the client-side pipeline to encrypt the PDF (ZK-bound AES), pin to IPFS, and hash details for the circuit.

const { privateInputs, publicInputs, pinMetadata } = await forgeInputs({
  amount: 50000,
  dueDate: 1767225600, // Unix Timestamp
  invoiceId: "INV-902-ACME",
  file: pdfFileObject // Optional
});

Step B: Prove (Using SnarkJS) Pass the privateInputs and publicInputs to your Circom prover (SnarkJS).

// This typically runs in a Web Worker
const { proof, publicSignals } = await snarkjs.groth16.fullProve(
  { ...privateInputs, ...publicInputs },
  "circuit.wasm",
  "circuit_final.zkey"
);

Step C: Bundle Calldata & Mint Generate the ABI-encoded calldata required for the VellumWrapper contract. This ensures the ciphertext on-chain matches the proof.

const calldata = atomicMintBundle(
  proof,
  publicInputs,
  pinMetadata.ciphertext,
  pinMetadata.IpfsHash,
  privateInputs.nonce
);

// Send via Viem
await walletClient.writeContract({
  address: VELLUM_ADDRESS,
  abi: VellumABI,
  functionName: 'mint',
  args: [...calldata] // Spreads proof, inputs, ciphertext, hash
});

4. Query & Decrypt

Auditors or the issuer can retrieve the encrypted data from Mantle event logs and decrypt it using the private key.

const logs = await publicClient.getLogs({ ... });
const decryptedLog = await queryCompliance(
  logs[0].args.tokenId,
  userEphemeralPriv, // The private key key used in Step A
  logs[0].args.nonce
);

console.log(decryptedLog.amount); // 50000

Examples

For a full React implementation, see the examples/ folder.

// Reference Logic Flow for Embeds
const runEmbedFlow = async (data) => {
  // 1. Forge
  const pipeline = await forgeInputs(data);
  
  // 2. Prove
  const zkResult = await prove(pipeline.inputs);
  
  // 3. Mint
  const tx = await mint(zkResult, pipeline.meta);
  
  return tx.hash;
};

Centrifuge Pilot Roadmap

  • Q1: Embed in TaaS for Bonds.
  • Q2: Integration with secondary market liquidity pools.

License

MIT