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
// eslint-disable-next-line @typescript-eslint/no-var-requires | |
const snarkjs = require('snarkjs'); | |
const logger = { | |
info: (...args) => console.log(...args), | |
debug: (...args) => console.log(...args) | |
}; | |
(async () => { | |
try { |
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
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
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
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
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. |