Skip to content

Commit

Permalink
feat(boojum): Add a flag to control which prover to use at diamond in…
Browse files Browse the repository at this point in the history
…it (#63)
  • Loading branch information
mm-zk authored Oct 5, 2023
1 parent 5601c9c commit 7576400
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions ethereum/src.ts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,18 @@ export class Deployer {
const genesisBatchHash = getHashFromEnv('CONTRACTS_GENESIS_ROOT'); // TODO: confusing name
const genesisIndexRepeatedStorageChanges = getNumberFromEnv('CONTRACTS_GENESIS_ROLLUP_LEAF_INDEX');
const genesisBatchCommitment = getHashFromEnv('CONTRACTS_GENESIS_BATCH_COMMITMENT');
const verifierParams = {
recursionNodeLevelVkHash: getHashFromEnv('CONTRACTS_RECURSION_NODE_LEVEL_VK_HASH'),
recursionLeafLevelVkHash: getHashFromEnv('CONTRACTS_RECURSION_LEAF_LEVEL_VK_HASH'),
recursionCircuitsSetVksHash: getHashFromEnv('CONTRACTS_RECURSION_CIRCUITS_SET_VKS_HASH')
};

let verifierParams = process.env['CONTRACTS_PROVER_AT_GENESIS'] == "fri" ?
{
recursionNodeLevelVkHash: getHashFromEnv('CONTRACTS_FRI_RECURSION_NODE_LEVEL_VK_HASH'),
recursionLeafLevelVkHash: getHashFromEnv('CONTRACTS_FRI_RECURSION_LEAF_LEVEL_VK_HASH'),
recursionCircuitsSetVksHash: "0x0000000000000000000000000000000000000000000000000000000000000000"
} :
{
recursionNodeLevelVkHash: getHashFromEnv('CONTRACTS_RECURSION_NODE_LEVEL_VK_HASH'),
recursionLeafLevelVkHash: getHashFromEnv('CONTRACTS_RECURSION_LEAF_LEVEL_VK_HASH'),
recursionCircuitsSetVksHash: getHashFromEnv('CONTRACTS_RECURSION_CIRCUITS_SET_VKS_HASH')
};
const priorityTxMaxGasLimit = getNumberFromEnv('CONTRACTS_PRIORITY_TX_MAX_GAS_LIMIT');
const DiamondInit = new Interface(hardhat.artifacts.readArtifactSync('DiamondInit').abi);

Expand Down

0 comments on commit 7576400

Please sign in to comment.