https://github.com/ocdbytes/ecdsa-node-blockchain
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.
https://github.com/ocdbytes/ecdsa-node-blockchain
cryptography ethereum-cryptography javascript publickey-cryptosystem vitejs
Last synced: 11 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/ocdbytes/ecdsa-node-blockchain
- Owner: ocdbytes
- Created: 2022-12-24T18:29:13.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-24T18:32:13.000Z (about 3 years ago)
- Last Synced: 2024-04-14T10:46:07.850Z (almost 2 years ago)
- Topics: cryptography, ethereum-cryptography, javascript, publickey-cryptosystem, vitejs
- Language: JavaScript
- Homepage:
- Size: 43 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## ECDSA Node [-📦-]
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.
### Resources
NPM Docs
```
https://www.npmjs.com/package/ethereum-cryptography
```
Alchemy Univ Notes
```
https://aquatic-toothbrush-99b.notion.site/Alchemy-University-c15509f981a5478081818c119f809912
```
### 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://127.0.0.1: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
The application should connect to the default server port (3042) automatically!