For the purposes of this guide, thezkpass-sdk
repository is cloned into the home directory of the current user, retaining its default name. This places thezkpass-sdk
repository at ~/zkpass-sdk
. As a result, the root directory for the zkpass-client-ts SDK is set to ~/zkpass-sdk/typescript/node-js
.
Should you choose to clone the zkpass-sdk
repository into a different location, ensure that you adjust any referenced paths in the instructions to match your chosen directory structure.
This guide is divided into three main sections to help you navigate through the setup and usage of the zkpass-client-ts SDK:
Client SDK Setup
Directory: ~/zkpass-sdk/typescript/node-js/client
This section covers the setup and installation of the Client SDK. It includes detailed instructions on how to configure and run the client-side components of the zkpass-client-ts SDK.
CLI Demo Setup
Directory: ~/zkpass-sdk/typescript/node-js/cli
This section provides a step-by-step guide to setting up and running the Command Line Interface (CLI) demo. It explains how to configure the CLI environment and use the provided demo scripts to interact with the SDK.
Issuer-Verifier SDK Setup
Directory: ~/zkpass-sdk/typescript/node-js/issuer-verifier
This section details the setup process for the Issuer and Verifier components of the SDK. It includes instructions on how to install, configure, and use these components to perform verification tasks within the zkpass-client-ts SDK framework.
Each section contains specific instructions and examples to help you understand and implement the different parts of the zkpass-client-ts SDK. Make sure to follow the instructions in each section to ensure a smooth setup process.
For the purposes of this guide, thezkpass-sdk
repository is cloned into the home directory of the current user, retaining its default name. This places thezkpass-sdk
repository at ~/zkpass-sdk
. As a result, the root directory for the zkpass-client-ts SDK is set to ~/zkpass-sdk/typescript/node-js/issuer-verifier
.
Should you choose to clone the zkpass-sdk
repository into a different location, ensure that you adjust any referenced paths in the instructions to match your chosen directory structure.
To find out how the issuer-verifier SDK is structured, at the root of the zkPass SDK run the following:
The output should look like this:
Here are the descriptions for each sub directory:
node_modules
This contains all packages that are installed when running npm i
. These packages are needed to run the sdk and app.
src This is the main cli demo source code.
For the purposes of this guide, thezkpass-sdk
repository is cloned into the home directory of the current user, retaining its default name. This places thezkpass-sdk
repository at ~/zkpass-sdk
. As a result, the root directory for the zkpass-client-ts SDK is set to ~/zkpass-sdk/typescript/node-js/client
.
Should you choose to clone the zkpass-sdk
repository into a different location, ensure that you adjust any referenced paths in the instructions to match your chosen directory structure.
To find out how the client SDK is structured, at the root of the zkPass SDK run the following:
The output should look like this:
Here are the descriptions for each sub directory:
node_modules
This contains all packages that are installed when running npm i
. These packages are needed to run the sdk and app.
src This is the main cli demo source code.
For the purposes of this guide, thezkpass-sdk
repository is cloned into the home directory of the current user, retaining its default name. This places thezkpass-sdk
repository at ~/zkpass-sdk
. As a result, the root directory for the zkpass-client-ts SDK is set to ~/zkpass-sdk/typescript/node-js/cli
.
Should you choose to clone the zkpass-sdk
repository into a different location, ensure that you adjust any referenced paths in the instructions to match your chosen directory structure.
To find out how the SDK is structured, at the root of the zkPass SDK run the following:
The output should look like this:
Here are the descriptions for each sub directory:
src This is the main cli demo source code.
test/data This contains several test queries and their related user data in json encoding. You can use this test data when running the cli demo.