Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Extract stateless functions into wallet library module" #251

Merged
merged 1 commit into from
Aug 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 19 additions & 40 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[workspace]
members = [
"bobtimus",
"coin_selection",
"estimate_transaction_size",
"extension/wallet",
]
4 changes: 2 additions & 2 deletions bobtimus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,11 @@ where
)?;

let oracle_secret_key = elements::secp256k1_zkp::key::ONE_KEY;
let oracle_priv_key = elements::bitcoin::PrivateKey::new(
let oralce_priv_key = elements::bitcoin::PrivateKey::new(
oracle_secret_key,
elements::bitcoin::Network::Regtest,
);
let oracle_pk = PublicKey::from_private_key(&self.secp, &oracle_priv_key);
let oracle_pk = PublicKey::from_private_key(&self.secp, &oralce_priv_key);

let timelock = days_to_unix_timestamp_timelock(loan_request.term, SystemTime::now())?;

Expand Down
11 changes: 11 additions & 0 deletions coin_selection/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[package]
name = "coin_selection"
version = "0.1.0"
authors = ["CoBloX Team <[email protected]>"]
edition = "2018"

[dependencies]
bdk = { version = "0.4", default-features = false }
elements = "0.18"
estimate_transaction_size = { path = "../estimate_transaction_size" }
thiserror = "1"
Loading