https://github.com/rajgoesout/mycoin
https://github.com/rajgoesout/mycoin
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rajgoesout/mycoin
- Owner: rajgoesout
- Created: 2021-10-07T10:27:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-07T13:52:17.000Z (over 3 years ago)
- Last Synced: 2025-05-04T21:18:00.128Z (20 days ago)
- Language: Rust
- Homepage: https://laughing-bell-6f7a59.netlify.app/mycoinlib
- Size: 11.7 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mycoin
A PoW blockchain client.
rustdoc: https://laughing-bell-6f7a59.netlify.app/mycoinlib
## Getting Started
### Compile the package
```sh
cargo build
```### Run the client
```sh
cargo run
```### Build documentation and view in browser
```sh
cargo doc --no-deps --release --open
```## High level workflow
We are primarily using two data structures: `Network` and `Blockchain`. `Network` keeps track of all the possible forks, maintains the chain state and a list of all blocks in the main chain (longest chain, whichever one has the highest PoW). Each instance of `Blockchain` essentially acts as a single chain (or fork) in a network.