mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-20 14:14:49 +01:00
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:
@@ -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))),
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,6 +46,7 @@ enum PaymentIdentifierType {
|
||||
LABEL = 2;
|
||||
BOLT12_PAYMENT_HASH = 3;
|
||||
CUSTOM_ID = 4;
|
||||
PAYMENT_ID = 5;
|
||||
}
|
||||
|
||||
message PaymentIdentifier {
|
||||
|
||||
Reference in New Issue
Block a user