Skip to content

Commit

Permalink
Fix prover commitment serialization (#1031)
Browse files Browse the repository at this point in the history
* Convert to debug log

* Serialize DaData
  • Loading branch information
yaziciahmet authored Aug 21, 2024
1 parent a661777 commit 289cff7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions crates/bitcoin-da/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,15 +308,7 @@ impl BitcoinService {
let rollup_name = self.rollup_name.clone();
let da_private_key = self.da_private_key.expect("No private key set");

let blob = match da_data {
DaData::ZKProof(proof) => {
let blob = borsh::to_vec(&proof).expect("Should serialize");
compress_blob(&blob)
}
DaData::SequencerCommitment(commitment) => {
borsh::to_vec(&commitment).expect("Should serialize")
}
};
let blob = borsh::to_vec(da_data).expect("DaData serialize must not fail");

// get all available utxos
let utxos = self.get_utxos().await?;
Expand All @@ -331,6 +323,7 @@ impl BitcoinService {

match da_data {
DaData::ZKProof(_) => {
let blob = compress_blob(&blob);
// create inscribe transactions
let inscription_txs = create_zkproof_transactions(
&rollup_name,
Expand Down
2 changes: 1 addition & 1 deletion crates/prover/src/prover_service/parallel/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ where
&self,
da_service: &Arc<Self::DaService>,
) -> Result<Vec<(<Da as DaService>::TransactionId, Proof)>, anyhow::Error> {
tracing::info!("Checking if ongoing bonsai session exists");
tracing::debug!("Checking if ongoing bonsai session exists");

let vm = self.vm.clone();
let proofs = vm.recover_proving_sessions()?;
Expand Down

0 comments on commit 289cff7

Please sign in to comment.