Last active
August 29, 2015 14:15
-
-
Save charleyhine/9287933294d1f0f5cdb6 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_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