Skip to content

Commit 18b2112

Browse files
benthecarmanclaude
andcommitted
Update cdk to 0.16.0
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 735f94f commit 18b2112

2 files changed

Lines changed: 36 additions & 4 deletions

File tree

orange-sdk/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ rand = { version = "0.8.5", optional = true }
3131
breez-sdk-spark = { git = "https://github.com/breez/spark-sdk.git", rev = "0d8db793618a4f9eaf8098d759baefe58ea2da49", default-features = false, optional = true }
3232
tokio = { version = "1.0", default-features = false, features = ["rt-multi-thread", "sync", "macros"] }
3333
uuid = { version = "1.0", default-features = false, optional = true }
34-
cdk = { version = "0.15.1", default-features = false, features = ["wallet"], optional = true }
34+
cdk = { version = "0.16.0", default-features = false, features = ["wallet"], optional = true }
3535
serde_json = { version = "1.0", optional = true }
3636
async-trait = "0.1"
3737
log = "0.4.28"
3838

3939
corepc-node = { version = "0.10.1", features = ["29_0", "download"], optional = true }
4040
electrsd = { version = "0.36.1", default-features = false, features = ["esplora_a33e97e1", "corepc-node_29_0"], optional = true }
41-
cdk-ldk-node = { version = "0.15.1", optional = true }
42-
cdk-sqlite = { version = "0.15.1", optional = true }
43-
cdk-axum = { version = "0.15.1", optional = true }
41+
cdk-ldk-node = { version = "0.16.0", optional = true }
42+
cdk-sqlite = { version = "0.16.0", optional = true }
43+
cdk-axum = { version = "0.16.0", optional = true }
4444
axum = { version = "0.8.1", optional = true }
4545

4646
uniffi = { version = "0.29", default-features = false, features = ["cli"], optional = true }

orange-sdk/src/trusted_wallet/cashu/cashu_store.rs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,6 +1201,38 @@ impl WalletDatabase<cdk::cdk_database::Error> for CashuKvDatabase {
12011201
.await
12021202
.map_err(|e| DatabaseError::Io(e).into())
12031203
}
1204+
1205+
// P2PK signing keys are not used by orange-sdk. The stubs below trip a debug assert if
1206+
// anything (orange-sdk or cdk internals) ever exercises them, so we notice before silently
1207+
// losing key material; release builds keep the safe defaults.
1208+
async fn add_p2pk_key(
1209+
&self, _pubkey: &PublicKey, _derivation_path: ldk_node::bitcoin::bip32::DerivationPath,
1210+
_derivation_index: u32,
1211+
) -> Result<(), cdk::cdk_database::Error> {
1212+
debug_assert!(false, "orange-sdk does not support P2PK keys: add_p2pk_key called");
1213+
Ok(())
1214+
}
1215+
1216+
async fn get_p2pk_key(
1217+
&self, _pubkey: &PublicKey,
1218+
) -> Result<Option<cdk::wallet::types::P2PKSigningKey>, cdk::cdk_database::Error> {
1219+
debug_assert!(false, "orange-sdk does not support P2PK keys: get_p2pk_key called");
1220+
Ok(None)
1221+
}
1222+
1223+
async fn list_p2pk_keys(
1224+
&self,
1225+
) -> Result<Vec<cdk::wallet::types::P2PKSigningKey>, cdk::cdk_database::Error> {
1226+
debug_assert!(false, "orange-sdk does not support P2PK keys: list_p2pk_keys called");
1227+
Ok(Vec::new())
1228+
}
1229+
1230+
async fn latest_p2pk(
1231+
&self,
1232+
) -> Result<Option<cdk::wallet::types::P2PKSigningKey>, cdk::cdk_database::Error> {
1233+
debug_assert!(false, "orange-sdk does not support P2PK keys: latest_p2pk called");
1234+
Ok(None)
1235+
}
12041236
}
12051237

12061238
pub(super) async fn read_has_recovered(store: &Arc<dyn DynStore>) -> Result<bool, TrustedError> {

0 commit comments

Comments
 (0)