onchain 2.1.8 → 2.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/onchain/transaction.rb +1 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 13def319b1871620cb0d8be721eba8cbb2051557
|
|
4
|
+
data.tar.gz: 06a8733240267a1d66c521d27893789d13fdb33f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4a03739d6786a8a2405385c77329b205002e931ff24ae8e18291baa60c5f063474752bdbb48c52c3227d78152b66bfdb9e6ec05d7ab0e123837a0574a7042c8f
|
|
7
|
+
data.tar.gz: cb7f048850f6361b2806ab8a34a5c920732413da4d498a3c693de3698f8a0cfa0b5db6e13835e5f77df2384330521645e9cc1afc7338bdae33713df8c787336e
|
data/lib/onchain/transaction.rb
CHANGED
|
@@ -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(
|
|
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.
|
|
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-
|
|
11
|
+
date: 2015-09-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|