Home

Awesome

legochain

What is this?

This simple program implements a working blockchain class (based on block mining with a difficulty level) plus a very simple "peer to peer" protocol that enables two or more servers to talk to each other and send/receive their blockchains, based on TCP sockets.

This is a simple project with the following goals, either:

Goal A

To show newcomers to Common Lisp, an example of how to implement something not so simple but not too complex, like a blockchain, that would involve the use of:

The code is written with as many comments as possible, and is as clear as I can manage to. The aim was not performance, nor production-quality, but educational value.

You can start by taking a look at legochain.lisp and then to peertopeer.lisp

Goal B

Supported features

Peer to peer supported operations:

You can start many peers from your same machine so you can experiment adding more features to the code.

How to install (for newcomers to CL)

Author

Flavio Egoavil aka D e f u n k y d r u m m e r

License MIT

Hacking

I'm always open to pull requests that can make the code more readable or more educational!