https://github.com/chetanxpro/public-key-cryptography
This is a basic project to show how public key cryptography work By using Elliptic Curve Digital Signatures
https://github.com/chetanxpro/public-key-cryptography
cryptography ecdsa-cryptography ethereum
Last synced: about 1 year ago
JSON representation
This is a basic project to show how public key cryptography work By using Elliptic Curve Digital Signatures
- Host: GitHub
- URL: https://github.com/chetanxpro/public-key-cryptography
- Owner: ChetanXpro
- Created: 2023-01-01T08:49:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-03T17:32:13.000Z (almost 3 years ago)
- Last Synced: 2025-03-26T13:11:09.141Z (about 1 year ago)
- Topics: cryptography, ecdsa-cryptography, ethereum
- Language: JavaScript
- Homepage:
- Size: 47.9 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## ECDSA Node
### public-key cryptography
cryptography based on two keys: one public key, one private key. This allows the use of digital signatures, triggering a variety of use cases. For one, a user can cryptographically sign a message and send it to others. Anyone will be able to verify the integrity and sender of the message, all without revealing the sender's private key. ECDSA is an algorithm that is based on public-key cryptography.
This project is an example of using a client and server to facilitate transfers between different addresses. Since there is just a single server on the back-end handling transfers, this is clearly very centralized. We won't worry about distributed consensus for this project.
However, something that we would like to incoporate is Public Key Cryptography. By using Elliptic Curve Digital Signatures we can make it so the server only allows transfers that have been signed for by the person who owns the associated address.
### Client
The client folder contains a [react app](https://reactjs.org/) using [vite](https://vitejs.dev/). To get started, follow these steps:
1. Open up a terminal in the `/client` folder
2. Run `npm install` to install all the depedencies
3. Run `npm run dev` to start the application
4. Now you should be able to visit the app at http://localhost:5173/
### Server
The server folder contains a node.js server using [express](https://expressjs.com/). To run the server, follow these steps:
1. Open a terminal within the `/server` folder
2. Run `npm install` to install all the depedencies
3. Run `node index` to start the server