-
-
Save dw-io/5816143e091bc8cdcc4c to your computer and use it in GitHub Desktop.
Revisions
-
dw-io revised this gist
Mar 7, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -21,4 +21,4 @@ def make_cold(mint, spend): coldminting_addr, redeemscript = make_cold(mint,spend) print "The Cold Miniting Address is: %s" % coldminting_addr print "The redeemScript is: %s" % redeemscript -
dw-io revised this gist
Mar 7, 2016 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -19,8 +19,6 @@ def make_cold(mint, spend): spend = 'NbNKWKapLvHtk4GWWXQuccQrbSxpxmBbvP' #REPLACE WITH YOUR SPEND ADDRESS coldminting_addr, redeemscript = make_cold(mint,spend) print "The Cold Miniting Address is: %s" % coldminting_addr print "The redeemscript is: %s" % redeemscript -
dw-io revised this gist
Mar 7, 2016 . 1 changed file with 8 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -15,6 +15,12 @@ def make_cold(mint, spend): addr = pts.info('NEU')['address'] return addr, redeemscript mint = 'NWNwLaXhZbcJom6u97smZEKB38z8uACFQg' #REPLACE WITH YOUR MINT ADDRESS spend = 'NbNKWKapLvHtk4GWWXQuccQrbSxpxmBbvP' #REPLACE WITH YOUR SPEND ADDRESS coldminting_addr, redeemscript = make_cold(mint,spend) #coldminting_addr is nNy7UyPnJp3B4QUB1a7pAGP1tCtJze3btZ #redeemscript is 76a9c0631472caf23efb189034f583de35e0dbe5c26fe62a2d6714a985aa03d0e15d75b57fed8b863eb9f11f3fd5406888ac print "The Cold Miniting Address is: %s" % coldminting_addr print "The redeemscript is: %s" % redeemscript -
Magicking renamed this gist
Mar 7, 2016 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Magicking created this gist
Mar 7, 2016 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ #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) spend_b58 = a2b_hashed_base58(spend) compiled = tools.compile(script_coldminting % (b2h(mint_b58[1:]), b2h(spend_b58[1:]))) redeemscript = b2h(compiled) pts = ScriptPayToScript(hash160(compiled)) addr = pts.info('NEU')['address'] return addr, redeemscript coldminting_addr, redeemscript = make_cold('NWNwLaXhZbcJom6u97smZEKB38z8uACFQg', 'NbNKWKapLvHtk4GWWXQuccQrbSxpxmBbvP') #coldminting_addr is nNy7UyPnJp3B4QUB1a7pAGP1tCtJze3btZ #redeemscript is 76a9c0631472caf23efb189034f583de35e0dbe5c26fe62a2d6714a985aa03d0e15d75b57fed8b863eb9f11f3fd5406888ac