coin-op 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/coin-op/bit/multi_wallet.rb +2 -2
- data/lib/coin-op/bit/script.rb +3 -2
- data/lib/coin-op/version.rb +1 -1
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 482ce5f6a886789d878fe1deeb82331bb5f57bf0
|
4
|
+
data.tar.gz: 4236d35aa587afde392f84d27e49c82df2397ad4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5766d93ae76df0503e23403200d8ef76e266b9ba25de4e4ce8c94011634922457b3de9acff2776b4dc05048de7ee35e9723edd35244ff006056fe6791ce466e9
|
7
|
+
data.tar.gz: 2cc169b1b66b3b8823e89697da361aedaf389d1bb94977d9b9afcd91153d11463e32d3d0c3b2d848b1caed72774b51184d7b909641528f4c500149018e9525f0
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -145,7 +145,7 @@ module CoinOp::Bit
|
|
145
145
|
def valid_output?(output)
|
146
146
|
if path = output.metadata.wallet_path
|
147
147
|
node = self.path(path)
|
148
|
-
node.p2sh_script.to_s == output.script.to_s
|
148
|
+
node.p2sh_script.to_s == output.script.p2sh_script.to_s
|
149
149
|
else
|
150
150
|
true
|
151
151
|
end
|
@@ -259,7 +259,7 @@ module CoinOp::Bit
|
|
259
259
|
end
|
260
260
|
|
261
261
|
def p2sh_script
|
262
|
-
Script.new(:address => self.script.
|
262
|
+
Script.new(:address => self.script.p2sh_address, network: network)
|
263
263
|
end
|
264
264
|
|
265
265
|
def signatures(value, names:)
|
data/lib/coin-op/bit/script.rb
CHANGED
@@ -109,9 +109,10 @@ module CoinOp::Bit
|
|
109
109
|
# can probably be removed, as I think it is equivalent to
|
110
110
|
# Script.new :address => some.address
|
111
111
|
def p2sh_script
|
112
|
-
CoinOp.syncbit(@network[:name]) do
|
113
|
-
|
112
|
+
h160 = CoinOp.syncbit(@network[:name]) do
|
113
|
+
@native.get_hash160
|
114
114
|
end
|
115
|
+
self.class.new(blob: Bitcoin::Script.to_p2sh_script(h160), network: @network[:name])
|
115
116
|
end
|
116
117
|
|
117
118
|
def hash160
|
data/lib/coin-op/version.rb
CHANGED
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|