Dear friends,
My name is Artur and I’m an IC dev and currently building a project where I would like to incorporate the vetkey encryption. I have looked at both the Shipstone’s and at Kristoferlund’s repos to try and start the development locally but whenever I build, deploy locally and try to open the canister via the Candid interface it says that it fails to find the .did file for the vetkey canister even though I clearly labeled it in my dfx.json which I also attached below.
Our project repo: GitHub - jakepeg/canister_app at feature/vetkeys
I also attached the full error at the bottom of the post.
I would really appreciate any help regarding this
{
"dfx": "0.17.0",
"canisters": {
"vetkd_system_api": {
"candid": "./vetkeys/chainkey_testing_canister.did",
"type": "custom",
"wasm": "./vetkeys/chainkey_testing_canister.wasm",
"declarations": {
"output": "src/declarations/vetkd_system_api"
}
},
"backend": {
"type": "rust",
"package": "backend",
"candid": "./backend/service.did",
"declarations": {
"node_compatibility": true
}
},
"frontend": {
"build": "pnpm --filter frontend run build",
"dependencies": ["backend", "internet_identity"],
"source": ["frontend/build/"],
"type": "assets"
},
"internet_identity": {
"type": "custom",
"candid": "https://github.com/dfinity/internet-identity/releases/latest/download/internet_identity.did",
"wasm": "https://github.com/dfinity/internet-identity/releases/latest/download/internet_identity_dev.wasm.gz",
"shrink": false,
"remote": {
"candid": "internet_identity.did",
"id": {
"ic": "rdmx6-jaaaa-aaaaa-aaadq-cai"
}
}
}
},
"defaults": {
"build": {
"packtool": ""
}
},
"output_env_file": ".env",
"networks": {
"staging": {
"providers": ["https://icp0.io"],
"type": "persistent"
}
},
"version": 1
}
asm.js type error: expecting argument type declaration for 'A' of the form 'arg = arg|0' or 'arg = +arg' or 'arg = fround(arg)' index.js:2:225413
Expected to find result for path candid, but instead found nothing. index.js:2:1098
Error: Call failed:
Canister: br5f7-7uaaa-aaaaa-qaaca-cai
Method: __get_candid_interface_tmp_hack (query)
"Status": "rejected"
"Code": "DestinationInvalid"
"Message": "IC0302: Canister br5f7-7uaaa-aaaaa-qaaca-cai has no query method '__get_candid_interface_tmp_hack'"
r http://127.0.0.1:4943/index.js:2
bA http://127.0.0.1:4943/index.js:2
vA http://127.0.0.1:4943/index.js:2
n http://127.0.0.1:4943/index.js:2
index.js:2:314532
Uncaught (in promise) Error: Cannot fetch candid file
fetchActor http://127.0.0.1:4943/index.js:2
index.js:2:314563
Error: Could not establish connection. Receiving end does not exist. trigger-autofill-script-injection.js:5:20
Source map error: Error: URL constructor: is not a valid URL.
Stack in the worker:resolveSourceMapURL@resource://devtools/client/shared/source-map-loader/utils/fetchSourceMap.js:56:22
getOriginalURLs@resource://devtools/client/shared/source-map-loader/source-map.js:73:24
workerHandler/</<@resource://devtools/client/shared/worker-utils.js:115:52
workerHandler/<@resource://devtools/client/shared/worker-utils.js:113:13
Resource URL: wasm:http://127.0.0.1:4943/index.js%20line%202%20%3E%20WebAssembly.instantiate
Source Map URL: null
Source map error: Error: request failed with status 400
Stack in the worker:networkRequest@resource://devtools/client/shared/source-map-loader/utils/network-request.js:43:9
Resource URL: http://127.0.0.1:4943/index.js
Source Map URL: index.js.map
Source map error: request failed with status 400
Resource URL: http://127.0.0.1:4943/index.js
Source Map URL: index.js.map
asm.js type error: Asm.js optimizer disabled because no suitable wasm compiler is available