Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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