Skip to content

Instantly share code, notes, and snippets.

@charleyhine
Last active August 29, 2015 14:15
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/9287933294d1f0f5cdb6 to your computer and use it in GitHub Desktop.
Save charleyhine/9287933294d1f0f5cdb6 to your computer and use it in GitHub Desktop.
btc_key = Bitcoin::Key.from_base58(get_path_pk(sig))
hash = @btc_r_tx.signature_hash_for_input(input['input_index'], input['redeem_script'])
signat = btc_key.sign(hash)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment