@@ -66,7 +66,7 @@ import { IERC20Bridge } from './IERC20Bridge.sol';
6666import './DelayBuffer.sol ' ;
6767import {IEspressoTEEVerifier} from "espresso-tee-contracts/interface/IEspressoTEEVerifier.sol " ;
6868import {KeyManager} from "timeboost-contracts/KeyManager.sol " ;
69- import {MockKeyManager} from "timeboost-contracts/MockKeyManager.sol " ;
69+ import {MockKeyManager} from "timeboost-contracts/mocks/ MockKeyManager.sol " ;
7070/**
7171 * @title Accepts batches from the sequencer and adds them to the rollup inbox.
7272 * @notice Contains the inbox accumulator which is the ordering of all data and transactions to be processed by the rollup.
@@ -457,9 +457,9 @@ contract SequencerInbox is DelegateCallAware, GasRefundEnabled, ISequencerInbox
457457 newMessageCount
458458 )
459459 );
460- // verify the the reportDataHash was signed by the a registered ephemeral key
461- // generated inside a registered TEE
462- if (! timeboostKeyManager.verifyBatchSignatures (reportDataHash, signatures )) {
460+ // verify the the reportDataHash was signed by the batch posters
461+ bytes [] memory sigs = abi.decode (signatures, ( bytes []));
462+ if (! timeboostKeyManager.verifyQuorumSignatures (reportDataHash, sigs )) {
463463 revert ("invalid signatures " );
464464 }
465465 // signature from a registered ephemeral key generated inside TEE
@@ -514,8 +514,9 @@ contract SequencerInbox is DelegateCallAware, GasRefundEnabled, ISequencerInbox
514514 abi.encode (dataHashes)
515515 )
516516 );
517- // verify the quote for the batch poster running in the TEE
518- if (! timeboostKeyManager.verifyBatchSignatures (reportDataHash, signatures)) {
517+ // verify the the reportDataHash was signed by the batch posters
518+ bytes [] memory sigs = abi.decode (signatures, (bytes []));
519+ if (! timeboostKeyManager.verifyQuorumSignatures (reportDataHash, sigs)) {
519520 revert ("invalid signatures " );
520521 }
521522 emit TEESignatureVerified (sequenceNumber, newMessageCount);
@@ -740,7 +741,9 @@ contract SequencerInbox is DelegateCallAware, GasRefundEnabled, ISequencerInbox
740741 )
741742 );
742743
743- if (! timeboostKeyManager.verifyBatchSignatures (reportDataHash, signatures)) {
744+ // verify the the reportDataHash was signed by the batch posters
745+ bytes [] memory sigs = abi.decode (signatures, (bytes []));
746+ if (! timeboostKeyManager.verifyQuorumSignatures (reportDataHash, sigs)) {
744747 revert ("invalid signatures " );
745748 }
746749 // signature from a registered ephemeral key generated inside a registered TEE
0 commit comments