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

@lib-q/threshold-kem

v0.0.7

Published

PROVISIONAL threshold KEM (ML-KEM-768 + Shamir) for Node.js

Readme

lib-q-threshold-kem (PROVISIONAL)

lib-q-threshold-kem is a provisional threshold KEM construction for libQ.

  • Group encapsulation uses ML-KEM-768.
  • Secret sharing uses byte-wise Shamir shares over GF(256).
  • Partial decapsulation shares are bound to ciphertext and verifier commitments.
  • Wire format is threshold_kem_wire_v1: [ver=1][profile=1][ct_len u32 LE][ct][share_count u16 LE][shares].

Profile

This crate exposes ThresholdKemProfileV1 with:

  • id = 1
  • max_threshold = 32
  • parameter_set_digest = SHA3-256("amber-tkem-revised-v1-T32-k128")

Proof size table

Measured from tests/vectors/manifest.json (KAT seed, T=32/n=64 encap path):

| Scenario | Bytes | Budget | Pass | |----------|------:|-------:|:----:| | ML-KEM-768 ciphertext (ct) | 1088 | 30720 | yes | | Full wire (threshold_kem_wire_v1) | ≤30720 | 30720 | yes |

Hard ciphertext ceiling: WIRE_BUDGET_TKEM_CIPHERTEXT_BYTES = 30720.

Pinned parameter digest (SHA3-256): eb79c0f7804722e368351a9c5756dcafcae3ed2d46bc4c77dbc565b31877736c.

KAT export

Schema: threshold-kem-kat-v1

cargo test -p lib-q-threshold-kem kat_regenerate_vectors -- --ignored

Output: tests/vectors/threshold-kem-v1.json

Security and status

This crate is PROVISIONAL and intended for controlled evaluation and interoperability testing.

Parameter provenance

The profile canonical blob is pinned in code and hashed with SHA3-256. Reference standard for the KEM building block:

Subresource integrity (SHA-384)

Paths in integrity-manifest.json are relative to the package root (including web/ and nodejs/ when both ship).