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 🙏

© 2024 – Pkg Stats / Ryan Hefner

holonym-wasm-issuer

v2.0.0

Published

WASM bindings to run a Holonym issuer

Downloads

50

Readme

To use

const { issue } = require("holonym-wasm-issuer")

// This script will convert to a safer version of thoe private key inside the modulus
const privateKey = crypto.randomBytes(32)

// The user generates a random secret and provides the issuanceNullifier which is set by 
// PoseidonHash(secret, 0x194ee5653c27cb200f64d0bd1ade2b4734e3341ea37712c6a5a4bd30870c33f1)
// 0x194ee5653c27cb200f64d0bd1ade2b4734e3341ea37712c6a5a4bd30870c33f1 is the public salt, a nothing-up-my-sleeve value equal to SHA256(\"Holonym Issuance\")
const issuanceNullifier = "123456789"

// Field 1 is some custom value the issuer wants to include in the credentials. If you want to include more values in `field1`, you can set `field1` to a hash of multiple values
const field1 = "5555555555555555555555555555"

// Field 2 is some custom value the issuer wants to include in the credentials. If you want to include more values in `field2`, you can set `field2` to a hash of multiple values
const field2 = "6666666666666666789"


issuer(privateKey, issuanceNullifier, field1, field)

Example return value

'{"credentials":{"address":"17452778546612284841311285923007828457519849114758929118101790154989181357987","isusance_nullifier":"123","custom_fields":["456","789"],"iat":"3912695745","scope":"0"},"leaf":"Fr(0x1ccb08fe58cf68e9a4e88e1a9ef8f5fe410c1b6593234bede96e2c7d60785e1d)","pubkey":{"x":"16003805019320757968260925948214345382871117349903511721497214338214881283461","y":"1211567564782129944539956892693917522526551007204649738937647460834237741531"},"signature_r8":{"x":"1267462639657973467509727148699289199109220101014975208155967540417688763687","y":"15269156096953569064177396808572247541427104811274671894203657974305304561353"},"signature_s":"533113860752561091979648376524424605565918986931275825188137857795294051741"}'