Skip to content

Instantly share code, notes, and snippets.

@cx0der

cx0der/block.py

Created Aug 12, 2018
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
You can’t perform that action at this time.