Skip to content

Commit

Permalink
Add batchproof/lightclient namespaces. Add SequencerCommitment tx type
Browse files Browse the repository at this point in the history
  • Loading branch information
kpp committed Aug 15, 2024
1 parent 33c8342 commit 42bb65e
Show file tree
Hide file tree
Showing 9 changed files with 1,464 additions and 862 deletions.
8 changes: 5 additions & 3 deletions bin/citrea/src/rollup/bitcoin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use async_trait::async_trait;
use bitcoin_da::service::{BitcoinService, DaServiceConfig, TxidWrapper};
use bitcoin_da::spec::{BitcoinSpec, RollupParams};
use bitcoin_da::verifier::BitcoinVerifier;
use citrea_primitives::{DA_TX_ID_LEADING_ZEROS, ROLLUP_NAME};
use citrea_primitives::{REVEAL_BATCH_PROOF_PREFIX, REVEAL_LIGHT_CLIENT_PREFIX, ROLLUP_NAME};
use citrea_prover::prover_service::ParallelProverService;
use citrea_risc0_bonsai_adapter::host::Risc0BonsaiHost;
use citrea_risc0_bonsai_adapter::Digest;
Expand Down Expand Up @@ -117,7 +117,8 @@ impl RollupBlueprint for BitcoinRollup {
rollup_config.da.clone(),
RollupParams {
rollup_name: ROLLUP_NAME.to_string(),
reveal_wtxid_prefix: DA_TX_ID_LEADING_ZEROS.to_vec(),
reveal_light_client_prefix: REVEAL_LIGHT_CLIENT_PREFIX.to_vec(),
reveal_batch_prover_prefix: REVEAL_BATCH_PROOF_PREFIX.to_vec(),
},
tx,
)
Expand Down Expand Up @@ -146,7 +147,8 @@ impl RollupBlueprint for BitcoinRollup {

let da_verifier = BitcoinVerifier::new(RollupParams {
rollup_name: ROLLUP_NAME.to_string(),
reveal_wtxid_prefix: DA_TX_ID_LEADING_ZEROS.to_vec(),
reveal_light_client_prefix: REVEAL_LIGHT_CLIENT_PREFIX.to_vec(),
reveal_batch_prover_prefix: REVEAL_BATCH_PROOF_PREFIX.to_vec(),
});

ParallelProverService::new_with_default_workers(
Expand Down
Loading

0 comments on commit 42bb65e

Please sign in to comment.