eth 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/eth/key.rb +4 -0
  3. data/lib/eth/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31616ae94a3bcb7936694a979e1789f1e7cdb8be
4
- data.tar.gz: 71821aeabc7dbc4ff6add09b97a01e06a7c44338
3
+ metadata.gz: 3920e84b3cefbb7da9607e92c438654b016a7712
4
+ data.tar.gz: 751fa67b78a3082ae3b3afdb9f7ed0f135c7217c
5
5
  SHA512:
6
- metadata.gz: 3bcafe0df121ace5b627daa94890aa2822db9f2fb73b940b5774cf300ede5499a96ded2a6403c5134ab82e8ce31d39ca64bc408062a28f0f009af02c9679e6d8
7
- data.tar.gz: c4fa309b4924c2d21f402b2151d8dbf2170fe4791ddbdba0a6ca7a32a11325cc8e1f39b79692570beee84b8aece89a82c77eb6e492d9630f6f8c5033634ca5b9
6
+ metadata.gz: d967fb582e3d63a94a5fdca95eebffb8a0462e4e1a1aadab65e6df2cc11bd0e552d39f687b047a430dc24e204021aab0e3dd59eecb88c31b56843d6603e04ba9
7
+ data.tar.gz: d61baf72a91f9d7836609f0d50c030128202a40abf4e25092b5ff9d1c6f3ca3a8be1357621bbff0c8b62d5d1a953e0ef3a73bef3bdc5c409bb0773619d49c213
@@ -24,6 +24,10 @@ module Eth
24
24
  Utils.bin_to_hex(Utils.keccak256(public_bytes[1..-1])[-20..-1])
25
25
  end
26
26
 
27
+ def to_address
28
+ address
29
+ end
30
+
27
31
  def sign(message)
28
32
  sign_hash message_hash(message)
29
33
  end
@@ -1,3 +1,3 @@
1
1
  module Eth
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Ellis