Skip to content

Commit

Permalink
Carry compression further down
Browse files Browse the repository at this point in the history
  • Loading branch information
yaziciahmet committed Aug 21, 2024
1 parent 775f21b commit 0485f25
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/bitcoin-da/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,6 @@ impl BitcoinService {
let da_private_key = self.da_private_key.expect("No private key set");

let mut blob = borsh::to_vec(da_data).expect("DaData must serialize");
if let DaData::ZKProof(_) = da_data {
blob = compress_blob(&blob);
}

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

match da_data {
DaData::ZKProof(_) => {
blob = compress_blob(&blob);
// create inscribe transactions
let inscription_txs = create_zkproof_transactions(
&rollup_name,
Expand Down

0 comments on commit 0485f25

Please sign in to comment.