onchain 2.1.8 → 2.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/onchain/transaction.rb +1 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a657f3aa211c67988d8f269ee584a00d4fdeb3c
4
- data.tar.gz: 024cbf5cc030e1b579849ac9d6772d8b2fed97d8
3
+ metadata.gz: 13def319b1871620cb0d8be721eba8cbb2051557
4
+ data.tar.gz: 06a8733240267a1d66c521d27893789d13fdb33f
5
5
  SHA512:
6
- metadata.gz: 80f2dcdda7542e72f238141b83778b8380368b0e86e453e133b373f7d25f8eee1cbc5454621e81bd5edafd83597c92e8763186dada1cdfb4bbf4ebd97ffeaa52
7
- data.tar.gz: 91c143f290d7e5bd180a52b789fd00312de6812eaf8b9f3b83f5a03c7028cbc92092f5f40e4cbc95d69dbf7202e926958d01fafae7f7b244a9b45662d2832e36
6
+ metadata.gz: 4a03739d6786a8a2405385c77329b205002e931ff24ae8e18291baa60c5f063474752bdbb48c52c3227d78152b66bfdb9e6ec05d7ab0e123837a0574a7042c8f
7
+ data.tar.gz: cb7f048850f6361b2806ab8a34a5c920732413da4d498a3c693de3698f8a0cfa0b5db6e13835e5f77df2384330521645e9cc1afc7338bdae33713df8c787336e
@@ -235,8 +235,6 @@ class OnChain::Transaction
235
235
 
236
236
  tx.in.each_with_index do |txin, index|
237
237
 
238
- hash = OnChain.bin_to_hex(tx.signature_hash_for_input(index, txin.script, 1))
239
-
240
238
  sigs = []
241
239
 
242
240
  rscript = Bitcoin::Script.new txin.script
@@ -256,7 +254,7 @@ class OnChain::Transaction
256
254
  in_script = Bitcoin::Script.new txin.script
257
255
  if in_script.is_hash160?
258
256
  sig = sigs[0]
259
- txin.script = Bitcoin::Script.to_pubkey_script_sig(sig, OnChain.hex_to_bin(pubkey))
257
+ txin.script = Bitcoin::Script.to_pubkey_script_sig(sig, OnChain.hex_to_bin(pub_keys[0]))
260
258
  else
261
259
  txin.script = Bitcoin::Script.to_p2sh_multisig_script_sig(rscript.to_payload, sigs)
262
260
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onchain
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.8
4
+ version: 2.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Purton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-21 00:00:00.000000000 Z
11
+ date: 2015-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake