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 OR Apache-2.0 | |
pragma solidity ^0.8.0; | |
import {IAdditionalSecurityModule} from "@routerprotocol/evm-gateway-contracts/contracts/IAdditionalSecurityModule.sol"; | |
import {ILightClient} from "../interfaces/ILightClient.sol"; | |
import {SSZ} from "../library/SimpleSerialize.sol"; | |
import {EventProof} from "../library/EventProof.sol"; | |
// https://devnet-docs.routerprotocol.com/develop/message-transfer-via-crosstalk/evm-guides/asm-implementation | |
contract ASM is IAdditionalSecurityModule { |
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
// keccak-hash = "0.10.0" | |
// num-bigint = "0.4.5" | |
#[cfg(test)] | |
mod tests { | |
use num_bigint::BigUint; | |
use keccak_hash::keccak; | |
#[derive(Clone, Debug)] | |
pub struct GnarkProof { | |
pub Ar: G1, |
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
use std::path::PathBuf; | |
use snark_verifier_sdk::{ | |
evm::gen_evm_proof_shplonk, | |
snark_verifier::{ | |
halo2_base::halo2_proofs::{ | |
halo2curves::bn256::{Bn256, Fr, G1Affine}, | |
plonk::ProvingKey, | |
poly::kzg::commitment::ParamsKZG, | |
}, |