Skip to content

Commit d528401

Browse files
committed
chore: Update rust-simplicity
This update is exciting for Simfony because it brings pruning. However, we don't want to force the user to pass a tx environment to satisfy a Simfony program. Instead, the satisfied Simfony program can be pruned manually via RedeemNode::prune().
1 parent 5752dfc commit d528401

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pest = "2.1.3"
2727
pest_derive = "2.7.1"
2828
serde = { version = "1.0.188", features = ["derive"], optional = true }
2929
serde_json = { version = "1.0.105", optional = true }
30-
simplicity-lang = { git = "https://github.com/BlockstreamResearch/rust-simplicity", rev = "fbe88d6f703c2f3b74f52eb3eebf60411606ed42" }
30+
simplicity-lang = { git = "https://github.com/BlockstreamResearch/rust-simplicity", rev = "ca0c0ebee295937ab021ad018acc44a5aaa12649" }
3131
miniscript = "12.2.0"
3232
either = "1.12.0"
3333
itertools = "0.13.0"

bitcoind-tests/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ impl CompiledProgram {
137137
.is_consistent(&self.witness_types)
138138
.map_err(|e| e.to_string())?;
139139
let simplicity_witness = named::to_witness_node(&self.simplicity, witness_values);
140-
let simplicity_redeem = simplicity_witness.finalize().map_err(|e| e.to_string())?;
140+
let simplicity_redeem = simplicity_witness
141+
.finalize_unpruned()
142+
.map_err(|e| e.to_string())?;
141143
Ok(SatisfiedProgram {
142144
simplicity: simplicity_redeem,
143145
debug_symbols: self.debug_symbols.clone(),

0 commit comments

Comments
 (0)