Skip to content

Instantly share code, notes, and snippets.

@dw-io
dw-io / coldminting.py
Last active March 7, 2016 16:25 — forked from Magicking/coldminting.py
Coldminting redeemscript generation
#using pycoin from https://github.com/NeuCoin/pycoin
from pycoin.tx.script import tools
from pycoin.encoding import a2b_hashed_base58, hash160
from pycoin.serialize import b2h
from pycoin.tx.pay_to import ScriptPayToScript
def make_cold(mint, spend):
script_coldminting = 'OP_DUP OP_HASH160 OP_MINT OP_IF %s OP_ELSE %s OP_ENDIF OP_EQUALVERIFY OP_CHECKSIG'
mint_b58 = a2b_hashed_base58(mint)
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'