Skip to content

Commit

Permalink
chore: use new XprivAccount API
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Sep 1, 2024
1 parent 2294b3d commit 0e3e2dc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
15 changes: 5 additions & 10 deletions Cargo.lock

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

7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,10 @@ fs = ["serde"]
client-side-validation = ["bp-std/client-side-validation", "psbt/client-side-validation"]
strict-encoding = ["bp-std/strict_encoding", "psbt/strict_encoding"]
serde = ["serde_crate", "serde_yaml", "toml", "bp-std/serde", "psbt/serde", "descriptors/serde"]

[patch.crates-io]
bp-invoice = { git = "https://github.com/BP-WG/bp-std", branch = "store" }
bp-derive = { git = "https://github.com/BP-WG/bp-std", branch = "store" }
descriptors = { git = "https://github.com/BP-WG/bp-std", branch = "store" }
psbt = { git = "https://github.com/BP-WG/bp-std", branch = "store" }
bp-std = { git = "https://github.com/BP-WG/bp-std", branch = "store" }
2 changes: 1 addition & 1 deletion src/hot/seed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl Seed {
let account_xpriv = master_xpriv.derive_priv(&derivation);

let origin = XkeyOrigin::new(master_xpub.fingerprint(), derivation);
XprivAccount::new(account_xpriv, origin)
XprivAccount::new(account_xpriv, origin).expect("seed must always derive")
}
}

Expand Down

0 comments on commit 0e3e2dc

Please sign in to comment.