This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: httpy-files | |
data: | |
server.py: | | |
import http.server | |
import os | |
import socket | |
import json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
######################## REQUIRED ENVIRONMENT VARIABLES ######################## | |
# FARMER_PUBKEY | |
# The farmer public key used to generate the plots. | |
# POOL_PUBKEY | |
# The pool public key used to generate the plots. | |
# SCRATCH_DIR | |
# An existing directory where plotters put their temp files. | |
# WRANING: Everything under this directory will be deleted. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
import os | |
import numpy as np | |
import galois | |
GF = galois.GF(2) | |
# This script works for any hash algorithm! | |
hash_algo = hashlib.sha256 |
OlderNewer