poseidon_hash 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +43 -0
  3. metadata +9 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4058e205bc51c92d6d7e76227661fe1a5ad8c4a388f4cbeba5f0a1b7bc7340e5
4
- data.tar.gz: f1f6651cc02723fc053669b749320bb436413c1a60ab67d92f444cb0462be7bc
3
+ metadata.gz: 78580c14468314280e1714d556affdbafcf83123cac6bdc298dff663ee49da7b
4
+ data.tar.gz: aec0b190bdf7f14bb2df737737fb7cfd0a4db571db56c04c40e1de348d1b3f51
5
5
  SHA512:
6
- metadata.gz: 3224ee3b3c37055c42191aefddfd1ca939a393ae0426702165fc62370d627312a47616fd58ff499f012304a1c1d5fd3a46c13e9a455896ae1bc6bb8e3941b6aa
7
- data.tar.gz: afd9e4f0ed29e642bda02bb90ac355e292aa0cf2392ecd1f31b59ef0c579b286c84f0fc415c9fbf90b8a7a244f8395b2c7e163ef7979c2c73656d4b7d31f3696
6
+ metadata.gz: 42fa9322f75ab2c6c2fee58ddbdbf133ab2de3226abd66c51876e75cc7bdbae783af443837b0c4cdc64f392245e31ddd947fd70f3a99e7dc42912f41f2dae263
7
+ data.tar.gz: 2ce93beb7b54e1d57ca0462a6cb4745cf16f0498e91b01f52339e2d6e8620067c19fa2fc05a525e5f63cf5e36f3603dc898a94e3a6cdcd527cb1cb4ad7f3233c
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ Poseidon Hash
2
+ ========
3
+
4
+ A Ruby implementation of ZK-SNARK friendly hash function [Poseidon](https://www.poseidon-hash.info/)
5
+
6
+
7
+ Installation
8
+ ------------
9
+
10
+ ### Bundler
11
+
12
+ Add the gem to your Gemfile:
13
+
14
+ ```ruby
15
+ gem 'poseidon_hash'
16
+ ```
17
+
18
+ ### Manual
19
+
20
+ Invoke the following command from your terminal:
21
+
22
+ ```bash
23
+ gem install poseidon_hash
24
+ ```
25
+
26
+ ### Usage
27
+
28
+ ```ruby
29
+ arity = 4
30
+ input = [1503630248886929420551238620595986459413104881269505529735919576753875242303, 4398046511124, 0, 0]
31
+
32
+ Poseidon::Hash.new.hash(input, arity)
33
+ ```
34
+
35
+ ## Contributing
36
+
37
+ If you have problems or improvements, please create a [GitHub Issue](https://github.com/nhannvu19/poseidon_hash/issues).
38
+
39
+ Thank you, contributors!
40
+
41
+ ## License
42
+
43
+ This code is free to use under the terms of the MIT license.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poseidon_hash
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nhan Vu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-29 00:00:00.000000000 Z
11
+ date: 2023-07-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby implementation of Poseidon hash function
14
14
  email: nhannvu.19@gmail.com
@@ -16,13 +16,16 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
+ - README.md
19
20
  - lib/poseidon/constant.rb
20
21
  - lib/poseidon/hash.rb
21
22
  - lib/poseidon_hash.rb
22
- homepage: https://rubygems.org/gems/poseidon_hash
23
+ homepage: https://github.com/nhannvu19/poseidon_hash
23
24
  licenses:
24
25
  - MIT
25
- metadata: {}
26
+ metadata:
27
+ homepage_uri: https://github.com/nhannvu19/poseidon_hash
28
+ source_code_uri: https://github.com/nhannvu19/poseidon_hash
26
29
  post_install_message:
27
30
  rdoc_options: []
28
31
  require_paths:
@@ -31,14 +34,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
31
34
  requirements:
32
35
  - - ">="
33
36
  - !ruby/object:Gem::Version
34
- version: '0'
37
+ version: 2.1.0
35
38
  required_rubygems_version: !ruby/object:Gem::Requirement
36
39
  requirements:
37
40
  - - ">="
38
41
  - !ruby/object:Gem::Version
39
42
  version: '0'
40
43
  requirements: []
41
- rubygems_version: 3.2.33
44
+ rubygems_version: 3.0.9
42
45
  signing_key:
43
46
  specification_version: 4
44
47
  summary: Poseidon hash function