React frontend that communicates with a Node.js server responsible for transferring balances between addresses by creating digital signatures with the appropriate private keys and verifying them on the backend.
It uses the Ethereum Cryptography library, specifically the elliptic curve operations on the curve secp256k1.
Client (React, Vite, Tailwind CSS)
- Open the
/clientfolder from terminal. cat .env.example > .env- Run
pnpm installto install all the dependencies. - Run
pnpm devto start the application1. - Visit the application at http://127.0.0.1:5173/.
Server (Express)
-
Open the
/serverfolder from terminal. -
cat .env.example > .env -
Run
pnpm installto install all the dependencies. -
Get private key/address pairs by running
pnpm generateand copy them intoaccounts.config.jsonusing the JSON structure below:{ "address_1": { "label": "Account 1", "balance": 10, "privateKey": "privateKey_1" }, "address_2": { "label": "Account 2", "balance": 20, "privateKey": "privateKey_2" } } -
Run
pnpm devto start the server1.
