From 3c7165f4c3e25fff1207857f0bbdd24aaf8a03f5 Mon Sep 17 00:00:00 2001 From: 0xZensh Date: Fri, 27 Dec 2024 12:25:17 +0800 Subject: [PATCH] fix: revert 'ecdh_cose_encrypted_key' alg for dMsg.net --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- src/ic_cose_canister/src/store.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b3dfefc..dd2992a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1497,7 +1497,7 @@ dependencies = [ [[package]] name = "ic_cose_canister" -version = "0.5.2" +version = "0.5.3" dependencies = [ "candid", "ciborium", @@ -1518,7 +1518,7 @@ dependencies = [ [[package]] name = "ic_cose_types" -version = "0.5.2" +version = "0.5.3" dependencies = [ "aes-gcm", "candid", diff --git a/Cargo.toml b/Cargo.toml index 0bbf565..c974307 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ strip = true opt-level = 's' [workspace.package] -version = "0.5.2" +version = "0.5.3" edition = "2021" repository = "https://github.com/ldclabs/ic-cose" keywords = ["config", "cbor", "canister", "icp", "encryption"] diff --git a/src/ic_cose_canister/src/store.rs b/src/ic_cose_canister/src/store.rs index 7df3fc0..7a756b2 100644 --- a/src/ic_cose_canister/src/store.rs +++ b/src/ic_cose_canister/src/store.rs @@ -883,9 +883,9 @@ pub mod ns { pub fn inner_derive_kek(spk: &SettingPathKey, key_id: &[u8]) -> Result<[u8; 32], String> { state::with(|s| { let pk = s - .schnorr_ed25519_public_key + .schnorr_secp256k1_public_key .as_ref() - .ok_or("no schnorr ed25519 public key")?; + .ok_or("no schnorr secp256k1 public key")?; let derivation_path = vec![ b"COSE_Symmetric_Key".to_vec(),