Created
September 12, 2020 12:43
-
-
Save yatender-oktalk/71da55043d45a2996d0c41e0ac06ca2a to your computer and use it in GitHub Desktop.
blockchain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule ExChain.BlockChain.Block do | |
@moduledoc """ | |
This module is the single block struct in a blockchain | |
""" | |
defstruct ~w(timestamp last_hash hash data)a | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment