Skip to content

provenant-dev/au-issuance-tool

Repository files navigation

How to run

Prerequisites

You'll need these installed:

  • Node v18, or higher
  • Typescript
  • Docker Compose (only needed for AU issuance)

Quick Start: Generate Non-Transferable Keypair

npm i
npx ts-node gen-non-transferable-keypair.ts

Output:

Salt (qb64):
AID (Public Key CESR):
Private Key (base64url):
Public Key (base64url):

Full Setup: Issue AUs (Requires KERIA + Witnesses)

Use this when you need to issue verifiable credentials (AUs) with full KERI infrastructure.

Get Keria & Witnesses Running

  • cp .env.example .env
  • mkdir -p storage/keria storage/witness-1 storage/witness-2 reports
  • sudo chown -R 1001:1001 storage/ reports/
  • docker compose up
  • Leave this running until you're finished entirely with next section.
  • When finished, hit Ctrl+C to exit.

At this point, you can run the next section as many times as needed to generate the au that are needed.

Issue One Or More Aus

  • Follow these steps in a different terminal.
  • npm i
  • ./issue-au.sh

Output

Result will appear in console:

$ ./issue-au.sh
Connect to the wallet
passcode=**************
AID=*****************************************
PRIVATE KEY=*****************************************
PUBLIC KEY=*****************************************
AU issued

How to debug in IDE

  • Uncomment line in .env that are for debugging in IDE
  • Use launch config in .vscode/launch.json and run debugger via IDE debug option

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6