Skip to content

Instantly share code, notes, and snippets.

View sam-irl's full-sized avatar
5 assignments overdue

sam-irl

5 assignments overdue
  • Norman, OK
View GitHub Profile
@sam-irl
sam-irl / snakecoin-server-full-code.py
Last active July 24, 2017 15:06 — forked from aunyks/snakecoin-server-full-code.py
The code in this gist isn't as succinct as I'd like it to be. Please bare with me and ask plenty of questions that you may have about it.
from flask import Flask
from flask import request
import json
import requests
import hashlib as hasher
import datetime as date
node = Flask(__name__)
# Define what a Snakecoin block is
class Block: