Skip to content

Instantly share code, notes, and snippets.

Created August 12, 2018 12:21
What would you like to do?
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 = 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