Very basic blockchain-like data structure for distributed systems course at DHBW Stuttgart
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/Blockchain
src
tests
.gitignore
LICENSE
README.md
Setup.hs
blockchain-johnazoidberg.cabal
default.nix
stack.yaml

README.md

Haskell Blockchain

A simple blockchain-like thing implemented in Haskell.

Running

Install cabal-install and if you want install nix, and launch nix-shell.

$ touch block.chain
$ cabal new-run blockchain block.chain
$ cabal new-run blockchain block.chain
$ cat block.chain
01;05.10.18-16:30:16;01;01;Foo;ca62d1a7b28eebd850cf0f5c4483cfef105ea51dc2d8c25e947b3c6ec718b7d7
01;05.10.18-16:30:17;01;01;Foo;8e25592f5f097b65a6b313ec0f2039121122d89067959dc1132e34d2d5ad0a5e

Test

cabal new-test

TODO

  • Convert every String to Text
  • Use ByteArray instead of Digest SHA256 in Entry