mirror of
https://github.com/codex-storage/nim-poseidon2.git
synced 2025-02-23 00:08:05 +00:00
For two reasons: - to distinguish them from the marshalling functions from constantine - they do not follow the convention that something that is marshalled can be unmarshalled, because they take in 31 bytes but produce 32 bytes
Nim implementation of Poseidon2
Experimental implementation of the Poseidon 2 cryptographic hash function, specialized to BN254 and t=3. Uses the constantine library for cryptographic primitives. Neither completeness nor correctness are guaranteed at this moment in time.
Installation
Use the Nimble package manager to add poseidon2
to an existing
project. Add the following to its .nimble file:
requires "poseidon2 >= 0.1.0 & < 0.2.0"
Description
Languages
Nim
100%