coin-address-validators 0.0.8 → 0.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f73bbd3f62b249dcc89e715efec732e1b363d7b2
4
- data.tar.gz: f961e2560f281098dbd7d73ac8ef3c86a662de64
3
+ metadata.gz: be268d5f5597596c7bf81a7e638d46dc4d84953b
4
+ data.tar.gz: 5b6e9de20cf5473682a9ea47452ded0433d0fcdb
5
5
  SHA512:
6
- metadata.gz: 553b95c7458d4fc5b6dea49e05a2ba1ea86bae35651da9c8bb781765e87c50d4b582dd598d1d18a9536f535b6c452d2316bea2ca59fc5f6e910139642d81c0ad
7
- data.tar.gz: cf7161cc2931f83e6039eec2fb25074e4e8a819d15da12217c41872b34a0a6446b7101f8ca08ecaeb72cbddecef971415fb21e752dc55c7a620748008fbd1c98
6
+ metadata.gz: add60feda23e782ef43277c0cb564ecb6bd301931445ae075bc30e711bda5c16ab4ce7c4ad80592f3ba9e374b4f9465ebae42065da26ef393ef6191631db662f
7
+ data.tar.gz: 762f57c3e2d8803f88b6330ae591553753147a917c8ec2594fcb1117bd3a8a3df53cfec4dbe668ef5072586f10f106db9e46ebe3fb697a6557ba9004feef9cee
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- coin-address-validators (0.0.8)
4
+ coin-address-validators (0.0.9)
5
5
  base58
6
6
  base_x
7
7
  bitcoin-ruby
@@ -105,6 +105,7 @@ class CoinAddressValidators
105
105
  def valid?(address)
106
106
  return false unless address.is_a?(String)
107
107
  return false unless address.size == 34
108
+ return false unless address.start_with?("T")
108
109
  addr = BaseX::BitcoinBase58.decode(address)
109
110
  return false unless addr.size == 25
110
111
  return false unless addr.unpack1("H*").start_with?("41")
@@ -1,3 +1,3 @@
1
1
  class CoinAddressValidators
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coin-address-validators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phuong Nguyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-23 00:00:00.000000000 Z
11
+ date: 2020-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bitcoin-ruby