Skip to content

nhannvu19/poseidon_hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poseidon Hash

A Ruby implementation of ZK-SNARK friendly hash function Poseidon

Installation

Bundler

Add the gem to your Gemfile:

gem 'poseidon_hash'

Manual

Invoke the following command from your terminal:

gem install poseidon_hash

Usage

arity = 4
input = [1503630248886929420551238620595986459413104881269505529735919576753875242303, 4398046511124, 0, 0]

Poseidon::Hash.new.hash(input, arity)

Contributing

If you have problems or improvements, please create a GitHub Issue.

Thank you, contributors!

License

This code is free to use under the terms of the MIT license.

About

Ruby implementation of Poseidon hash function

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages