CryptKeeper is an open-source MIT-licensed browser extension which enables Zero-Knowledge identity management and proof generation. Currently it supports operations for Semaphore gadgets.
Please note that this extension is currently in beta testing. It may not have full functionality or stability. Your participation and feedback will greatly assist us in refining and enhancing the extension.
CryptKeeper is a browser extension that offers secure and private identity management and authentication solutions based on zero-knowledge proofs. The @cryptkeeperzk/providers package simplifies the integration of CryptKeeper functionality into applications by providing injected providers.
These injected providers allow applications to establish a connection with the CryptKeeper extension, enabling them to leverage its features and services. The package includes functions for initializing the CryptKeeper provider within the browser extension's InjectedScript and for connecting to CryptKeeper from an application.
- Identity Secret and Identity Commitment Generation: Generate Semaphore identity secrets and commitments securely.
 - Seamless Connection with Semaphore Identity: Connect seamlessly with your Semaphore identity when interacting with websites and online services.
 - Semaphore Zero-Knowledge Proof (ZK-Proof) Generation: Generate Zero-Knowledge Proofs using the Semaphore library. ZK-Proofs enable you to validate the authenticity of data and assertions without revealing any sensitive information. This feature enhances privacy and security in various cryptographic applications.
 - Rate-Limiting Nullifier (RLN) Zero-Knowledge Proof (ZK-Proof) Generation: Generate Zero-Knowledge Proofs using the RLN JS library. RLN is a zk-gadget/protocol that enables spam prevention in anonymous environments.
 
Proof generation in the Semaphore library can be enabled in two ways:
- Providing Merkle Witness Directly: You can generate a proof by directly providing the necessary Merkle witness. This allows you to use pre-computed witness data.
 - Using a Secure Service Address: by providing a secure service address from which the Merkle witness should be obtained
 
To set up the development environment, follow these steps:
pnpm installpnpm run dev- Load the 
distdirectory as an unpacked extension in your browser. 
To run the demo, follow these steps:
pnpm run devorpnpm run buildpnpm run merkle:startpnpm run demo:start
To run end-to-end tests, follow these steps:
- Run 
pnpx playwright install --with-deps chromiumto install playwright dependencies - Run 
pnpm installfor extension and for demo - Make sure you have 
.env.testfile withMETAMASK_EXTENSION_ID. METAMASK_EXTENSION_IDcan be found in log output forpnpm run e2e. For different environmentsMETAMASK_EXTENSION_IDis also different so we need to specify it explicitly.- Run 
pnpm run build:e2eto build the extension - Run 
pnpm run e2eto run playwright e2e tests 
