A TypeScript project for key-based signing operations.
- Node.js (v14 or higher)
- npm (comes with Node.js)
-
Clone the repository
-
Install dependencies:
npm installTo compile TypeScript to JavaScript:
npm run buildThis will create a dist directory with the compiled JavaScript files.
After building, you can run the project with:
npm run startOr run it directly with:
node dist/index.jssrc/- Source TypeScript filesindex.ts- Main entry pointsignCreateCredChallenge.ts- Signing implementation for credential challengesignUserActionChallenge.ts- Signing implementation for user action challengekeyManager.ts- Key pair management
dist/- Compiled JavaScript files (created after build)
To modify the code:
- Edit the TypeScript files in the
srcdirectory - Rebuild the project with
npm run build - Run the updated code with
npm run start