Cdk ldk node (#904)

* feat: add LDK Node Lightning backend with comprehensive integration

- Add new cdk-ldk-node crate implementing Lightning backend using LDK Node
- Extend MintPayment trait with start/stop methods for processor lifecycle management
- Add LDK Node configuration support to cdk-mintd with chain source and gossip options
- Enhance mint startup/shutdown to properly manage payment processor lifecycle

---------

Co-authored-by: Erik <78821053+swedishfrenchpress@users.noreply.github.com>
This commit is contained in:
thesimplekid
2025-08-25 22:06:00 +01:00
committed by GitHub
parent 61411afde0
commit 9ab86fabfe
71 changed files with 7368 additions and 418 deletions

View File

@@ -37,6 +37,10 @@ impl From<CdkPaymentIdentifier> for PaymentIdentifier {
r#type: PaymentIdentifierType::CustomId.into(),
value: Some(payment_identifier::Value::Id(id)),
},
CdkPaymentIdentifier::PaymentId(hash) => Self {
r#type: PaymentIdentifierType::PaymentId.into(),
value: Some(payment_identifier::Value::Hash(hex::encode(hash))),
},
}
}
}

View File

@@ -46,6 +46,7 @@ enum PaymentIdentifierType {
LABEL = 2;
BOLT12_PAYMENT_HASH = 3;
CUSTOM_ID = 4;
PAYMENT_ID = 5;
}
message PaymentIdentifier {