substrate_common.rb 0.1.8 → 0.1.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
  SHA256:
3
- metadata.gz: 317baa1b10674a1fdce795c67913b556ff2cab1d1dae471bc1c16d0274947828
4
- data.tar.gz: fc6fa173a44163c3747ecdb48f0cebae293b665ad294378e28f41cbe33ccfe44
3
+ metadata.gz: c2c77000375fd10703962cc0e070f32a35e71514fda4fc421eaac4099fcc6ad1
4
+ data.tar.gz: 839fff0d1889ab5f66975222f69fc58fc539213ba9c08fd19b40ff4a74aee295
5
5
  SHA512:
6
- metadata.gz: 13885cb4e69a7ac6be464f35108f68bf4f1dba3631d927851109fe81a4ba8537d0b870ade78f5d10bfbd0a88fbd57f6fd80ed2d92f924b36b66b5d88d4d9fe69
7
- data.tar.gz: 910eeb6a90d0f06605ac714771a95701b368ef5aa47b5861ca2f055e405a90f5086ae8506893b528988e229c8095ffd3e5369286365ee6be20c380226e8f72f8
6
+ metadata.gz: f4616a5678a531430a120489770173f69f94f050e7cc7a2d877d8a64e297c7d5717d046ebcd16a8d827ed0f3a7c40abee77f8b2dd75f84ade1807dbe344c2aa3
7
+ data.tar.gz: 49615b88fa20020011e91e8a504e85d8d52cf0695b11a12a877fd65662881a54e0dd8cdacfacabf4a14aee950ae4caef8d4aa8a91a98a4866dbd6e12cbe7445e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- substrate_common.rb (0.1.8)
4
+ substrate_common.rb (0.1.9)
5
5
  base58
6
6
  blake2b
7
7
  xxhash
@@ -69,17 +69,17 @@ module Crypto
69
69
  twox64(data) + bytes.bytes_to_hex[2..]
70
70
  end
71
71
 
72
- def self.black2_128(bytes)
72
+ def self.blake2_128(bytes)
73
73
  data = bytes.bytes_to_utf8
74
74
  Blake2b.hex data, Blake2b::Key.none, 16
75
75
  end
76
76
 
77
- def self.black2_256(bytes)
77
+ def self.blake2_256(bytes)
78
78
  data = bytes.bytes_to_utf8
79
79
  Blake2b.hex data, Blake2b::Key.none, 32
80
80
  end
81
81
 
82
82
  def self.blake2_128_concat(bytes)
83
- black2_128(bytes) + bytes.bytes_to_hex[2..]
83
+ blake2_128(bytes) + bytes.bytes_to_hex[2..]
84
84
  end
85
85
  end
@@ -1,3 +1,3 @@
1
1
  module SubstrateCommon
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: substrate_common.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wu Minzhe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-08 00:00:00.000000000 Z
11
+ date: 2020-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: blake2b