pub fn verify_command(
envelope: &Envelope,
authorized_keys: &HashMap<String, VerifyingKey>,
) -> Result<VerifyCommandResult, VerifyCommandError>Expand description
Verify a command artifact envelope.
authorized_keys is a (key_id → VerifyingKey) map of issuers permitted to
send commands to this ship. Any signature on the envelope from a key
outside this set is ignored; if no in-set key produced a valid signature,
verification fails. This mirrors the semantics of Verifier::verify_any.
On success returns the deserialized command, its content-addressed artifact ID, and the key IDs that produced valid signatures.