diff --git a/Cargo.lock b/Cargo.lock index dd2992a..45992fe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -219,14 +219,14 @@ dependencies = [ "lazy_static", "proc-macro2", "quote", - "syn 2.0.91", + "syn 2.0.93", ] [[package]] name = "cc" -version = "1.2.5" +version = "1.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c31a0499c1dc64f458ad13872de75c0eb7e3fdb0e67964610c914b034fc5956e" +checksum = "8d6dbb628b8f8555f86d0323c2eb39e3ec81901f4b83e091db8a6a76d316a333" dependencies = [ "shlex", ] @@ -455,7 +455,7 @@ checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.91", + "syn 2.0.93", ] [[package]] @@ -691,7 +691,7 @@ checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ "proc-macro2", "quote", - "syn 2.0.91", + "syn 2.0.93", ] [[package]] @@ -944,7 +944,7 @@ dependencies = [ "quote", "serde", "serde_tokenstream", - "syn 2.0.91", + "syn 2.0.93", ] [[package]] @@ -958,7 +958,7 @@ dependencies = [ "quote", "serde", "serde_tokenstream", - "syn 2.0.91", + "syn 2.0.93", ] [[package]] @@ -1497,7 +1497,7 @@ dependencies = [ [[package]] name = "ic_cose_canister" -version = "0.5.3" +version = "0.5.4" dependencies = [ "candid", "ciborium", @@ -1518,7 +1518,7 @@ dependencies = [ [[package]] name = "ic_cose_types" -version = "0.5.3" +version = "0.5.4" dependencies = [ "aes-gcm", "candid", @@ -2010,7 +2010,7 @@ dependencies = [ "itertools 0.13.0", "proc-macro2", "quote", - "syn 2.0.91", + "syn 2.0.93", ] [[package]] @@ -2127,9 +2127,9 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.18" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e819f2bc632f285be6d7cd36e25940d45b2391dd6d9b939e79de557f7014248" +checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4" [[package]] name = "ryu" @@ -2171,9 +2171,9 @@ checksum = "3cb6eb87a131f756572d7fb904f6e7b68633f09cca868c5df1c4b8d1a694bbba" [[package]] name = "serde" -version = "1.0.216" +version = "1.0.217" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b9781016e935a97e8beecf0c933758c97a5520d32930e460142b4cd80c6338e" +checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70" dependencies = [ "serde_derive", ] @@ -2199,13 +2199,13 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.216" +version = "1.0.217" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46f859dbbf73865c6627ed570e78961cd3ac92407a2d117204c49232485da55e" +checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.91", + "syn 2.0.93", ] [[package]] @@ -2229,7 +2229,7 @@ dependencies = [ "proc-macro2", "quote", "serde", - "syn 2.0.91", + "syn 2.0.93", ] [[package]] @@ -2390,7 +2390,7 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.91", + "syn 2.0.93", ] [[package]] @@ -2412,9 +2412,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.91" +version = "2.0.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d53cbcb5a243bd33b7858b1d7f4aca2153490815872d86d955d6ea29f743c035" +checksum = "9c786062daee0d6db1132800e623df74274a0a87322d8e183338e01b3d98d058" dependencies = [ "proc-macro2", "quote", @@ -2438,7 +2438,7 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.91", + "syn 2.0.93", ] [[package]] @@ -2573,7 +2573,7 @@ dependencies = [ "log", "proc-macro2", "quote", - "syn 2.0.91", + "syn 2.0.93", "wasm-bindgen-shared", ] @@ -2595,7 +2595,7 @@ checksum = "30d7a95b763d3c45903ed6c81f156801839e5ee968bb07e534c44df0fcd330c2" dependencies = [ "proc-macro2", "quote", - "syn 2.0.91", + "syn 2.0.93", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -2724,7 +2724,7 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.91", + "syn 2.0.93", ] [[package]] @@ -2744,5 +2744,5 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.91", + "syn 2.0.93", ] diff --git a/Cargo.toml b/Cargo.toml index c974307..e7f82d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ strip = true opt-level = 's' [workspace.package] -version = "0.5.3" +version = "0.5.4" edition = "2021" repository = "https://github.com/ldclabs/ic-cose" keywords = ["config", "cbor", "canister", "icp", "encryption"] diff --git a/src/ic_cose_canister/ic_cose_canister.did b/src/ic_cose_canister/ic_cose_canister.did index fbb1af8..cdfd12c 100644 --- a/src/ic_cose_canister/ic_cose_canister.did +++ b/src/ic_cose_canister/ic_cose_canister.did @@ -128,6 +128,7 @@ type StateInfo = record { freezing_threshold : nat64; ecdsa_key_name : text; managers : vec principal; + governance_canister : opt principal; name : text; auditors : vec principal; schnorr_secp256k1_public_key : opt PublicKeyOutput; diff --git a/src/ic_cose_canister/src/store.rs b/src/ic_cose_canister/src/store.rs index b74ba50..8bfee0f 100644 --- a/src/ic_cose_canister/src/store.rs +++ b/src/ic_cose_canister/src/store.rs @@ -103,6 +103,7 @@ impl State { } else { None }, + governance_canister: self.governance_canister.clone(), } } } diff --git a/src/ic_cose_types/src/types/state.rs b/src/ic_cose_types/src/types/state.rs index d28b9e4..bd23f26 100644 --- a/src/ic_cose_types/src/types/state.rs +++ b/src/ic_cose_types/src/types/state.rs @@ -20,4 +20,5 @@ pub struct StateInfo { pub ecdsa_public_key: Option, pub schnorr_ed25519_public_key: Option, pub schnorr_secp256k1_public_key: Option, + pub governance_canister: Option, }