Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 393 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 393 Bytes

Blockchain

Simple Blockchain written in Elixir. The chain is placed on a GenServer.

Run

iex -S mix

# Create a new Blockchain
iex> {:ok, pid} = Blockchain.Server.start_link 
# Insert  a new block with data
iex> Blockchain.Server.add(pid, "MESSAGE")
# Check the Blockchain
iex> Blockchain.Server.view(pid) 

Run Tests

mix test --trace