verify_signer_offline
Verifies a signing function offline by comparing its output against expected values from user-provided samples, returning pass rate and first point of divergence.
Instructions
Offline verify a signing function against user-provided samples.
Typical workflow:
Capture real signed requests via network_capture + list_network_requests
Extract samples into a list
Write candidate signing code
Call this tool -> get pass_rate + first_divergence
Iterate
Args: signer_code: JS evaluating to a function: (sample) => {param: computed_value}. Runs in current page context. samples: List of sample dicts, each with: - id: user-defined identifier - input: dict passed to signer function - expected: dict of {param_name: expected_value_str} compare_params: Which params to compare. If None, compare all keys in each sample's expected.
Returns: dict with total_samples, passed, failed, pass_rate, first_divergence, details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signer_code | Yes | ||
| samples | Yes | ||
| compare_params | No |