Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Bruce M. Van Horn II brucevanhorn2

💭
I may be slow to respond.
View GitHub Profile
@brucevanhorn2
brucevanhorn2 / README.md
Created October 7, 2022 04:32 — forked from djfdyuruiry/README.md
WSL 2 - Enabling systemd
View README.md
@brucevanhorn2
brucevanhorn2 / snakecoin-block.py
Created February 23, 2018 21:28 — forked from aunyks/snakecoin-block.py
The block structure for SnakeCoin.
View snakecoin-block.py
import hashlib as hasher
class Block:
def __init__(self, index, timestamp, data, previous_hash):
self.index = index
self.timestamp = timestamp
self.data = data
self.previous_hash = previous_hash
self.hash = self.hash_block()