Class WorkflowSignature
Signs and verifies workflow definitions using HMAC-SHA256. Signatures cover the canonical JSON representation of the workflow, ensuring that any modification (steps, metadata, version) is detected.
public static class WorkflowSignature
- Inheritance
-
WorkflowSignature
- Inherited Members
Methods
Sign(AgentWorkflowDefinition, byte[])
Computes an HMAC-SHA256 signature of the workflow definition.
public static string Sign(AgentWorkflowDefinition definition, byte[] key)
Parameters
definitionAgentWorkflowDefinitionkeybyte[]
Returns
- string
Lowercase hex signature string.
Verify(AgentWorkflowDefinition, byte[], string)
Verifies that a signature matches the workflow definition.
public static bool Verify(AgentWorkflowDefinition definition, byte[] key, string signature)
Parameters
definitionAgentWorkflowDefinitionkeybyte[]signaturestring