sungjk
s-blockchain
Scala

💰Minimal blockchain implementation using Scala with Netty

Last updated Oct 3, 2023
66
Stars
4
Forks
1
Issues
0
Stars/day
Attention Score
28
Language breakdown
Scala 100.0%
Files click to expand
README

s-blockchain

Build Status

Minimal and Simple blockchain implementation in Scala with Netty

API Endpoint Reference

| METHOD | ENDPOINT | USAGE | DESCRIPTION | |--------|----------|-------|-------------| | GET | /mine | mine by running proof of work mining to validate new blocks | | GET | /chain | return the chain stored in the current node | | GET | /nodes | get the list of nodes participating in the mining | | POST | /messages/new | add a new message to the current node | | POST | /nodes/join | join the block chain |

Getting Started

$ sbt "project app" run

Prerequisites

  • Make sure you have Scala installed:
shell
$ brew install scala</code></pre>

Or visit http://www.scala-lang.org/download/ for alternative ways.

  • Install Scala Build Tool:
$ brew install sbt

Or visit http://www.scala-sbt.org/download.html to see more.

Built With

  • Netty - Binds the core library to a Netty channel handler and provides an embedded server.
  • json4s - Provides extractors for working with jsonp and transforming json request bodies.

Authors

Jeremy Kim - Initial work* - sungjk

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

© 2026 GitRepoTrend · sungjk/s-blockchain · Updated daily from GitHub