starknet-io / types-rs

🐺 Starknet Rust types 🦀
MIT License
66 stars 41 forks source link

feat: Add `Podeidon::hades_permutation` #58

Closed fmoletta closed 7 months ago

fmoletta commented 7 months ago

Pull Request type

Please add the labels corresponding to the type of changes your PR introduces:

What is the new behavior?

Implements method hades_permutation for Poseidon struct

Does this introduce a breaking change?

No

Other information

This change is needed to use this library's poseidon hash in cairo-vm's PoseidonBuiltinRunner as it uses the internal permutation function as opossed to using hash_many. (current usage)