mirror of
https://github.com/vacp2p/rln-contract.git
synced 2025-02-22 11:28:32 +00:00
19 lines
573 B
Solidity
19 lines
573 B
Solidity
// SPDX-License-Identifier: Unlicense
|
|
pragma solidity ^0.8.15;
|
|
|
|
import "poseidon-solidity/PoseidonT3.sol";
|
|
import "forge-std/Test.sol";
|
|
|
|
contract PoseidonHasherTest is Test {
|
|
/// @dev Setup the testing environment.
|
|
function setUp() public {}
|
|
|
|
/// @dev Ensure that you can hash a value.
|
|
function testHasher() public {
|
|
assertEq(
|
|
PoseidonT3.hash([19014214495641488759237505126948346942972912379615652741039992445865937985820, 0]),
|
|
13164376930590487041313497514223288845711140604177161029957349518915056324115
|
|
);
|
|
}
|
|
}
|