web3ethereum 1.1.0 → 1.2.0

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
  SHA256:
3
- metadata.gz: dfb773074a7b9c82ec087c2f8df604433e71b43b303e32ea9f602e2bd290410c
4
- data.tar.gz: 601dc1cf19b6ed7a02be3fea25d3608e16c973fd4ab7c62a2e3d846f09d490a7
3
+ metadata.gz: 8405a26b82c8119e31f928c3804be7de58552c51e444763b47210f91663062d7
4
+ data.tar.gz: 2d9fd1d0f6eb165a09a906ffb166dd889c49e497a75df843ea88c5245c1d2ac0
5
5
  SHA512:
6
- metadata.gz: 52cc84c2a44a218579f9c3a0ec5cb992239b8b49db1110232a19d362daf9fc7e2d9460eb860919346a17d21f4cd048d3c4d6febbd2f234ef24da9e0b0573f91d
7
- data.tar.gz: c06ffba0c2f943a0b5b18d55e30219ca28d776d51a2760662bca1fb94cab955847d89c8d8bd066fff3ac39fe56f7395c1b60ef15294c5f3ee0c9bfa6eb11da39
6
+ metadata.gz: 03fa9d42fb65d8d6e3ad231b32607c7fa2c58c0f00829a1cf6580f83b4d1c32d02a791a4cbbd3f9ae064de0cc9d6370e50ce51b4e794426c464d65b40c3654c8
7
+ data.tar.gz: 7e953fb19428b8b92b087bc7664bf4fac459411c170963f8694a329ef1c745ebd845b51dfd5256339a735141f9610fca64f87d735df33bc0195843bff118c8e8
data/lib/.DS_Store CHANGED
Binary file
Binary file
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'digest'
4
4
  require 'digest/sha3'
5
+ require 'sha3'
5
6
  require 'openssl'
6
7
  require 'rlp'
7
8
 
@@ -16,11 +17,11 @@ module Web3::Eth::Abi
16
17
  # Not the keccak in sha3, although it's underlying lib named SHA3
17
18
  #
18
19
  def keccak256(x)
19
- Digest::SHA3.new(256).digest(x)
20
+ SHA3::Digest.new(256).digest(x)
20
21
  end
21
22
 
22
23
  def keccak512(x)
23
- Digest::SHA3.new(512).digest(x)
24
+ SHA3::Digest.new(512).digest(x)
24
25
  end
25
26
 
26
27
  def keccak256_rlp(x)
@@ -28,7 +29,7 @@ module Web3::Eth::Abi
28
29
  end
29
30
 
30
31
  def sha256(x)
31
- Digest::SHA256.digest x
32
+ SHA3::Digest.digest x
32
33
  end
33
34
 
34
35
  def double_sha256(x)
@@ -1,5 +1,5 @@
1
1
  module Web3
2
2
  module Eth
3
- VERSION = "1.1.0"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web3ethereum
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Binns
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.0.2
41
+ - !ruby/object:Gem::Dependency
42
+ name: sha3
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.0.2
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.0.2
41
55
  description: Connect with a local or remote node to interact with the Ethereum network
42
56
  in your Ruby or Rails apps.
43
57
  email: