Skip to content

Commit

Permalink
Revert "more"
Browse files Browse the repository at this point in the history
This reverts commit 8f78b1f.
  • Loading branch information
dantaik committed Jan 25, 2023
1 parent 8f78b1f commit 4fa80f0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/protocol/contracts/L1/ProofVerifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import "../thirdparty/LibMerkleTrie.sol";
/// @author dantaik <[email protected]>
interface IProofVerifier {
function verifyZKP(
string memory circuitId,
string memory verifierId,
bytes calldata zkproof,
bytes32 blockHash,
address prover,
Expand All @@ -34,15 +34,15 @@ contract ProofVerifier is IProofVerifier, EssentialContract {
}

function verifyZKP(
string memory circuitId,
string memory verifierId,
bytes calldata zkproof,
bytes32 blockHash,
address prover,
bytes32 txListHash
) external view returns (bool) {
return
LibZKP.verify({
plonkVerifier: resolve(circuitId, false),
plonkVerifier: resolve(verifierId, false),
zkproof: zkproof,
blockHash: blockHash,
prover: prover,
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L1/libs/LibProving.sol
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ library LibProving {
} else {
require(
proofVerifier.verifyZKP({
circuitId: string(
verifierId: string(
abi.encodePacked("plonk_verifier_", i)
),
zkproof: evidence.proofs[i],
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/contracts/test/L1/TestTaikoL1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ contract TestTaikoL1 is TaikoL1, IProofVerifier {
}

function verifyZKP(
string memory /*circuitId*/,
string memory /*verifierId*/,
bytes calldata /*zkproof*/,
bytes32 /*blockHash*/,
address /*prover*/,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ contract TestTaikoL1EnableTokenomics is TaikoL1, IProofVerifier {
}

function verifyZKP(
string memory /*circuitId*/,
string memory /*verifierId*/,
bytes calldata /*zkproof*/,
bytes32 /*blockHash*/,
address /*prover*/,
Expand Down

0 comments on commit 4fa80f0

Please sign in to comment.