ciri-utils 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: caed03d7633bd1969a1c30077108174620796d2f33aadd2535abb61e2794dacf
4
- data.tar.gz: c099eb45fdeb30f8bc01083f5d55621c69397086736965c057558aef9e688d03
3
+ metadata.gz: dcf674e17ae845019599e1cb78c971519a1d0bc5381ad70c97afb795842c58f4
4
+ data.tar.gz: 6fd2cdf406c732e4980b943a04b5b35527d9437411810d9b3714b3a19f853a0e
5
5
  SHA512:
6
- metadata.gz: bf6a784ed8c0bb566f8abe7f506e9a1cde5aabaf460a8fcdb1c44e2f8e702666fc66f67e07f4fd6edeb476135058bc6c81277b5f50984624c953c03f276eb9b8
7
- data.tar.gz: 1698dad2effd4f3cb6aec338f318ce27a759b81df040004987d3567bc69cb1f877894c03112700e3ce8c3ed33675b4b63333b1e1ee630e475e0a033d9a99e5fe
6
+ metadata.gz: 243cc1641175b12a6e384eb832f9204d055133830df2bc56193f3e7eea5eb73f533426290b0023a352dfa91d1b06e1648a09d096f526fd9f2395f97fa93677f0
7
+ data.tar.gz: 1719f4ec7fae80eda574d56a71609791b58f9cb7d131303ae1e27fbfe171e7179937641368a27bb1a029f15a96945d146885e23e9600e75ee194d4329c2d21a5
@@ -1,5 +1,5 @@
1
1
  module Ciri
2
2
  module Utils
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
data/lib/ciri/utils.rb CHANGED
@@ -10,8 +10,8 @@ module Ciri
10
10
  include Utils::Number
11
11
 
12
12
 
13
- def sha3(*data)
14
- s = Digest::SHA3.new(256)
13
+ def keccak(*data, bits: 256)
14
+ s = Digest::SHA3.new(bits)
15
15
  data.each {|i| s.update(i)}
16
16
  s.digest
17
17
  end
@@ -78,6 +78,6 @@ module Ciri
78
78
 
79
79
  end
80
80
 
81
- BLANK_SHA3 = Utils.sha3(''.b).freeze
81
+ BLANK_SHA3 = Utils.keccak(''.b).freeze
82
82
  end
83
83
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ciri-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jiang Jinyang
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-01 00:00:00.000000000 Z
11
+ date: 2018-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: digest-sha3