coin-address-validators 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/coin-address-validators.rb +1 -0
- data/lib/coin-address-validators/version.rb +1 -1
- 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: be268d5f5597596c7bf81a7e638d46dc4d84953b
|
4
|
+
data.tar.gz: 5b6e9de20cf5473682a9ea47452ded0433d0fcdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: add60feda23e782ef43277c0cb564ecb6bd301931445ae075bc30e711bda5c16ab4ce7c4ad80592f3ba9e374b4f9465ebae42065da26ef393ef6191631db662f
|
7
|
+
data.tar.gz: 762f57c3e2d8803f88b6330ae591553753147a917c8ec2594fcb1117bd3a8a3df53cfec4dbe668ef5072586f10f106db9e46ebe3fb697a6557ba9004feef9cee
|
data/Gemfile.lock
CHANGED
@@ -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")
|
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.
|
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-
|
11
|
+
date: 2020-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bitcoin-ruby
|