https://github.com/coindev1029/shinjiru
simple blockchain implementation in golang
https://github.com/coindev1029/shinjiru
blockchain blockchain-platform blockchain-technology blockchain-wallet go go-blockchai golang golange-blockchain web3
Last synced: 11 months ago
JSON representation
simple blockchain implementation in golang
- Host: GitHub
- URL: https://github.com/coindev1029/shinjiru
- Owner: Coindev1029
- License: mit
- Created: 2024-04-29T23:25:35.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-25T14:35:18.000Z (about 2 years ago)
- Last Synced: 2025-03-04T16:14:39.973Z (over 1 year ago)
- Topics: blockchain, blockchain-platform, blockchain-technology, blockchain-wallet, go, go-blockchai, golang, golange-blockchain, web3
- Language: Go
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Blockchain implementation in golang
## Features:
- `Low level badger db (uses leveldb under the hood)`
- `Using proof of work`
- `Merkle tree`
- `Cli tool`
- `Can be run using docker`
#### Const difficulty (10) :(
- You can use some difficulty algorithms to calculate the difficulty
## Project structure:
```go
shinjiru
│
├── blockchain
│ ├── blockchain.go
│ ├── block.go
│ ├── chain_iter.go
│ ├── merkle.go
│ ├── merkle_test.go
│ ├── proof.go
│ ├── transaction.go
│ ├── tx.go
│ └── utxo.go
├── cli
│ └── cli.go
├── cmd
│ └── main.go
├── Dockerfile
├── go.mod
├── go.sum
├── network
│ └── network.go
├── README.md
├── tmp
│ └── blocks
│ └── keep.txt
└── wallet
├── utils.go
├── wallet.go
└── wallets.go
```
## Installation
```sh
git clone https://github.com/kenjitheman/shinjiru
```
## Usage
```sh
cd cmd
go run main.go
```
- Or use Docker:
```sh
docker build -t your_image_name .
docker run -d -p 8080:80 your_image_name
```
## Contributing
- Pull requests are welcome, for major changes, please open an issue first to
discuss what you would like to change.
## License
- [MIT](./LICENSE)