Skip to content

Commit 45f5870

Browse files
committed
Merge #134: Update rust-simplicity dep and prepare for initial release
d9af242 change version to 0.2 (Andrew Poelstra) 8463a38 update simplicity to 0.5.0 (Andrew Poelstra) 3fc864e clippy: whitelist SimplicityHL in doc_markdown lint (Andrew Poelstra) Pull request description: No major changes (well, many changes since simfony 0.1 in April); but we are ready to release under the new name. Top commit has no ACKs. Tree-SHA512: ae89980232c08a6418c37c37adacf8fb814f2d88c05ce17153eb0b0ecb6f7321afad04e7095442e1efa34232389ffc2daeef4f6e535aeaf4493f495c496f4140
2 parents f61e711 + d9af242 commit 45f5870

File tree

6 files changed

+17
-20
lines changed

6 files changed

+17
-20
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
# 0.1.0 - 2025-04-10
1+
# 0.2.0 - 2025-07-29
22

3+
* Renamed from [Simfony](https://crates.io/crates/simfony)
34
* Initial release. Not recommended for production use.

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "simplicityhl"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
authors = ["sanket1729 <sanket1729@gmail.com>"]
55
license = "CC0-1.0"
66
homepage = "https://github.com/BlockstreamResearch/SimplicityHL"
@@ -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"

clippy.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
msrv = "1.78.0"
22
# We have an error type, `RichError`, of size 144. This is pushing it but probably fine.
33
large-error-threshold = 145
4+
5+
doc-valid-idents = [ "SimplicityHL" ]

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)