Threshold ECDSA Signatures

Hello everyone!

I have a practical question. How do I verify that a public key was derived from a canister_id non-interactively?

An example in Rust would be much appreciated. Thanks in advance!