repair
Classifies one persisted signature and, if it is a genuine victim of the padding defect, repairs it: returns the 64-byte P1363 signature (r || low-s) that Secp256k1Curve.verifySignature has already confirmed verifies against publicKey and messageDigest. Returns null in every other case — the signature already verifies as-is (Secp256k1AuditVerdict.VALID), or no reconstruction attempt verified (Secp256k1AuditVerdict.INVALID_OTHER) — so a non-null return is always proof, never a guess. See the class KDoc, "Repair, not just detection", for why this is safe to trust unconditionally rather than merely probably correct.
Parameters
64-byte P1363 (r || s) secp256k1 signature.
SEC 1-encoded point (65-byte uncompressed or 33-byte compressed).
the 32-byte digest the signature was computed over.
Throws
if signature is not 64 bytes, messageDigest is not 32 bytes, or publicKey is not a validly-encoded, on-curve secp256k1 point.