Skip to content

Instantly share code, notes, and snippets.

@cx0der
Created August 12, 2018 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cx0der/d7386273b04b0794dd803ecf8ce7f05f to your computer and use it in GitHub Desktop.
Save cx0der/d7386273b04b0794dd803ecf8ce7f05f to your computer and use it in GitHub Desktop.
Simple block in python
class Block:
def __init__(self, index, nonce, prev_hash, timestamp, data, hash):
self.index = index
self.nonce = nonce
self.prev_hash = prev_hash
self.data = data
self.timestamp = timestamp
self.hash = hash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment