Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Johnston ChristopherJohnston

View GitHub Profile
@ChristopherJohnston
ChristopherJohnston / block.py
Created Dec 21, 2017
Example Blockchain hash calculations using Python
View block.py
from hashlib import sha256
import time
import struct
import binascii
import datetime
VERSION = 1
def hexify(value, type):
return binascii.hexlify(struct.Struct(type).pack(value))
View keybase.md

Keybase proof

I hereby claim:

  • I am christopherjohnston on github.
  • I am chris_johnston (https://keybase.io/chris_johnston) on keybase.
  • I have a public key whose fingerprint is B57F A904 610D 66B7 93DD 97F2 4135 3612 51E0 62E5

To claim this, I am signing this object: