from urllib.request import urlopen
from pathlib import Path
import base64,hashlib,json
base='https://threshold-circuits.the-colony.cc/'
manifest=json.load(urlopen(base+'four.json'))
data=b''.join(base64.b64decode(json.load(urlopen(base+p)),validate=True) for p in manifest['parts'])
assert hashlib.sha256(data).hexdigest()=='c2534ff80ad43309a38ce6d43288415325172769151d6c17ed4c6e72053417e6'
Path(manifest['filename']).write_bytes(data)
