๐Ÿ‘ฉโ€๐Ÿ’ป
Galactica Network Dev Documentation
  • ๐Ÿ“™Galactica Network Overview
  • ๐ŸงฌGalactica Concepts
    • โ›“๏ธBlockchain Base
    • ๐ŸงพZero-Knowledge KYC
      • Holder Commitment
      • DApp specific HumanID
      • Verification SBT
      • KYC Guardian
      • Galactica Investigation Module
      • Privacy Precautions
    • ๐ŸŒŸReputation
    • ๐Ÿ›‚Contingent Transactions
  • โš™๏ธGalactica Components
    • ๐ŸฆŠGalactica Snap for Metamask
    • ๐ŸŒณRoot Contracts
  • ๐Ÿ—๏ธBuilding a Galactica DApp
    • Example DApps
      • Compliant ERC20
      • Cypherbook
      • Compliant DEX
      • Sybil resistant airdrop
    • Front End
      • Guided Example
        • Connect to Galactica Snap
        • Prepare ZK proof generation
        • Generate and submit ZK proof
        • Handle Verification SBTs
      • Galactica Snap JSON-RPC API
    • Smart Contracts
    • Custom Zero Knowledge Disclosures
  • ๐Ÿ“Guardian Guide
    • Setup to become a Guardian
    • Create and issue ZK certificate
      • ๐ŸชชzkKYC (GIP-1)
      • Arbitrary ZK data certificate (GIP-2)
      • X/Twitter ZK certificate (GIP-3)
      • REY X/Twitter Score ZK certificate (GIP-4)
      • Decentralised Exchange (DEX) ZK certificate (GIP-5)
      • Centralised Exchange (CEX) ZK certificate (GIP-6)
      • Telegram ZK certificate (GIP-7)
  • โ›๏ธValidator Guide
    • ๐Ÿ”งInstallation
    • ๐Ÿ”—Become a Validator
    • ๐Ÿš€galacticad CLI Usage Cheat Sheet
    • ๐Ÿ”’Security Best Practices
  • ๐ŸงชTestNet: Reticulum
    • Release Notes
  • ๐ŸงชDevNet: Andromeda
    • Release Notes
  • ๐Ÿ“ŽChangelog
Powered by GitBook
On this page
  • Features
  • Installation
  • Getting started
  • As a user
  • As a developer

Was this helpful?

  1. Galactica Components

Galactica Snap for Metamask

Self custody for Galactica zkCertificates inside Metamask

PreviousGalactica ComponentsNextRoot Contracts

Last updated 11 months ago

Was this helpful?

The is a Snap 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 .

Snaps are plugins for Metamask. The Galactica ZK Vault has been audited by Sayfer and whitelisted by the Metamask team. It is now available for Metamask. (The development version is only needed for installing test versions.)

More context on Snaps in general can be found here:

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.

  1. Install the Metamask browser extension:

  2. Import the wallets you are going to use in Metamask.

  3. Go to or Galactica web application.

  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: .

  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:

Getting started

As a user

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

Visit the

See Front End and .

โš™๏ธ
๐ŸฆŠ
Galactica Passport site
GitHub
Galactica ZK Vault
GitHub
Metamask Flask
https://metamask.io/snaps/
Installation
https://metamask.io/
TestNet
DevNet
npm:@galactica-net/snap
#network-connection