This project demonstrates how to sign and verify data using ECDSA (Elliptic Curve Digital Signature Algorithm) in Node.js with TypeScript.
Before you begin, ensure you have the following installed:
- Node.js (version 14.x or later)
- npm (version 6.x or later)
Install dependencies using npm:
npm install
To run the project in development mode with automatic rebuilds on file changes, use:
npm run dev
To build the project and run the compiled JavaScript code, use:
npm start
To run tests, first build the project, then run the tests:
npm test
eth_signer/
├── dist/ # Compiled TypeScript code
├── src/ # Source files
│ ├── dataTypes/
│ │ ├── interfaces.ts
│ ├── utils/
│ │ ├── keyGeneration.ts
│ │ ├── signing.ts
│ │ └── verification.ts
│ └── index.ts # Main application entry point
├── tests/ # Unit tests
│ └── signAndVerify.test.ts
├── .gitignore
├── package.json
├── README.md # Project documentation
└── tsconfig.json # TypeScript configuration