From 2a7f67cd23f7e62ff0616f103e15653e24a64fbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lloren=C3=A7?= Date: Thu, 21 Nov 2024 10:25:49 +0100 Subject: [PATCH] chore(backend): Upgrade ic-verifiable-credentials crate --- Cargo.lock | 1386 +++++------------------- Cargo.toml | 2 +- src/backend/src/config.rs | 3 +- src/backend/src/lib.rs | 3 +- src/backend/tests/it/utils/mock.rs | 7 +- src/backend/tests/it/utils/pocketic.rs | 3 +- 6 files changed, 260 insertions(+), 1144 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 112f77ef6f..060dc655c5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -26,21 +26,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "android-tzdata" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" - -[[package]] -name = "android_system_properties" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" -dependencies = [ - "libc", -] - [[package]] name = "ansi_term" version = "0.12.1" @@ -74,12 +59,6 @@ version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" -[[package]] -name = "assert_matches" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9" - [[package]] name = "async-trait" version = "0.1.79" @@ -119,6 +98,15 @@ dependencies = [ "syn 2.0.85", ] +[[package]] +name = "autocfg" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0dde43e75fd43e8a1bf86103336bc699aa8d17ad1be60c76c0bdfd4828e19b78" +dependencies = [ + "autocfg 1.2.0", +] + [[package]] name = "autocfg" version = "1.2.0" @@ -133,14 +121,14 @@ dependencies = [ "candid", "ethers-core", "futures", - "getrandom 0.2.15", + "getrandom", "hex", "ic-cdk 0.16.0", "ic-cdk-macros 0.16.0", "ic-cdk-timers", "ic-cycles-ledger-client", "ic-ledger-types", - "ic-stable-structures 0.6.6", + "ic-stable-structures", "ic-verifiable-credentials", "k256", "lazy_static", @@ -178,12 +166,6 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" -[[package]] -name = "base32" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23ce669cd6c8588f79e15cf450314f9638f967fc5770ff1c7c1deb0925ea7cfa" - [[package]] name = "base58ck" version = "0.1.0" @@ -218,15 +200,6 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d965446196e3b7decd44aa7ee49e31d630118f90ef12f97900f262eb915c951d" -[[package]] -name = "bincode" -version = "1.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" -dependencies = [ - "serde", -] - [[package]] name = "binread" version = "2.2.0" @@ -340,11 +313,25 @@ dependencies = [ "generic-array", ] +[[package]] +name = "bls12_381" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3c196a77437e7cc2fb515ce413a6401291578b5afc8ecb29a3c7ab957f05941" +dependencies = [ + "digest 0.9.0", + "ff 0.12.1", + "group 0.12.1", + "pairing 0.22.0", + "rand_core 0.6.4", + "subtle", +] + [[package]] name = "bls12_381_plus" -version = "0.8.15" +version = "0.8.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcdcbc984ce4bbbba587f9415ecfd5ed15c59b33defe276482c517b26a6a6716" +checksum = "1fa37cf2a8c96054d2dc3d708efe35cc0347014af0d30b86c736b4388ff8491c" dependencies = [ "arrayref", "elliptic-curve", @@ -371,16 +358,6 @@ version = "1.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3ac9f8b63eca6fd385229b3675f6cc0dc5c8a5c8a54a59d4f52ffd670d87b0c" -[[package]] -name = "byte-unit" -version = "4.0.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da78b32057b8fdfc352504708feeba7216dcd65a2c9ab02978cbd288d1279b6c" -dependencies = [ - "serde", - "utf8-width", -] - [[package]] name = "byteorder" version = "1.5.0" @@ -396,18 +373,6 @@ dependencies = [ "serde", ] -[[package]] -name = "cached" -version = "0.41.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec6d20b3d24b6c74e2c5331d2d3d8d1976a9883c7da179aa851afa4c90d62e36" -dependencies = [ - "hashbrown 0.12.3", - "instant", - "once_cell", - "thiserror", -] - [[package]] name = "camino" version = "1.1.7" @@ -452,23 +417,6 @@ dependencies = [ "syn 2.0.85", ] -[[package]] -name = "canister_sig_util" -version = "0.1.0" -source = "git+https://github.com/dfinity/internet-identity?rev=f668535241bb01fa9a7fb508b6579407c8afe59c#f668535241bb01fa9a7fb508b6579407c8afe59c" -dependencies = [ - "candid", - "hex", - "ic-cdk 0.13.5", - "ic-certification 2.5.0", - "ic-representation-independent-hash", - "lazy_static", - "serde", - "serde_bytes", - "serde_cbor", - "sha2 0.10.8", -] - [[package]] name = "cargo-license" version = "0.5.1" @@ -530,11 +478,7 @@ version = "0.4.37" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a0d04d43504c61aa6c7531f1871dd0d418d91130162063b789da00fd7057a5e" dependencies = [ - "android-tzdata", - "iana-time-zone", "num-traits", - "serde", - "windows-targets", ] [[package]] @@ -577,39 +521,12 @@ dependencies = [ ] [[package]] -name = "comparable" -version = "0.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb513ee8037bf08c5270ecefa48da249f4c58e57a71ccfce0a5b0877d2a20eb2" -dependencies = [ - "comparable_derive", - "comparable_helper", - "pretty_assertions", - "serde", -] - -[[package]] -name = "comparable_derive" -version = "0.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a54b9c40054eb8999c5d1d36fdc90e4e5f7ff0d1d9621706f360b3cbc8beb828" -dependencies = [ - "convert_case 0.4.0", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "comparable_helper" -version = "0.5.4" +name = "cloudabi" +version = "0.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb5437e327e861081c91270becff184859f706e3e50f5301a9d4dc8eb50752c3" +checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" dependencies = [ - "convert_case 0.6.0", - "proc-macro2", - "quote", - "syn 1.0.109", + "bitflags 1.3.2", ] [[package]] @@ -631,21 +548,6 @@ version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" -[[package]] -name = "convert_case" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" - -[[package]] -name = "convert_case" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec182b0ca2f35d8fc196cf3404988fd8b8c739a4d270ff118a398feb0cbec1ca" -dependencies = [ - "unicode-segmentation", -] - [[package]] name = "core-foundation" version = "0.9.4" @@ -744,76 +646,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "curve25519-dalek" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b9fdf9972b2bd6af2d913799d9ebc165ea4d2e65878e329d9c6b372c4491b61" -dependencies = [ - "byteorder", - "digest 0.9.0", - "rand_core 0.5.1", - "subtle", - "zeroize", -] - -[[package]] -name = "curve25519-dalek-ng" -version = "4.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c359b7249347e46fb28804470d071c921156ad62b3eef5d34e2ba867533dec8" -dependencies = [ - "byteorder", - "digest 0.9.0", - "rand_core 0.6.4", - "subtle-ng", - "zeroize", -] - -[[package]] -name = "cvt" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2ae9bf77fbf2d39ef573205d554d87e86c12f1994e9ea335b0651b9b278bcf1" -dependencies = [ - "cfg-if", -] - -[[package]] -name = "darling" -version = "0.13.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a01d95850c592940db9b8194bc39f4bc0e89dee5c4265e4b1807c34a9aba453c" -dependencies = [ - "darling_core", - "darling_macro", -] - -[[package]] -name = "darling_core" -version = "0.13.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "859d65a907b6852c9361e3185c862aae7fafd2887876799fa55f5f99dc40d610" -dependencies = [ - "fnv", - "ident_case", - "proc-macro2", - "quote", - "strsim", - "syn 1.0.109", -] - -[[package]] -name = "darling_macro" -version = "0.13.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c972679f83bdf9c42bd905396b6c3588a843a17f0f16dfcfa3e2c5d57441835" -dependencies = [ - "darling_core", - "quote", - "syn 1.0.109", -] - [[package]] name = "data-encoding" version = "2.5.0" @@ -847,7 +679,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f55bf8e7b65898637379c1b74eb1551107c8294ed26d855ceb9fd1a09cfc9bc0" dependencies = [ "const-oid", - "pem-rfc7468", "zeroize", ] @@ -861,16 +692,6 @@ dependencies = [ "serde", ] -[[package]] -name = "derive_more" -version = "0.99.8-alpha.0" -source = "git+https://github.com/dfinity-lab/derive_more?rev=9f1b894e6fde640da4e9ea71a8fc0e4dd98d01da#9f1b894e6fde640da4e9ea71a8fc0e4dd98d01da" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "derive_more" version = "0.99.17" @@ -945,21 +766,6 @@ dependencies = [ "spki", ] -[[package]] -name = "ed25519-consensus" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c8465edc8ee7436ffea81d21a019b16676ee3db267aa8d5a8d729581ecf998b" -dependencies = [ - "curve25519-dalek-ng", - "hex", - "rand_core 0.6.4", - "serde", - "sha2 0.9.9", - "thiserror", - "zeroize", -] - [[package]] name = "either" version = "1.10.0" @@ -978,7 +784,6 @@ dependencies = [ "ff 0.13.0", "generic-array", "group 0.13.0", - "pem-rfc7468", "pkcs8", "rand_core 0.6.4", "sec1", @@ -1088,7 +893,7 @@ dependencies = [ "k256", "num_enum", "open-fastrlp", - "rand", + "rand 0.8.5", "rlp", "serde", "serde_json", @@ -1143,7 +948,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "835c052cb0c08c1acf6ffd71c022172e18723949c8282f2b9f27efbc51e64534" dependencies = [ "byteorder", - "rand", + "rand 0.8.5", "rustc-hex", "static_assertions", ] @@ -1163,6 +968,12 @@ dependencies = [ "percent-encoding", ] +[[package]] +name = "fuchsia-cprng" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba" + [[package]] name = "funty" version = "2.0.0" @@ -1278,17 +1089,6 @@ dependencies = [ "unicode-width", ] -[[package]] -name = "getrandom" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" -dependencies = [ - "cfg-if", - "libc", - "wasi 0.9.0+wasi-snapshot-preview1", -] - [[package]] name = "getrandom" version = "0.2.15" @@ -1297,7 +1097,7 @@ checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ "cfg-if", "libc", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", ] [[package]] @@ -1551,73 +1351,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "iana-time-zone" -version = "0.1.60" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" -dependencies = [ - "android_system_properties", - "core-foundation-sys", - "iana-time-zone-haiku", - "js-sys", - "wasm-bindgen", - "windows-core", -] - -[[package]] -name = "iana-time-zone-haiku" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" -dependencies = [ - "cc", -] - -[[package]] -name = "ic-base-types" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "base32", - "byte-unit", - "bytes", - "candid", - "comparable", - "crc32fast", - "ic-crypto-sha2", - "ic-protobuf", - "ic-stable-structures 0.5.6", - "phantom_newtype", - "prost", - "serde", - "strum 0.25.0", - "strum_macros 0.25.3", -] - -[[package]] -name = "ic-btc-interface" -version = "0.1.0" -source = "git+https://github.com/dfinity/bitcoin-canister?rev=9b239d1d67253eb14a35be6061e3967d5ec9db9d#9b239d1d67253eb14a35be6061e3967d5ec9db9d" -dependencies = [ - "candid", - "serde", - "serde_bytes", -] - -[[package]] -name = "ic-btc-types-internal" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "candid", - "ic-btc-interface", - "ic-error-types", - "ic-protobuf", - "serde", - "serde_bytes", -] - [[package]] name = "ic-canister-sig-creation" version = "1.1.0" @@ -1627,7 +1360,7 @@ dependencies = [ "candid", "hex", "ic-cdk 0.14.1", - "ic-certification 2.5.0", + "ic-certification", "ic-representation-independent-hash", "lazy_static", "serde", @@ -1759,21 +1492,6 @@ dependencies = [ "slotmap", ] -[[package]] -name = "ic-certification" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "hex", - "ic-crypto-tree-hash", - "ic-crypto-utils-threshold-sig", - "ic-crypto-utils-threshold-sig-der", - "ic-types", - "serde", - "serde_cbor", - "tree-deserializer", -] - [[package]] name = "ic-certification" version = "2.5.0" @@ -1787,386 +1505,20 @@ dependencies = [ ] [[package]] -name = "ic-constants" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" - -[[package]] -name = "ic-crypto-ecdsa-secp256k1" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" +name = "ic-cycles-ledger-client" +version = "0.1.0" dependencies = [ - "k256", - "lazy_static", - "num-bigint", - "pem", - "rand", - "simple_asn1", - "zeroize", + "candid", + "ic-cdk 0.16.0", + "serde", + "serde_bytes", ] [[package]] -name = "ic-crypto-ecdsa-secp256r1" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "ic-crypto-getrandom-for-wasm", - "lazy_static", - "num-bigint", - "p256", - "pem", - "rand", - "rand_chacha", - "simple_asn1", - "zeroize", -] - -[[package]] -name = "ic-crypto-getrandom-for-wasm" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "getrandom 0.2.15", -] - -[[package]] -name = "ic-crypto-iccsa" -version = "0.1.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "ic-crypto-internal-basic-sig-iccsa", -] - -[[package]] -name = "ic-crypto-internal-basic-sig-cose" -version = "0.1.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "ic-crypto-internal-basic-sig-der-utils", - "ic-crypto-internal-basic-sig-ecdsa-secp256r1", - "ic-crypto-internal-basic-sig-rsa-pkcs1", - "ic-types", - "serde", - "serde_cbor", - "simple_asn1", -] - -[[package]] -name = "ic-crypto-internal-basic-sig-der-utils" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "hex", - "ic-types", - "simple_asn1", - "zeroize", -] - -[[package]] -name = "ic-crypto-internal-basic-sig-ecdsa-secp256k1" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "base64 0.13.1", - "ic-crypto-ecdsa-secp256k1", - "ic-crypto-internal-basic-sig-der-utils", - "ic-crypto-internal-types", - "ic-crypto-secrets-containers", - "ic-types", - "serde", - "serde_bytes", - "simple_asn1", - "zeroize", -] - -[[package]] -name = "ic-crypto-internal-basic-sig-ecdsa-secp256r1" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "base64 0.13.1", - "ic-crypto-ecdsa-secp256r1", - "ic-crypto-internal-basic-sig-der-utils", - "ic-crypto-internal-types", - "ic-crypto-secrets-containers", - "ic-types", - "p256", - "rand", - "serde", - "serde_bytes", - "simple_asn1", - "zeroize", -] - -[[package]] -name = "ic-crypto-internal-basic-sig-ed25519" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "base64 0.13.1", - "curve25519-dalek", - "ed25519-consensus", - "hex", - "ic-crypto-internal-basic-sig-der-utils", - "ic-crypto-internal-seed", - "ic-crypto-internal-types", - "ic-crypto-secrets-containers", - "ic-protobuf", - "ic-types", - "rand", - "rand_chacha", - "serde", - "simple_asn1", - "zeroize", -] - -[[package]] -name = "ic-crypto-internal-basic-sig-iccsa" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "base64 0.13.1", - "hex", - "ic-certification 0.9.0", - "ic-crypto-internal-basic-sig-der-utils", - "ic-crypto-internal-types", - "ic-crypto-sha2", - "ic-crypto-tree-hash", - "ic-types", - "serde", - "serde_bytes", - "serde_cbor", - "simple_asn1", -] - -[[package]] -name = "ic-crypto-internal-basic-sig-rsa-pkcs1" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "ic-crypto-getrandom-for-wasm", - "ic-crypto-internal-basic-sig-der-utils", - "ic-crypto-sha2", - "ic-types", - "num-bigint", - "num-traits", - "pkcs8", - "rsa", - "serde", - "sha2 0.10.8", - "simple_asn1", -] - -[[package]] -name = "ic-crypto-internal-bls12-381-type" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "hex", - "ic-crypto-getrandom-for-wasm", - "ic_bls12_381", - "itertools 0.12.1", - "lazy_static", - "pairing 0.22.0", - "paste", - "rand", - "rand_chacha", - "sha2 0.9.9", - "subtle", - "zeroize", -] - -[[package]] -name = "ic-crypto-internal-seed" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "hex", - "ic-crypto-sha2", - "ic-types", - "rand", - "rand_chacha", - "serde", - "zeroize", -] - -[[package]] -name = "ic-crypto-internal-sha2" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "sha2 0.10.8", -] - -[[package]] -name = "ic-crypto-internal-threshold-sig-bls12381" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "base64 0.13.1", - "cached", - "hex", - "ic-crypto-internal-bls12-381-type", - "ic-crypto-internal-seed", - "ic-crypto-internal-threshold-sig-bls12381-der", - "ic-crypto-internal-types", - "ic-crypto-secrets-containers", - "ic-crypto-sha2", - "ic-types", - "lazy_static", - "parking_lot", - "rand", - "rand_chacha", - "serde", - "serde_bytes", - "serde_cbor", - "strum_macros 0.25.3", - "subtle", - "zeroize", -] - -[[package]] -name = "ic-crypto-internal-threshold-sig-bls12381-der" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "simple_asn1", -] - -[[package]] -name = "ic-crypto-internal-types" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "arrayvec 0.7.4", - "hex", - "ic-protobuf", - "phantom_newtype", - "serde", - "serde_cbor", - "strum 0.25.0", - "strum_macros 0.25.3", - "thiserror", - "zeroize", -] - -[[package]] -name = "ic-crypto-secrets-containers" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "serde", - "zeroize", -] - -[[package]] -name = "ic-crypto-sha2" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "ic-crypto-internal-sha2", -] - -[[package]] -name = "ic-crypto-standalone-sig-verifier" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "ic-crypto-iccsa", - "ic-crypto-internal-basic-sig-cose", - "ic-crypto-internal-basic-sig-der-utils", - "ic-crypto-internal-basic-sig-ecdsa-secp256k1", - "ic-crypto-internal-basic-sig-ecdsa-secp256r1", - "ic-crypto-internal-basic-sig-ed25519", - "ic-crypto-internal-basic-sig-iccsa", - "ic-crypto-internal-basic-sig-rsa-pkcs1", - "ic-crypto-internal-types", - "ic-crypto-sha2", - "ic-types", -] - -[[package]] -name = "ic-crypto-tree-hash" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "assert_matches", - "ic-crypto-internal-types", - "ic-crypto-sha2", - "ic-protobuf", - "serde", - "serde_bytes", - "thiserror", -] - -[[package]] -name = "ic-crypto-utils-threshold-sig" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "base64 0.13.1", - "ic-crypto-internal-threshold-sig-bls12381", - "ic-crypto-internal-types", - "ic-types", -] - -[[package]] -name = "ic-crypto-utils-threshold-sig-der" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "base64 0.13.1", - "ic-crypto-internal-threshold-sig-bls12381", - "ic-crypto-internal-threshold-sig-bls12381-der", - "ic-crypto-internal-types", - "ic-types", -] - -[[package]] -name = "ic-cycles-ledger-client" -version = "0.1.0" -dependencies = [ - "candid", - "ic-cdk 0.16.0", - "serde", - "serde_bytes", -] - -[[package]] -name = "ic-error-types" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "ic-utils", - "serde", - "strum 0.25.0", - "strum_macros 0.25.3", -] - -[[package]] -name = "ic-ic00-types" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "candid", - "ic-base-types", - "ic-btc-interface", - "ic-btc-types-internal", - "ic-error-types", - "ic-protobuf", - "num-traits", - "serde", - "serde_bytes", - "serde_cbor", - "strum 0.25.0", - "strum_macros 0.25.3", -] - -[[package]] -name = "ic-ledger-types" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a144b5b4c9e4b164b338440cfbdcf9f30ff45e3d48a3be62d2424996dc93d6f" +name = "ic-ledger-types" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a144b5b4c9e4b164b338440cfbdcf9f30ff45e3d48a3be62d2424996dc93d6f" dependencies = [ "candid", "crc32fast", @@ -2183,21 +1535,6 @@ version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b5c7628eac357aecda461130f8074468be5aa4d258a002032d82d817f79f1f8" -[[package]] -name = "ic-protobuf" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "bincode", - "candid", - "erased-serde", - "maplit", - "prost", - "serde", - "serde_json", - "slog", -] - [[package]] name = "ic-representation-independent-hash" version = "2.5.0" @@ -2209,101 +1546,46 @@ dependencies = [ ] [[package]] -name = "ic-stable-structures" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95dce29e3ceb0e6da3e78b305d95365530f2efd2146ca18590c0ef3aa6038568" - -[[package]] -name = "ic-stable-structures" -version = "0.6.6" +name = "ic-signature-verification" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcaf89c1bc326c72498bcc0cd954f2edf718c018e7c586d2193d701d3c9af29a" +checksum = "1d8a8115bcd1bfa672e2213a66326b3c93483d3a7a29e33dff6e381c7786c091" dependencies = [ + "ic-canister-sig-creation", + "ic-certification", + "ic-verify-bls-signature", "ic_principal", -] - -[[package]] -name = "ic-sys" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "hex", - "ic-crypto-sha2", - "lazy_static", - "libc", - "nix", - "phantom_newtype", - "tokio", - "wsl", -] - -[[package]] -name = "ic-types" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "base64 0.13.1", - "bincode", - "candid", - "chrono", - "derive_more 0.99.8-alpha.0", - "hex", - "ic-base-types", - "ic-btc-types-internal", - "ic-constants", - "ic-crypto-internal-types", - "ic-crypto-sha2", - "ic-crypto-tree-hash", - "ic-error-types", - "ic-ic00-types", - "ic-protobuf", - "ic-utils", - "maplit", - "once_cell", - "phantom_newtype", - "prost", "serde", "serde_bytes", "serde_cbor", - "serde_json", - "serde_with", - "strum 0.25.0", - "strum_macros 0.25.3", - "thiserror", - "thousands", + "sha2 0.10.8", ] [[package]] -name = "ic-utils" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" +name = "ic-stable-structures" +version = "0.6.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcaf89c1bc326c72498bcc0cd954f2edf718c018e7c586d2193d701d3c9af29a" dependencies = [ - "cvt", - "hex", - "ic-sys", - "libc", - "nix", - "prost", - "rand", - "scoped_threadpool", - "serde", - "thiserror", + "ic_principal", ] [[package]] name = "ic-verifiable-credentials" -version = "0.1.0" -source = "git+https://github.com/dfinity/verifiable-credentials-sdk?rev=a116a2e53a13e4a1f6f7e8429960a7d0d6142e70#a116a2e53a13e4a1f6f7e8429960a7d0d6142e70" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e82468bdd37919008bab52229446ef703d846b941feb80958ccbd5385cd0745" dependencies = [ + "base64 0.22.1", "candid", - "canister_sig_util", - "ic-certification 2.5.0", - "ic-crypto-standalone-sig-verifier", - "ic-types", + "ic-canister-sig-creation", + "ic-cdk 0.15.1", + "ic-certification", + "ic-signature-verification", "identity_core", "identity_credential", "identity_jose", + "regex", "serde", "serde_bytes", "serde_cbor", @@ -2311,6 +1593,20 @@ dependencies = [ "sha2 0.10.8", ] +[[package]] +name = "ic-verify-bls-signature" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd0f1f8d75f50002970cc2136f909287bf1d59024fbc80ebffbee871afcbd237" +dependencies = [ + "bls12_381", + "hex", + "lazy_static", + "pairing 0.22.0", + "rand 0.6.5", + "sha2 0.9.9", +] + [[package]] name = "ic0" version = "0.21.1" @@ -2323,21 +1619,6 @@ version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8de254dd67bbd58073e23dc1c8553ba12fa1dc610a19de94ad2bbcd0460c067f" -[[package]] -name = "ic_bls12_381" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c682cb199cd8fcb582a6023325d571a6464edda26c8063fe04b6f6082a1a363c" -dependencies = [ - "digest 0.9.0", - "ff 0.12.1", - "group 0.12.1", - "pairing 0.22.0", - "rand_core 0.6.4", - "subtle", - "zeroize", -] - [[package]] name = "ic_principal" version = "0.1.1" @@ -2351,19 +1632,13 @@ dependencies = [ "thiserror", ] -[[package]] -name = "ident_case" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" - [[package]] name = "identity_core" -version = "1.3.1" -source = "git+https://github.com/dfinity/identity.rs.git?rev=aa510ef7f441848d6c78058fe51ad4ad1d9bd5d8#aa510ef7f441848d6c78058fe51ad4ad1d9bd5d8" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1ab2b958bbaa25150b31e2249a608b434193a55c86f1db57134721ad84f48ef" dependencies = [ - "ic-cdk 0.13.5", - "iota-crypto", + "js-sys", "multibase", "serde", "serde_json", @@ -2376,8 +1651,9 @@ dependencies = [ [[package]] name = "identity_credential" -version = "1.3.1" -source = "git+https://github.com/dfinity/identity.rs.git?rev=aa510ef7f441848d6c78058fe51ad4ad1d9bd5d8#aa510ef7f441848d6c78058fe51ad4ad1d9bd5d8" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a89327409c87d9d66e43305319fbf0828947378b5b605340bb19436cbcd069b" dependencies = [ "async-trait", "identity_core", @@ -2385,7 +1661,7 @@ dependencies = [ "identity_document", "identity_verification", "indexmap 2.2.6", - "itertools 0.11.0", + "itertools", "once_cell", "serde", "serde-aux", @@ -2398,12 +1674,14 @@ dependencies = [ [[package]] name = "identity_did" -version = "1.3.1" -source = "git+https://github.com/dfinity/identity.rs.git?rev=aa510ef7f441848d6c78058fe51ad4ad1d9bd5d8#aa510ef7f441848d6c78058fe51ad4ad1d9bd5d8" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4013089d433d00ff7a9a8e9f6b8e6e99d05d3868617d14ccf2eeeb50408b87fb" dependencies = [ "did_url_parser", "form_urlencoded", "identity_core", + "identity_jose", "serde", "strum 0.25.0", "thiserror", @@ -2411,8 +1689,9 @@ dependencies = [ [[package]] name = "identity_document" -version = "1.3.1" -source = "git+https://github.com/dfinity/identity.rs.git?rev=aa510ef7f441848d6c78058fe51ad4ad1d9bd5d8#aa510ef7f441848d6c78058fe51ad4ad1d9bd5d8" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "924f491cc04f31b5f3fb83154cca44782a12e03a7248dae180f8e44f6e779973" dependencies = [ "did_url_parser", "identity_core", @@ -2426,8 +1705,9 @@ dependencies = [ [[package]] name = "identity_jose" -version = "1.3.1" -source = "git+https://github.com/dfinity/identity.rs.git?rev=aa510ef7f441848d6c78058fe51ad4ad1d9bd5d8#aa510ef7f441848d6c78058fe51ad4ad1d9bd5d8" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bcd846da1067ff61b6d708661c97d3056966766495ce3e3364650b96610f9b65" dependencies = [ "bls12_381_plus", "identity_core", @@ -2442,8 +1722,9 @@ dependencies = [ [[package]] name = "identity_verification" -version = "1.3.1" -source = "git+https://github.com/dfinity/identity.rs.git?rev=aa510ef7f441848d6c78058fe51ad4ad1d9bd5d8#aa510ef7f441848d6c78058fe51ad4ad1d9bd5d8" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8086f82528ffbb0fe286ff5e069235536a1089e4424d4c40e014b5477b891cfc" dependencies = [ "identity_core", "identity_did", @@ -2508,7 +1789,7 @@ version = "1.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" dependencies = [ - "autocfg", + "autocfg 1.2.0", "hashbrown 0.12.3", ] @@ -2523,22 +1804,13 @@ dependencies = [ "serde", ] -[[package]] -name = "instant" -version = "0.1.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" -dependencies = [ - "cfg-if", -] - [[package]] name = "iota-crypto" -version = "0.23.1" +version = "0.23.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5db0e2d85e258d6d0db66f4a6bf1e8bdf5b10c3353aa87d98b168778d13fdc1" +checksum = "98a38db844c910d78825e173c083f2ef416b69cb091bba8ac1055763c6db065b" dependencies = [ - "autocfg", + "autocfg 1.2.0", "digest 0.10.7", "k256", "serde", @@ -2559,23 +1831,14 @@ checksum = "f23ff5ef2b80d608d61efee834934d862cd92461afc0560dedf493e4c033738b" dependencies = [ "hermit-abi 0.3.9", "libc", - "windows-sys 0.52.0", -] - -[[package]] -name = "itertools" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57" -dependencies = [ - "either", + "windows-sys 0.52.0", ] [[package]] name = "itertools" -version = "0.12.1" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" +checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57" dependencies = [ "either", ] @@ -2651,9 +1914,6 @@ name = "lazy_static" version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" -dependencies = [ - "spin", -] [[package]] name = "leb128" @@ -2685,7 +1945,7 @@ version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" dependencies = [ - "autocfg", + "autocfg 1.2.0", "scopeguard", ] @@ -2695,12 +1955,6 @@ version = "0.4.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" -[[package]] -name = "maplit" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d" - [[package]] name = "matchers" version = "0.1.0" @@ -2716,15 +1970,6 @@ version = "2.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d" -[[package]] -name = "memoffset" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" -dependencies = [ - "autocfg", -] - [[package]] name = "mime" version = "0.3.17" @@ -2758,7 +2003,7 @@ checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec" dependencies = [ "hermit-abi 0.3.9", "libc", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", "windows-sys 0.52.0", ] @@ -2773,18 +2018,6 @@ dependencies = [ "data-encoding-macro", ] -[[package]] -name = "nix" -version = "0.24.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa52e972a9a719cecb6864fb88568781eb706bac2cd1d4f04a648542dbf78069" -dependencies = [ - "bitflags 1.3.2", - "cfg-if", - "libc", - "memoffset", -] - [[package]] name = "nu-ansi-term" version = "0.46.0" @@ -2801,29 +2034,12 @@ version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "608e7659b5c3d7cba262d894801b9ec9d00de989e8a82bd4bef91d08da45cdc0" dependencies = [ - "autocfg", + "autocfg 1.2.0", "num-integer", "num-traits", "serde", ] -[[package]] -name = "num-bigint-dig" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc84195820f291c7697304f3cbdadd1cb7199c0efc917ff5eafd71225c136151" -dependencies = [ - "byteorder", - "lazy_static", - "libm", - "num-integer", - "num-iter", - "num-traits", - "rand", - "smallvec", - "zeroize", -] - [[package]] name = "num-conv" version = "0.1.0" @@ -2839,24 +2055,13 @@ dependencies = [ "num-traits", ] -[[package]] -name = "num-iter" -version = "0.1.45" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1429034a0490724d0075ebb2bc9e875d6503c3cf69e235a8941aa757d83ef5bf" -dependencies = [ - "autocfg", - "num-integer", - "num-traits", -] - [[package]] name = "num-traits" version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da0df0e5185db44f69b44f26786fe401b6c293d1907744beaa7fa62b2e5a517a" dependencies = [ - "autocfg", + "autocfg 1.2.0", "libm", ] @@ -2945,18 +2150,6 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" -[[package]] -name = "p256" -version = "0.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9863ad85fa8f4460f9c48cb909d38a0d689dba1f6f6988a5e3e0d31071bcd4b" -dependencies = [ - "ecdsa", - "elliptic-curve", - "primeorder", - "sha2 0.10.8", -] - [[package]] name = "pairing" version = "0.22.0" @@ -3030,40 +2223,12 @@ version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" -[[package]] -name = "pem" -version = "1.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8835c273a76a90455d7344889b0964598e3316e2a79ede8e36f16bdcf2228b8" -dependencies = [ - "base64 0.13.1", -] - -[[package]] -name = "pem-rfc7468" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88b39c9bfcfc231068454382784bb460aae594343fb030d46e9f50a645418412" -dependencies = [ - "base64ct", -] - [[package]] name = "percent-encoding" version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" -[[package]] -name = "phantom_newtype" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "candid", - "serde", - "slog", -] - [[package]] name = "pin-project" version = "1.1.5" @@ -3096,17 +2261,6 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" -[[package]] -name = "pkcs1" -version = "0.7.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8ffb9f10fa047879315e6625af03c164b16962a5368d724ed16323b68ace47f" -dependencies = [ - "der", - "pkcs8", - "spki", -] - [[package]] name = "pkcs8" version = "0.10.2" @@ -3173,15 +2327,6 @@ dependencies = [ "yansi", ] -[[package]] -name = "primeorder" -version = "0.13.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "353e1ca18966c16d9deb1c69278edbc5f194139612772bd9537af60ac231e1e6" -dependencies = [ - "elliptic-curve", -] - [[package]] name = "primitive-types" version = "0.12.2" @@ -3266,36 +2411,13 @@ dependencies = [ "bitflags 2.5.0", "lazy_static", "num-traits", - "rand", - "rand_chacha", - "rand_xorshift", - "regex-syntax 0.8.3", + "rand 0.8.5", + "rand_chacha 0.3.1", + "rand_xorshift 0.3.0", + "regex-syntax 0.8.5", "unarray", ] -[[package]] -name = "prost" -version = "0.12.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "deb1435c188b76130da55f17a466d252ff7b1418b2ad3e037d127b94e3411f29" -dependencies = [ - "bytes", - "prost-derive", -] - -[[package]] -name = "prost-derive" -version = "0.12.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81bddcdb20abf9501610992b6759a4c888aef7d1a7247ef75e2404275ac24af1" -dependencies = [ - "anyhow", - "itertools 0.12.1", - "proc-macro2", - "quote", - "syn 2.0.85", -] - [[package]] name = "psm" version = "0.1.21" @@ -3330,7 +2452,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fadfaed2cd7f389d0161bb73eeb07b7b78f8691047a6f3e73caaeae55310a4a6" dependencies = [ "bytes", - "rand", + "rand 0.8.5", "ring", "rustc-hash", "rustls", @@ -3368,6 +2490,25 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" +[[package]] +name = "rand" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d71dacdc3c88c1fde3885a3be3fbab9f35724e6ce99467f7d9c5026132184ca" +dependencies = [ + "autocfg 0.1.8", + "libc", + "rand_chacha 0.1.1", + "rand_core 0.4.2", + "rand_hc", + "rand_isaac", + "rand_jitter", + "rand_os", + "rand_pcg", + "rand_xorshift 0.1.1", + "winapi", +] + [[package]] name = "rand" version = "0.8.5" @@ -3375,10 +2516,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "libc", - "rand_chacha", + "rand_chacha 0.3.1", "rand_core 0.6.4", ] +[[package]] +name = "rand_chacha" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "556d3a1ca6600bfcbab7c7c91ccb085ac7fbbcd70e008a98742e7847f4f7bcef" +dependencies = [ + "autocfg 0.1.8", + "rand_core 0.3.1", +] + [[package]] name = "rand_chacha" version = "0.3.1" @@ -3391,20 +2542,88 @@ dependencies = [ [[package]] name = "rand_core" -version = "0.5.1" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" +checksum = "7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b" dependencies = [ - "getrandom 0.1.16", + "rand_core 0.4.2", ] +[[package]] +name = "rand_core" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc" + [[package]] name = "rand_core" version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.15", + "getrandom", +] + +[[package]] +name = "rand_hc" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b40677c7be09ae76218dc623efbf7b18e34bced3f38883af07bb75630a21bc4" +dependencies = [ + "rand_core 0.3.1", +] + +[[package]] +name = "rand_isaac" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ded997c9d5f13925be2a6fd7e66bf1872597f759fd9dd93513dd7e92e5a5ee08" +dependencies = [ + "rand_core 0.3.1", +] + +[[package]] +name = "rand_jitter" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1166d5c91dc97b88d1decc3285bb0a99ed84b05cfd0bc2341bdf2d43fc41e39b" +dependencies = [ + "libc", + "rand_core 0.4.2", + "winapi", +] + +[[package]] +name = "rand_os" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b75f676a1e053fc562eafbb47838d67c84801e38fc1ba459e8f180deabd5071" +dependencies = [ + "cloudabi", + "fuchsia-cprng", + "libc", + "rand_core 0.4.2", + "rdrand", + "winapi", +] + +[[package]] +name = "rand_pcg" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abf9b09b01790cfe0364f52bf32995ea3c39f4d2dd011eac241d2914146d0b44" +dependencies = [ + "autocfg 0.1.8", + "rand_core 0.4.2", +] + +[[package]] +name = "rand_xorshift" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbf7e9e623549b0e21f6e97cf8ecf247c1a8fd2e8a992ae265314300b2455d5c" +dependencies = [ + "rand_core 0.3.1", ] [[package]] @@ -3416,6 +2635,15 @@ dependencies = [ "rand_core 0.6.4", ] +[[package]] +name = "rdrand" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2" +dependencies = [ + "rand_core 0.3.1", +] + [[package]] name = "redox_syscall" version = "0.5.3" @@ -3427,14 +2655,14 @@ dependencies = [ [[package]] name = "regex" -version = "1.10.4" +version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c" +checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" dependencies = [ "aho-corasick", "memchr", - "regex-automata 0.4.6", - "regex-syntax 0.8.3", + "regex-automata 0.4.9", + "regex-syntax 0.8.5", ] [[package]] @@ -3448,13 +2676,13 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.6" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea" +checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" dependencies = [ "aho-corasick", "memchr", - "regex-syntax 0.8.3", + "regex-syntax 0.8.5", ] [[package]] @@ -3465,9 +2693,9 @@ checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" [[package]] name = "regex-syntax" -version = "0.8.3" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56" +checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" [[package]] name = "reqwest" @@ -3536,7 +2764,7 @@ checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" dependencies = [ "cc", "cfg-if", - "getrandom 0.2.15", + "getrandom", "libc", "spin", "untrusted", @@ -3565,27 +2793,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "rsa" -version = "0.9.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d0e5124fcb30e76a7e79bfee683a2746db83784b86289f6251b54b7950a0dfc" -dependencies = [ - "const-oid", - "digest 0.10.7", - "num-bigint-dig", - "num-integer", - "num-traits", - "pkcs1", - "pkcs8", - "rand_core 0.6.4", - "sha2 0.10.8", - "signature", - "spki", - "subtle", - "zeroize", -] - [[package]] name = "rustc-demangle" version = "0.1.23" @@ -3703,7 +2910,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "788745a868b0e751750388f4e6546eb921ef714a4317fa6954f7cde114eb2eb7" dependencies = [ "cfg-if", - "derive_more 0.99.17", + "derive_more", "parity-scale-codec", "scale-info-derive", ] @@ -3753,12 +2960,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "scoped_threadpool" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d51f5df5af43ab3f1360b429fa5e0152ac5ce8c0bd6485cae490332e96846a8" - [[package]] name = "scopeguard" version = "1.2.0" @@ -3948,28 +3149,6 @@ dependencies = [ "serde", ] -[[package]] -name = "serde_with" -version = "1.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "678b5a069e50bf00ecd22d0cd8ddf7c236f68581b03db652061ed5eb13a312ff" -dependencies = [ - "serde", - "serde_with_macros", -] - -[[package]] -name = "serde_with_macros" -version = "1.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e182d6ec6f05393cc0e5ed1bf81ad6db3a8feedf8ee515ecdd369809bcce8082" -dependencies = [ - "darling", - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "sha2" version = "0.9.9" @@ -4049,25 +3228,13 @@ dependencies = [ "rand_core 0.6.4", ] -[[package]] -name = "simple_asn1" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adc4e5204eb1910f40f9cfa375f6f05b68c3abac4b6fd879c8ff5e7ae8a0a085" -dependencies = [ - "num-bigint", - "num-traits", - "thiserror", - "time", -] - [[package]] name = "slab" version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" dependencies = [ - "autocfg", + "autocfg 1.2.0", ] [[package]] @@ -4192,12 +3359,6 @@ version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" -[[package]] -name = "subtle-ng" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "734676eb262c623cec13c3155096e08d1f8f29adce39ba17948b18dad1e54142" - [[package]] name = "syn" version = "1.0.109" @@ -4282,12 +3443,6 @@ dependencies = [ "syn 2.0.85", ] -[[package]] -name = "thousands" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bf63baf9f5039dadc247375c29eb13706706cfde997d0330d05aa63a77d8820" - [[package]] name = "thread_local" version = "1.1.8" @@ -4580,16 +3735,6 @@ dependencies = [ "tracing-serde", ] -[[package]] -name = "tree-deserializer" -version = "0.9.0" -source = "git+https://github.com/dfinity/ic?rev=e69bcc7b319cbb3ebc22ec55af35287741244db6#e69bcc7b319cbb3ebc22ec55af35287741244db6" -dependencies = [ - "ic-crypto-tree-hash", - "leb128", - "serde", -] - [[package]] name = "try-lock" version = "0.2.5" @@ -4656,12 +3801,6 @@ dependencies = [ "tinyvec", ] -[[package]] -name = "unicode-segmentation" -version = "1.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202" - [[package]] name = "unicode-width" version = "0.1.11" @@ -4692,12 +3831,6 @@ dependencies = [ "serde", ] -[[package]] -name = "utf8-width" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86bd8d4e895da8537e5315b8254664e6b769c4ff3db18321b297a1e7004392e3" - [[package]] name = "valuable" version = "0.1.0" @@ -4719,12 +3852,6 @@ dependencies = [ "try-lock", ] -[[package]] -name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" - [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" @@ -4860,15 +3987,6 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" -[[package]] -name = "windows-core" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" -dependencies = [ - "windows-targets", -] - [[package]] name = "windows-registry" version = "0.2.0" @@ -4990,12 +4108,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "wsl" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8dab7ac864710bdea6594becbea5b5050333cf34fefb0dc319567eb347950d4" - [[package]] name = "wyz" version = "0.5.1" @@ -5013,9 +4125,9 @@ checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049" [[package]] name = "zeroize" -version = "1.7.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d" +checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" dependencies = [ "zeroize_derive", ] @@ -5048,7 +4160,7 @@ dependencies = [ "hex", "hkdf", "log", - "rand", + "rand 0.8.5", "serde", "serde_json", "sha2 0.10.8", diff --git a/Cargo.toml b/Cargo.toml index 7bba27c925..ecb2917937 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ ic-ledger-types = "0.13.0" ic-stable-structures = "0.6.6" ic-metrics-encoder = "1.1.1" ic-canister-sig-creation = "1.1.0" -ic-verifiable-credentials = { git = "https://github.com/dfinity/verifiable-credentials-sdk", rev = "a116a2e53a13e4a1f6f7e8429960a7d0d6142e70" } +ic-verifiable-credentials = "1.0.1" candid = "0.10.10" ethers-core = "= 2.0.11" futures = "0.3" diff --git a/src/backend/src/config.rs b/src/backend/src/config.rs index be3a111d38..f8dbcb7aa4 100644 --- a/src/backend/src/config.rs +++ b/src/backend/src/config.rs @@ -4,7 +4,7 @@ use shared::types::{user_profile::AddUserCredentialRequest, Config, CredentialTy pub fn find_credential_config( request: &AddUserCredentialRequest, config: &Config, -) -> Option<(VcFlowSigners, Vec, CredentialType)> { +) -> Option<(VcFlowSigners, Vec, CredentialType, String)> { config .supported_credentials .as_ref() @@ -28,6 +28,7 @@ pub fn find_credential_config( .clone() .expect("Missing root key to perform validation"), supported_credential.credential_type.clone(), + config.derivation_origin.clone().expect("Missing derivation origin in config. Credential can't be validated.") )) } else { None diff --git a/src/backend/src/lib.rs b/src/backend/src/lib.rs index 3849913f65..0c1d6ca10f 100644 --- a/src/backend/src/lib.rs +++ b/src/backend/src/lib.rs @@ -490,13 +490,14 @@ pub fn add_user_credential( let stored_principal = StoredPrincipal(user_principal); let current_time_ns = u128::from(time()); - let (vc_flow_signers, root_pk_raw, credential_type) = + let (vc_flow_signers, root_pk_raw, credential_type, derivation_origin) = read_config(|config| find_credential_config(&request, config)) .ok_or(AddUserCredentialError::ConfigurationError)?; match validate_ii_presentation_and_claims( &request.credential_jwt, user_principal, + derivation_origin, &vc_flow_signers, &request.credential_spec, &root_pk_raw, diff --git a/src/backend/tests/it/utils/mock.rs b/src/backend/tests/it/utils/mock.rs index a8f0497df4..8f68e52b46 100644 --- a/src/backend/tests/it/utils/mock.rs +++ b/src/backend/tests/it/utils/mock.rs @@ -13,10 +13,11 @@ pub const WEENUS_SYMBOL: &str = "Weenus"; // TODO: Use a VP from DECIDE AI. We can't yet, because they don't create valid credentials yet. // This is a VP of ProofOfUniqueness from the dummy issuer -pub const VP_JWT: &str = "eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0.eyJpc3MiOiJkaWQ6aWNwOnFkaWlmLTJpYWFhLWFhYWFwLWFoamFxLWNhaSIsInZwIjp7IkBjb250ZXh0IjoiaHR0cHM6Ly93d3cudzMub3JnLzIwMTgvY3JlZGVudGlhbHMvdjEiLCJ0eXBlIjoiVmVyaWZpYWJsZVByZXNlbnRhdGlvbiIsInZlcmlmaWFibGVDcmVkZW50aWFsIjpbImV5SnFkMnNpT25zaWEzUjVJam9pYjJOMElpd2lZV3huSWpvaVNXTkRjeUlzSW1zaU9pSk5SSGQzUkVGWlMwdDNXVUpDUVVkRWRVVk5Ra0ZuVFhOQlFXOUJRVUZCUVVGQlFVRkNkMFZDUkhWZmVVMUhlWFJLZVZCWlEybFRNalZDTURSMloxbzRabWR5VkZOT2NUVmlWRlp3UzNCMVExTktOQ0o5TENKcmFXUWlPaUprYVdRNmFXTndPbkprYlhnMkxXcGhZV0ZoTFdGaFlXRmhMV0ZoWVdSeExXTmhhU0lzSW1Gc1p5STZJa2xqUTNNaWZRLmV5SmxlSEFpT2pFM01qRXpOelV5TlRNc0ltbHpjeUk2SW1oMGRIQnpPaTh2YVdSbGJuUnBkSGt1YVdNd0xtRndjQzhpTENKdVltWWlPakUzTWpFek56UXpOVE1zSW1wMGFTSTZJbVJoZEdFNmRHVjRkQzl3YkdGcGJqdGphR0Z5YzJWMFBWVlVSaTA0TEhScGJXVnpkR0Z0Y0Y5dWN6b3hOekl4TXpjME16VXpPVFE0TmpFMU56RTVMR0ZzYVdGelgyaGhjMmc2WVdKbU5HWXpOREExTXpKalkyWmpZV0UwTUROa05tTm1PVGsyTW1GbVlUaGhaVGc0WmpVMU0yRXdPREkyTWpSaE1EQmhZV0U0TlRjM01qSm1NV05tTkNJc0luTjFZaUk2SW1ScFpEcHBZ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dZSXdIUVlOS3dZQkJBR0MzSHdGQXdFQ0FRWU1Ld1lCQkFHQzNId0ZBd0lCQTJFQWlwR3lPd21LNjMzVjVTVnhmd3dwMDVaOFgwNWgwTFhIeHBjWExtOVdncXBlUWoxQ0IzYVZ4UmVycC1PMk50cVVDVGpYMWNydTRtdzhjY3hvaVBWQ3haWnVZT3BOa2QyNVd0Q1pRb01YRUpmakpRSnI3d0F4S0xSR1FRVnNodEJLZ2dSWUlObHBLek81TmlIZnBiWkJTdWNTclFpQ29QWXBkc044VU9yY3BWNzJab21RZ2dSWUlMTnVpNS1fdTlaRGUtRHdyZzlXVWxTUWRvUTd3aEJrRW9CTDNaWExUU1BRZ3dKRWRHbHRaWUlEU2ZhaXQ1cXZ6UENDR0dsemFXZHVZWFIxY21WWU1JRUlONFBnd0puTVAwT2pEakRNZnJaZEdYbXZfenI3RVBRVVBEM1JFVlBEd00zQ1FqV3pYV214VnpVNzZ0cFBOR1IwY21WbGd3SkRjMmxuZ3dKWUlHdWFRYWliMTJhZzVMbzVnQjhGS0xZQXRoRTU2N2pTVjdQeldMRXZJQXNOZ3dKWUlEM01rRjhxSElsQzFmYi1IVElBdnk2QS1TVVJKQ1M0ODJHa0gyYVFaNWk3Z2dOQSJdfX0."; +pub const VC_HOLDER: &str = "7eboi-tyuys-aqm4c-w2l7i-vgucm-xvawx-lemzx-6kq2g-f53u7-yvfh2-nae"; pub const ISSUER_CANISTER_ID: &str = "qdiif-2iaaa-aaaap-ahjaq-cai"; pub const ISSUER_ORIGIN: &str = "https://dummy-issuer.vc/"; -pub const II_CANISTER_ID: &str = "rdmx6-jaaaa-aaaaa-aaadq-cai"; +pub const VC_DERIVATION_ORIGIN: &str = "https://l7rua-raaaa-aaaap-ahh6a-cai.ic0.app"; +pub const II_CANISTER_ID: &str = "fgte5-ciaaa-aaaad-aaatq-cai"; pub const SIGNER_CANISTER_ID: &str = "grghe-syaaa-aaaar-qabyq-cai"; pub const II_ORIGIN: &str = "https://identity.ic0.app/"; diff --git a/src/backend/tests/it/utils/pocketic.rs b/src/backend/tests/it/utils/pocketic.rs index ec12a12fac..d5c336fe7a 100644 --- a/src/backend/tests/it/utils/pocketic.rs +++ b/src/backend/tests/it/utils/pocketic.rs @@ -16,6 +16,7 @@ use std::{env, time::Duration}; use super::mock::{ CONTROLLER, II_CANISTER_ID, II_ORIGIN, ISSUER_CANISTER_ID, ISSUER_ORIGIN, SIGNER_CANISTER_ID, + VC_DERIVATION_ORIGIN, }; const BACKEND_WASM: &str = "../../target/wasm32-unknown-unknown/release/backend.wasm"; @@ -322,7 +323,7 @@ pub(crate) fn init_arg() -> Arg { cfs_canister_id: Some( Principal::from_text(SIGNER_CANISTER_ID.to_string()).expect("wrong cfs canister id"), ), - derivation_origin: Some("https://l7rua-raaaa-aaaap-ahh6a-cai.ic0.app".to_string()), + derivation_origin: Some(VC_DERIVATION_ORIGIN.to_string()), }) }