Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@charleyhine
Created February 18, 2015 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charleyhine/36a7fe8a51ce305f5be6 to your computer and use it in GitHub Desktop.
Save charleyhine/36a7fe8a51ce305f5be6 to your computer and use it in GitHub Desktop.
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