Skip to content

Commit

Permalink
release v0.11.0-beta.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Dec 30, 2023
1 parent 1d7b508 commit 4c46acd
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 26 deletions.
26 changes: 15 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 6 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ default-members = [
]

[workspace.package]
version = "0.11.0-beta.2"
version = "0.11.0-beta.3"
authors = ["Dr Maxim Orlovsky <[email protected]>"]
homepage = "https://github.com/BP-WG"
repository = "https://github.com/BP-WG/bp-core"
Expand All @@ -23,13 +23,13 @@ license = "Apache-2.0"

[workspace.dependencies]
amplify = "4.5.0"
strict_encoding = "2.6.1"
strict_encoding = ">=2.6.2"
strict_types = "1.6.3"
commit_verify = "0.11.0-beta.2"
single_use_seals = "0.11.0-beta.2"
commit_verify = "0.11.0-beta.3"
single_use_seals = "0.11.0-beta.3"
bp-consensus = { version = "0.11.0-beta.3", path = "consensus" }
bp-dbc = { version = "0.11.0-beta.2", path = "./dbc" }
bp-seals = { version = "0.11.0-beta.2", path = "./seals" }
bp-dbc = { version = "0.11.0-beta.3", path = "./dbc" }
bp-seals = { version = "0.11.0-beta.3", path = "./seals" }
secp256k1 = { version = "0.28.0", features = ["global-context"] }
serde_crate = { package = "serde", version = "1", features = ["derive"] }

Expand Down Expand Up @@ -81,7 +81,3 @@ stl = ["strict_types", "strict_types/base64", "bp-consensus/stl", "commit_verify

[package.metadata.docs.rs]
features = [ "all" ]

[patch.crates-io]
strict_encoding = { git = "https://github.com/strict-types/strict-encoding", branch = "phantom" }
commit_verify = { git = "https://github.com/LNP-BP/client_side_validation", branch = "v0.11" }
3 changes: 1 addition & 2 deletions consensus/src/coding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ mod _serde {
})
} else {
let bytes = Vec::<u8>::deserialize(deserializer)?;
Self::try_from(bytes)
.map_err(|_| D::Error::custom("invalid script length exceeding 4GB"))
Ok(Self::from(bytes))
}
}
}
Expand Down
4 changes: 1 addition & 3 deletions consensus/src/segwit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,7 @@ impl Witness {
}

pub fn from_consensus_stack(witness: impl IntoIterator<Item = Vec<u8>>) -> Witness {
let iter = witness.into_iter().map(|vec| {
ByteStr::try_from(vec).expect("witness stack element length exceeds 2^32 bytes")
});
let iter = witness.into_iter().map(ByteStr::from);
let stack =
VarIntArray::try_from_iter(iter).expect("witness stack size exceeds 2^32 elements");
Witness(stack)
Expand Down

0 comments on commit 4c46acd

Please sign in to comment.