Skip to content

Instantly share code, notes, and snippets.

View Magicking's full-sized avatar

Sylvain Laurent Magicking

View GitHub Profile
@Magicking
Magicking / coldminting.py
Created March 7, 2016 03:28
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
URL='https://www.reddit.com/r/neucoin/comments/3k57cx/beta_addresses/'
HDRS='' #removed
LST_DONE='lst_done.txt'
touch "$LST_DONE"
curl $HDRS -s "$URL" | grep -o 'N\w\{26,35\}' | sort | uniq | while read addr;
do
echo -n $addr | python check.py