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 circom 2.0.0; | |
include "./poseidon_constants.circom"; | |
template Sigma() { | |
signal input in; | |
signal output out; | |
signal in2; | |
signal in4; |
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
import "https://github.com/ensdomains/ens-contracts/blob/master/contracts/utils/NameEncoder.sol"; | |
import "hardhat/console.sol"; | |
test test 2 | |
abstract contract ENS { | |
function resolver(bytes32 node) public virtual view returns (Resolver); | |
} | |
abstract contract Resolver { | |
function addr(bytes32 node) public virtual view returns (address); |
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 circom 2.0.0; | |
include "./poseidon_constants.circom"; | |
template Sigma() { | |
signal input in; | |
signal output out; | |
signal in2; | |
signal in4; |
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: MIT | |
pragma solidity ^0.8.0; | |
// End consumer library. | |
library Client { | |
/// @dev RMN depends on this struct, if changing, please notify the RMN maintainers. | |
struct EVMTokenAmount { | |
address token; // token address on the local chain. | |
uint256 amount; // Amount of tokens. | |
} |
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
CIRCOM ZKP SEMAPHORE WORKSPACE | |
Welcome to the Remix Circom ZKP Hash Checker Workspace. | |
The workspace comprises two main directories: | |
- circuits: Contains sample hash checker circuit. These can be compiled to generate a witness using 'Circom ZKP Compiler' plugin. | |
- scripts: Provides a sample script designed for a trusted setup using snarkjs. This script also aids | |
in generating Solidity code, which is essential for on-chain deployment. |
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
/* | |
Copyright 2018 0KIMS association. | |
This file is part of circom (Zero Knowledge Circuit Compiler). | |
circom is a free software: you can redistribute it and/or modify it | |
under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. |
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
// NOTE: Install dependencies with `npm i axios form-data`. | |
const axios = require('axios'); | |
const FormData = require("form-data"); | |
const tar = require('tar'); | |
// NOTE: Provide your API key here. | |
const API_KEY = "qmZtKNT5swfCkkHVoZZ8N2HKv656jFXx"; | |
const API_VERSION = "v1"; | |
const API_URL = `https://forge.sindri.app/api/${API_VERSION}`; |
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
const api_key = "qmZtKNT5swfCkkHVoZZ8N2HKv656jFXx" | |
const API_VERSION = "v1" | |
const API_URL = `https://forge.sindri.app/api/${API_VERSION}/` | |
const api_key_querystring = `?api_key=${api_key}` | |
const headers_json = {"Accept": "application/json"} | |
const headers_multipart = {"Accept": "multipart/form-data"} | |
const headers_urlencode = { | |
"Accept": "application/json", |
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: GPL-2.0-or-later | |
pragma solidity >=0.5.0; | |
import './pool/IUniswapV3PoolImmutables.sol'; | |
import './pool/IUniswapV3PoolState.sol'; | |
import './pool/IUniswapV3PoolDerivedState.sol'; | |
import './pool/IUniswapV3PoolActions.sol'; | |
import './pool/IUniswapV3PoolOwnerActions.sol'; | |
import './pool/IUniswapV3PoolEvents.sol'; |
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: GPL-2.0-or-later | |
pragma solidity >=0.5.0; | |
import './pool/IUniswapV3PoolImmutables.sol'; | |
import './pool/IUniswapV3PoolState.sol'; | |
import './pool/IUniswapV3PoolDerivedState.sol'; | |
import './pool/IUniswapV3PoolActions.sol'; | |
import './pool/IUniswapV3PoolOwnerActions.sol'; | |
import './pool/IUniswapV3PoolEvents.sol'; |