Mark Spanbroek d8a176930d Pad byte sequences with 0x1
To ensure unique field elements for sequences that
end with 0x0.
2023-11-13 11:46:45 +01:00
2023-11-13 11:46:45 +01:00
2023-11-13 11:46:45 +01:00
2023-10-26 09:52:28 +02:00
2023-10-26 09:52:28 +02:00
2023-10-26 09:52:28 +02:00

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
Poseidon2 hash function
Readme
Languages
Nim 100%