breach_signature: The breach report signature does not verify

The signature does not recover to the signer the report names. Nothing moves.

A report whose signer is not an address or whose signature is not 65 bytes in hex never reaches this check: both routes answer 400 invalid_request first.

What to do

On the wire

HTTP 409, error type state_error.

Only the breach report routes answer this code: POST /owner/v1/streams/{id}/breach-reports (1.7.0) and, where the deployment serves it, the oracle's POST /oracle/v1/attest/breach (1.8.0). Both send errorDetail to every client, with or without Dynamo-Error-Detail: 1:

{
  "error": "state",
  "reason": "breach_signature",
  "detail": "…",
  "errorDetail": {
    "type": "state_error",
    "code": "breach_signature",
    "message": "…",
    "param": "report",
    "doc_url": "…/errors/breach_signature.md",
    "fix": "the breach report signature does not recover to its named signer"
  }
}

See all error codes.