bitcoin-ruby 0.0.17 → 0.0.18
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/Gemfile.lock +1 -1
- data/lib/bitcoin/script.rb +1 -1
- data/lib/bitcoin/version.rb +1 -1
- data/spec/bitcoin/script/script_spec.rb +2 -0
- 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: b4f48a8cb6fda24adfe21240efb4da2f74d9528d
|
|
4
|
+
data.tar.gz: fe92c36e2756b66f9f676e7082ef8a7aac56fd44
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ead4745327db1385e88ef610de2518d692281f0750c767e8a08216328aaa198218e67420c4f96ee35df5393aa70b19dfc58aba2612fb840555ff3bcfcdabbf9a
|
|
7
|
+
data.tar.gz: 8bc95d49dcda8806d2e850e4060510518bf92c210f75a894f46646e4ec10368a957581cbadd859a814a4cdaa3f5ada1d120c5b2d96a93f0ccbd30d8060597bef
|
data/Gemfile.lock
CHANGED
data/lib/bitcoin/script.rb
CHANGED
|
@@ -734,7 +734,7 @@ class Bitcoin::Script
|
|
|
734
734
|
|
|
735
735
|
if is_witness_v0_keyhash? || is_witness_v0_scripthash?
|
|
736
736
|
program_hex = chunks[1].unpack("H*").first
|
|
737
|
-
return Bitcoin.encode_segwit_address(0, program_hex)
|
|
737
|
+
return [Bitcoin.encode_segwit_address(0, program_hex)]
|
|
738
738
|
end
|
|
739
739
|
|
|
740
740
|
[]
|
data/lib/bitcoin/version.rb
CHANGED
|
@@ -207,6 +207,8 @@ describe 'Bitcoin::Script' do
|
|
|
207
207
|
Script.new(SCRIPT[3]).get_addresses
|
|
208
208
|
.should == ["1JiaVc3N3U3CwwcLtzNX1Q4eYfeYxVjtuj",
|
|
209
209
|
"19Fm2gY7qDTXriNTEhFY2wjxbHna3Gvenk", "1B6k6g1d2L975i7beAbiBRxfBWhxomPxvy"]
|
|
210
|
+
Script.new(SCRIPT[7]).get_addresses.
|
|
211
|
+
should == ["bc1qrcs9z5wfpstyw5mr6ydhhrprtnmv0454y6laym"]
|
|
210
212
|
end
|
|
211
213
|
|
|
212
214
|
it "should get op_return data" do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bitcoin-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- lian
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-02-
|
|
11
|
+
date: 2018-02-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: This is a ruby library for interacting with the bitcoin protocol/network
|
|
14
14
|
email:
|