It’s great to see all the services and applications being built. Hopefully this is useful to you all, Canlista beta is now up, and running fully on the IC…
Developers can call the Canlista service to get candid for canisters in any language, Motoko, Rust, C++ etc. (so everyone get listing and add your rust candids!)
dfx canister --network ic call kyhgh-oyaaa-aaaae-qaaha-cai getCandid '(principal "rrkah-fqaaa-aaaaa-aaaaq-cai")'
All candid is checked as valid.
The service now returns an approvedByController flag, it’s part of a chain-of-trust feature for the listings, if this flag is true you are guaranteed that the candid was served by the canister itself or submitted by the canister’s controller.
Currently this will be false while we wait for Motoko features to fetch controller details.
Service signature:
getCandid: (principal) -> (Result) query
type Result = variant {
ok: record { did:text; approvedByController:bool };
err: variant { noCandidFound }
}
Related, @PaulLiu you’ll need to accommodate the new record returned in your air-gap QR scanner if that’s ok (this should be extensible in future now), you can later optionally check for this approval flag too if you find need to.