Pedersen's hash function
This project provides a Rust implementation of Pedersen's Hash Function, a cryptographic hash function that maps fixed-size tuples of elements from modular arithmetic into elements of finite cyclic groups. Pedersen's hash function is widely used in zero-knowledge proofs, cryptographic protocols, and blockchain applications due to its properties of hiding inputs while maintaining commitments.
The implementation focuses on efficiency and security, allowing users to easily compute hash values for various inputs while ensuring the integrity and non-repudiation of the hashed data.
Table of Contents
Installation
To use this implementation, add the following dependency to your Cargo.toml
[dependencies] pedersen-hash = "0.1.0" # Replace with the latest version
Usage
TTo include this Pedersen hash function in your Rust project, add the following to your Cargo.toml
:
[]
= "0.1.0" # Replace with the latest version
```
pedersen_hash_function;
= 1;
= 2;
= 5;
= pedersen_hash_function(x ,y, 0, cyclic_group);
pedersen_hash,3);
```
## Contributing
```bash
-
Checkout to this branch:
-
Run the following command:
cargo run
License
This project is licensed under the MIT License.