Skip to content

Commit

Permalink
Update Bitcoin crate (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph authored Jan 14, 2025
1 parent ba7b475 commit 9742415
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 43 deletions.
4 changes: 2 additions & 2 deletions Cargo-minimal.lock
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ dependencies = [

[[package]]
name = "bitcoin"
version = "0.32.4"
version = "0.32.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "788902099d47c8682efe6a7afb01c8d58b9794ba66c06affd81c3d6b560743eb"
checksum = "ce6bc65742dea50536e35ad42492b234c27904a27f0abdcbce605015cb4ea026"
dependencies = [
"base58ck",
"bech32",
Expand Down
4 changes: 2 additions & 2 deletions Cargo-recent.lock
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ dependencies = [

[[package]]
name = "bitcoin"
version = "0.32.4"
version = "0.32.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "788902099d47c8682efe6a7afb01c8d58b9794ba66c06affd81c3d6b560743eb"
checksum = "ce6bc65742dea50536e35ad42492b234c27904a27f0abdcbce605015cb4ea026"
dependencies = [
"base58ck",
"bech32",
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

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

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ default = []

[dependencies]
base64 = "0.22.1"
bitcoin = "0.32.4"
bitcoin = "0.32.5"
snafu = { version = "0.8.5", default-features = false, features = ["rust_1_61", "std"] }

[dev-dependencies]
hex = "0.4.3"
pretty_assertions = "1.4.1"
rand = "0.8.5"

6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ type Result<T = (), E = Error> = std::result::Result<T, E>;
mod tests {
use {super::*, pretty_assertions::assert_eq, rand::RngCore};

/// From https://github.com/bitcoin/bips/blob/master/bip-0322.mediawiki#test-vectors
/// and https://github.com/ACken2/bip322-js/blob/main/test/Verifier.test.ts
/// and https://github.com/bitcoin/bitcoin/blob/29b28d07fa958b89e1c7916fda5d8654474cf495/src/test/util_tests.cpp#L2747
// From https://github.com/bitcoin/bips/blob/master/bip-0322.mediawiki#test-vectors
// and https://github.com/ACken2/bip322-js/blob/main/test/Verifier.test.ts
// and https://github.com/bitcoin/bitcoin/blob/29b28d07fa958b89e1c7916fda5d8654474cf495/src/test/util_tests.cpp#L2747

const WIF_PRIVATE_KEY: &str = "L3VFeEujGtevx9w18HD1fhRbCH67Az2dpCymeRE1SoPK6XQtaN2k";
const SEGWIT_ADDRESS: &str = "bc1q9vza2e8x573nczrlzms0wvx3gsqjx7vavgkx0l";
Expand Down
79 changes: 48 additions & 31 deletions www/Cargo.lock

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

4 changes: 3 additions & 1 deletion www/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ crate-type = ["cdylib"]

[dependencies]
bip322 = { version = "0.0.9", path = "../" }
bitcoin = "0.32.4"
wasm-bindgen = "0.2.95"

[patch.crates-io]
bip322 = { path = '../' }

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(wasm_bindgen_unstable_test_coverage)'] }

0 comments on commit 9742415

Please sign in to comment.