Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/issadarkthing/blockchain
Blockchain implementation for educational purposes
https://github.com/issadarkthing/blockchain
Last synced: 1 day ago
JSON representation
Blockchain implementation for educational purposes
- Host: GitHub
- URL: https://github.com/issadarkthing/blockchain
- Owner: issadarkthing
- License: gpl-3.0
- Created: 2021-11-14T09:08:21.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-11-14T13:52:11.000Z (about 1 year ago)
- Last Synced: 2024-04-17T19:14:14.822Z (7 months ago)
- Language: TypeScript
- Homepage:
- Size: 364 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Blockchain Reimplementation
This is a blockchain implementation that uses *proof of work* as it's consensus
algorithm. The p2p network has not been implemented yet and only work in local
machine but it already able to make transactions and blockchain verification.
This blockchain implementation also comes with repl, in which you can interact
with blockchain directly and inspect the internal values.## Wallets
The wallets are just rsa-4096 keys. It has been pre-generated inside
`./wallets.json` file.## REPL
This blockchain implementation has built-in repl, just run `yarn repl` to open
it.## Getting started
- `yarn install`
- `yarn build`
- `yarn start`You can start messing around with the blockchain system by modifying
`./index.ts`, there are also helper functions in `./functions.ts`. To execute
the main function inside `./index.ts`, just run `yarn start` in the terminal.## TODO
- add p2p network
- changing main wallet inside repl
- token circulation simulation