JWWeatherman / how_to_store_bitcoin

A step by step guide to storing bitcoin
6 stars 3 forks source link

Sign raw tx #9

Open JWWeatherman opened 5 years ago

JWWeatherman commented 5 years ago

machine1$ bitcoin-cli -named signrawtransaction hexstring=$rawtxhex prevtxs='''[ { "txid": "'$utxo_txid'", "vout": '$utxo_vout', "scriptPubKey": "'$utxo_spk'", "redeemScript": "'$redeem_script'" } ]''' privkeys='["cMgb3KM8hPATCtgMKarKMiFesLft6eEw3DY6BB8d97fkeXeqQagw"]' {

willweatherman commented 5 years ago

take the redeem script from the QR code on paper

sign each of the trans with different priv keys using all at least once

send only a third of the initial balance and send the remainder back each time

JWWeatherman commented 5 years ago

bitcoin-cli -named signrawtransaction hexstring=$rawtxhex prevtxs='''[ { "txid": "'$utxo_txid'", "vout": '$utxo_vout', "scriptPubKey": "'$utxo_spk'", "redeemScript": "'$redeem_script'" } ]''' privkeys='["cMgb3KM8hPATCtgMKarKMiFesLft6eEw3DY6BB8d97fkeXeqQagw"]'