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

@galactica-corp/snap

v0.4.2

Published

A Metamask Snap for managing and using zkCertificates on the Galactica network.

Downloads

3

Readme

Galactica ZK Vault

The Galactica ZK Vault adds Galactica Network features to Metamask. It holds zero-knowledge certificates (zkCerts) in self custody and allows generating zero-knowledge proofs for selective disclosures. This provides compliance with maximum privacy.

The implementation can be found on GitHub.

Snaps are plugins for Metamask. Currently they are a pre-release feature only available in Metamask Flask.

More context on Galactica can be found here: https://galactica.com/

Features

  • Self custody for zero-knowledge certificates, such as zkKYC or other self sovereign identity (SSI) documents.
  • Generation of zero-knowledge proofs on your local machine for compliance, selective disclosures and reputation proofs.
  • Deriving a zero-knowledge compatible signing and encryption keys from a usual Metamask wallet.
  • Integration in the popular Metamask wallet for using Galactica Network just as any other EVM compatible blockchain.

Installation

  1. Install the Metamask Flask browser extension (Development version of Metamask): https://metamask.io/flask/
  2. Import the wallets you are going to use in Metamask.
  3. Go to any website that provides Galactica services, such as passport.galactica.com. TODO: confirm URL
  4. Connect to Metamask. This will check that you have the current Galactica Snap installed. It is identified with the name of this package on NPM npm:@galactica-corp/snap.
  5. If the Galactica Snap needs to be (re-)installed, Metamask will ask you to accept the permissions used by the Snap, similar to how app permissions work on Android and iOS.
  6. If it was not done by the website automatically, add the Galactica Network in Metamask with the following parameters: TODO

Getting started

As a user

Visit the Galactica Passport site TODO: confirm URL

It will guide you through the process of creating your first zkKYC. With it, you can prove and claim your Galactica citizenship on-chain.

In general, the following steps are performed by a user:

  1. Setup zkCert holder: Initializes the keys for holding zkCertificates from a signature by your Metamask wallet. It is required for efficient signing and encryption in zero-knowledge proof generation.
  2. Export holder commitment: Creates a commitment that you send to a zkCert provider for issuing a zkCert on-chain. It is used to tie the zkCert to your holder wallet without disclosing this connection to anyone.
  3. Import zkCertificate: After a provider has created and issued a zkCert for you, it can be imported in your wallet.
  4. Proof generation: To utilize a zkCert, the Galactica Snap can create various zero knowledge proofs. In the process, the Snap informs about the selective disclosures you are going to make publicly and generates the proof. This proof can then be sent by the front-end in a usual smart contract transaction through Metamask.

As a developer

To integrate the Galactica snap on a web front-end by using the snapId npm:@galactica-corp/snap in the requestSnaps call.

RPC functions specific to the Galactica Snap can be found in the JSON RPC API.

You can also take a look at the example front-end DApp located in packages/galactica-dapp.