Skip to content

Commit 8463a38

Browse files
committed
update simplicity to 0.5.0
Amazingly no compile errors; just a couple deprecated-and-renamed functions. Also reduces the size of our dependency tree by getting rid of the old hex-conservative 0.1.
1 parent 3fc864e commit 8463a38

4 files changed

Lines changed: 11 additions & 17 deletions

File tree

Cargo.lock

Lines changed: 7 additions & 13 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
@@ -26,7 +26,7 @@ pest = "2.1.3"
2626
pest_derive = "2.7.1"
2727
serde = { version = "1.0.188", features = ["derive"], optional = true }
2828
serde_json = { version = "1.0.105", optional = true }
29-
simplicity-lang = { version = "0.4.0" }
29+
simplicity-lang = { version = "0.5.0" }
3030
miniscript = "12.3.1"
3131
either = "1.12.0"
3232
itertools = "0.13.0"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ mod tests {
405405
impl TestCase<SatisfiedProgram> {
406406
#[allow(dead_code)]
407407
pub fn print_encoding(self) -> Self {
408-
let (program_bytes, witness_bytes) = self.program.redeem().encode_to_vec();
408+
let (program_bytes, witness_bytes) = self.program.redeem().to_vec_with_witness();
409409
println!(
410410
"Program:\n{}",
411411
Base64Display::new(&program_bytes, &STANDARD)

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ fn run() -> Result<(), String> {
7979

8080
if let Some(witness) = witness_opt {
8181
let satisfied = compiled.satisfy(witness)?;
82-
let (program_bytes, witness_bytes) = satisfied.redeem().encode_to_vec();
82+
let (program_bytes, witness_bytes) = satisfied.redeem().to_vec_with_witness();
8383
println!(
8484
"Program:\n{}",
8585
Base64Display::new(&program_bytes, &STANDARD)
@@ -89,7 +89,7 @@ fn run() -> Result<(), String> {
8989
Base64Display::new(&witness_bytes, &STANDARD)
9090
);
9191
} else {
92-
let program_bytes = compiled.commit().encode_to_vec();
92+
let program_bytes = compiled.commit().to_vec_without_witness();
9393
println!(
9494
"Program:\n{}",
9595
Base64Display::new(&program_bytes, &STANDARD)

0 commit comments

Comments
 (0)