forked from taikoxyz/taiko-mono
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ProverRegistryVerifier & AttestationVerifier testcase (#36)
* add ProverRegistryVerifier & AttestationVerifier testcase * add more test * revert packages/protocol/contract_layout_layer1.md
- Loading branch information
1 parent
59d5e0f
commit c2f2787
Showing
10 changed files
with
376 additions
and
87 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
27 changes: 27 additions & 0 deletions
27
packages/protocol/test/layer1/automata-attestation/MockAutomataDcapAttestation.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
//SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.24; | ||
|
||
import { IAttestationV2 } from | ||
"../../../contracts/layer1/automata-attestation/interfaces/IAttestationV2.sol"; | ||
|
||
/// @title MockAutomataDcapAttestation | ||
contract MockAutomataDcapAttestation is IAttestationV2 { | ||
error FUNC_NOT_IMPLEMENTED(); | ||
|
||
function verifyAndAttestOnChain(bytes calldata input) | ||
external | ||
returns (bool success, bytes memory output) | ||
{ | ||
return (true, input); | ||
} | ||
|
||
function verifyAndAttestWithZKProof( | ||
bytes calldata journal, | ||
bytes calldata seal | ||
) | ||
external | ||
returns (bool success, bytes memory output) | ||
{ | ||
revert FUNC_NOT_IMPLEMENTED(); | ||
} | ||
} |
Oops, something went wrong.