Skip to content

Commit

Permalink
remove IappstateVerifier from signature verifier
Browse files Browse the repository at this point in the history
  • Loading branch information
RnkSngh committed Jan 15, 2025
1 parent c0f6325 commit 3458631
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions contracts/core/SequencerSignatureVerifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ pragma solidity 0.8.15;
import {RLPReader} from "optimism/libraries/rlp/RLPReader.sol";
import {ISignatureVerifier} from "../interfaces/ISignatureVerifier.sol";
import {ECDSA} from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import {AppStateVerifier} from "../base/AppStateVerifier.sol";

/**
* @title SequencerSignatureVerifier
* @notice Verifies ECDSA signatures from a sequencer for client updates. Is used by the SequencerSoloClient to verify
* signatures on client updates.
* @author Polymer Labs
*/
contract SequencerSignatureVerifier is AppStateVerifier, ISignatureVerifier {
contract SequencerSignatureVerifier is ISignatureVerifier {
using RLPReader for RLPReader.RLPItem;
using RLPReader for bytes;

Expand Down
4 changes: 1 addition & 3 deletions contracts/interfaces/ISignatureVerifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@
*/
pragma solidity ^0.8.0;

import {IAppStateVerifier} from "./IAppStateVerifier.sol";

/**
* @title ISignatureVerifier
* @author Polymer Labs
* @notice An interface that abstracts away proof verification logic for light clients
*/
interface ISignatureVerifier is IAppStateVerifier {
interface ISignatureVerifier {
error InvalidSequencerSignature();

function verifyStateUpdate(uint256 l2BlockNumber, bytes32 appHash, bytes32 l1BlockHash, bytes calldata signature)
Expand Down

0 comments on commit 3458631

Please sign in to comment.