Created
February 18, 2015 18:19
-
-
Save charleyhine/36a7fe8a51ce305f5be6 to your computer and use it in GitHub Desktop.
This file contains 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 characters
btc_r_tx = Bitcoin::P::Tx.new(tx_data) | |
btc_r_key = Bitcoin::Key.from_base58(private_key) | |
hash = btc_r_tx.signature_hash_for_input(input_index, redeem_script) | |
btc_r_key.sign(hash) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment