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.
* feat: two of three proving * feat: Add CombinedProducer * feat: Add TwoOfThree tier * linter fix * fix: define verifier flags for composite proof * getProvider for the TierProviderV2 * tire providers deployment for: devnet, testnet, composite * fix: add tier to provide base * guardian removed from the prover * fixed hanging CombinedProducer close(errorsChan) and added proofStates * lint * Allow empty blocks flag (#45) * feat: disable external pausing * feat: add allowEmptyBlocks flag in proposer * Fixed ProofStates map in combined producer * test getTiers * test fix * guardian = false for tx builder * feat: change l2-l1 sync interval to 1 block (#46) * feat: change l2-l1 sync interval to 1 block * fix: naming of composite tier * feat: remove access controls from verifiers * always init with empty block --------- Co-authored-by: Maciej Skrzypkowski <mskr@gmx.com> --------- Co-authored-by: AnshuJalan <anshujalan206@gmail.com> Co-authored-by: Franco Barpp Gomes <franco@nethermind.io> Co-authored-by: nmjustinchan <justin.chan@nethermind.io> Co-authored-by: Maciej Skrzypkowski <mskr@gmx.com> Co-authored-by: Justin Chan <147025745+nmjustinchan@users.noreply.github.com>
- Loading branch information
1 parent
d6706a2
commit e5000b0
Showing
32 changed files
with
597 additions
and
378 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
25 changes: 25 additions & 0 deletions
25
packages/protocol/contracts/layer1/verifiers/compose/TwoOfThreeVerifier.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,25 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.24; | ||
|
||
import "src/shared/common/LibStrings.sol"; | ||
import "./ComposeVerifier.sol"; | ||
|
||
/// @title TwoOfThreeVerifier | ||
/// @custom:security-contact security@taiko.xyz | ||
contract TwoOfThreeVerifier is ComposeVerifier { | ||
uint256[50] private __gap; | ||
|
||
/// @inheritdoc ComposeVerifier | ||
function getSubVerifiersAndThreshold() | ||
public | ||
view | ||
override | ||
returns (address[] memory verifiers_, uint256 numSubProofs_) | ||
{ | ||
verifiers_ = new address[](3); | ||
verifiers_[0] = resolve(LibStrings.B_TIER_ZKVM_RISC0, true); | ||
verifiers_[1] = resolve(LibStrings.B_TIER_ZKVM_SP1, true); | ||
verifiers_[2] = resolve(LibStrings.B_TIER_SGX, true); | ||
numSubProofs_ = 2; | ||
} | ||
} |
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
Oops, something went wrong.