Skip to content

Instantly share code, notes, and snippets.

@yatender-oktalk
Created September 12, 2020 12:43
Show Gist options
  • Save yatender-oktalk/71da55043d45a2996d0c41e0ac06ca2a to your computer and use it in GitHub Desktop.
Save yatender-oktalk/71da55043d45a2996d0c41e0ac06ca2a to your computer and use it in GitHub Desktop.
blockchain
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