ic-certified-map allows to certify whether a given key is present in a map in a Rust canister. So far, so good.
But I have some hardship to understand, how to verify it by ic/rs/crypto/standalone-sig-verifier/src/lib.rs at master · dfinity/ic · GitHub.
- It is unclear whether to use
verify_basic_sig_by_public_keyorverify_canister_sig. - Which parameter corresponds to which? (
certificateis apparentlysignature;pubic_keyis the canister’s public key, isn’t it? Ifmsgis the key in the certified tree, then where is thewitness?)
I also opened an issue about this question: Document `ic-certified-map` verification · Issue #667 · dfinity/cdk-rs · GitHub