Skip to content

Instantly share code, notes, and snippets.

@cx0der
Created August 12, 2018 12:21
Embed
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
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