As of March 2018, Raspbian does not yet include the latest Python release, Python 3.6.8 This means we will have to build it ourselves, and here is how to do it.
- Install the required build-tools (some might already be installed on your system).
#!/usr/bin/env python3 | |
from math import sqrt | |
class Point: | |
def __init__(self,x_init,y_init): | |
self.x = x_init | |
self.y = y_init | |
def shift(self, x, y): |
#!/usr/bin/python | |
import hashlib, struct | |
# Mine genesis block | |
ver = 1 | |
prev_block = "0000000000000000000000000000000000000000000000000000000000000000" | |
mrkl_root = "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b" | |
time_ = 1231006505 | |
bits = 0x1d00ffff |