Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.8 KB

README.md

File metadata and controls

44 lines (29 loc) · 1.8 KB

ECDSA Node

This project is an example of using a client and server to facilitate transfers between different addresses using Public Key Cryptography and Elliptic Curve Digital Signatures.

Since there is just a single server on the back-end handling transfers, this is clearly very centralized. This is an experimental project and it SHOULD NOT be used in a production environment.

Through this project, the user can generate a valid Ethereum address (EIP55 format) and sign transactions from the frontend, which will be processed taking into account the signature generated from the private key and the security of never sharing it with the back-end.

If you want to go deeper into this area, you can follow this Ethereum Bootcamp.

Dev Requirements

Cryptography libraries

Client

The client folder contains a React 19 app using vite. To get started, follow these steps:

  1. Open up a terminal in the /client folder
  2. Run npm install to install all the dependencies
  3. Run npm run dev to start the application
  4. Now you should be able to visit the app at http://127.0.0.1:5173/

Server

The server folder contains a node.js server using Express 5. To run the server, follow these steps:

  1. Open a terminal within the /server folder
  2. Run npm install to install all the dependencies
  3. Run npm run setup:db to initialize the sqlite database.
  4. Run npm run dev to start the server

The application should connect to the default server port (3042) automatically.