verify_signer_offline
Verify a JavaScript signing function offline by testing it against known input-response samples to detect mismatches.
Instructions
Verify a signing function against known samples (offline, no browser needed).
Args: signer_code: JavaScript code that exports a signing function. Must be a function expression or arrow function: e.g. "(s) => mySign(s)" samples: List of samples, each with expected request/response pairs: [{"id": "r1", "input": {...}, "expected": {"X-Bogus": "..."}}]
Returns: dict with overall passed/failed, per-sample results, and first mismatch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| samples | Yes | ||
| signer_code | Yes |