This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: Unlicense | |
pragma solidity 0.8.10; | |
import "solmate/tokens/ERC20.sol"; | |
import "solmate/utils/SafeTransferLib.sol"; | |
import "ds-test/test.sol"; | |
contract MerkleTrust is DSTest { | |
using SafeTransferLib for ERC20; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.8; | |
contract MiMC { | |
uint constant FIELD_SIZE = 21888242871839275222246405745257275088548364400416034343698204186575808495617; | |
function MiMCSponge(uint256 xL, uint256 xR) public pure returns (uint256, uint256) { | |
uint exp; | |
uint t; | |
uint xR_tmp; | |
t = xL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "name", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "string" | |
} |