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

WIP - DLC and SCT #427

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
2 changes: 2 additions & 0 deletions bindings/cdk-js/src/nuts/nut10.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ impl From<Kind> for JsKind {
match inner {
Kind::P2PK => JsKind::P2PK,
Kind::HTLC => JsKind::HTLC,
Kind::DLC => todo!(),
Kind::SCT => todo!(),
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions crates/cdk-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@ reqwest = { version = "0.12", default-features = false, features = [
"socks",
]}
url = "2.3"
dlc-messages = { version = "0.5.0", features = ["use-serde"] }
lightning = "0.0.121"
schnorr_fun = { version = "0.9.2", features = ["bincode", "serde"] }
sha2 = "0.10.8"
dlc = "0.5.0"
5 changes: 5 additions & 0 deletions crates/cdk-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ enum Commands {
PayRequest(sub_commands::pay_request::PayRequestSubCommand),
/// Create Payment request
CreateRequest(sub_commands::create_request::CreateRequestSubCommand),
// Create and manage DLC offers
DLC(sub_commands::dlc::DLCSubCommand),
}

#[tokio::main]
Expand Down Expand Up @@ -219,5 +221,8 @@ async fn main() -> Result<()> {
Commands::CreateRequest(sub_command_args) => {
sub_commands::create_request::create_request(&multi_mint_wallet, sub_command_args).await
}
Commands::DLC(sub_command_args) => {
sub_commands::dlc::dlc(&multi_mint_wallet, sub_command_args).await
}
}
}
Loading