Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

animo/kyc-demo

Repository files navigation

Banking KYC Example

This project is a simple example of how to implement KYC for a financial platform using the EUDI PID credential.

Issuance and verification are handled through the Paradym API:

  • Issuance: create and issue an EUDI PID credential.
  • Verification: verify that credential through a presentation flow.

You can read more about the full flow here: https://docs.paradym.id/api-and-dashboard/example-project

Prerequisites

  • Node.js (v20+ LTS recommended)
  • pnpm
  • A Paradym account and project. Create your account here

Getting Started

  1. Install dependencies:

    pnpm install
  2. Copy the environment file:

    cp .env.example .env
  3. Fill in the PARADYM_API_KEY and PARADYM_PROJECT_ID in the .env file. Follow the Quickstart guide to generate your API key, and use this guide to locate your project ID here.

  4. Choose one setup path:

    A. Automatic setup (recommended): Run the setup script to automatically create the required templates in Paradym and populate IDs in .env:

    npx tsx --env-file=.env scripts/setup.ts
    # or 
    bun scripts/setup.ts

    B. Manual setup: Configure everything manually in the Paradym platform and add the required IDs yourself. Documentation: https://docs.paradym.id/api-and-dashboard/banking-kyc-example

  5. Start the app:

    pnpm dev

Environment Variables

Variable Description
PARADYM_API_KEY API key from Paradym. Use an existing key or create one in Paradym settings: https://paradym.id/app/settings/api-keys
PARADYM_PROJECT_ID The Paradym project where credential and presentation templates are created. Copy your project ID from the dashboard. If needed, see how to find it here: https://docs.paradym.id/api-and-dashboard/interacting-with-the-api#project-scope
PARADYM_PRESENTATION_TEMPLATE_ID Automatically populated when scripts/setup.ts runs. The script creates a presentation template and writes its ID to .env, which the app uses to create verification sessions. If you configure Paradym manually, add this value yourself.
PARADYM_CREDENTIAL_TEMPLATE_ID Automatically populated when scripts/setup.ts runs. The script creates a credential template and writes its ID to .env, which the app uses to issue an EUDI PID credential for the verification flow. If you configure Paradym manually, add this value yourself.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /