Secp256k1AuditOutcome

data class Secp256k1AuditOutcome(val id: String, val verdict: Secp256k1AuditVerdict, val detail: String? = null, val repairedSignature: ByteArray? = null)

The Secp256k1AuditVerdict for one Secp256k1AuditRecord.id. detail is populated only when Secp256k1SignatureAudit.auditBatch had to fall back to Secp256k1AuditVerdict.INVALID_OTHER because the record itself was malformed (wrong-length signature/digest, undecodable public key) rather than because a well-formed signature failed to verify.

repairedSignature is populated if and only if verdict is Secp256k1AuditVerdict.CORRUPTED_BY_PADDING_DEFECT: the 64-byte P1363 signature (originalR || reconstructedLowS) that Secp256k1SignatureAudit proved verifies against this record's Secp256k1AuditRecord.publicKey and Secp256k1AuditRecord.messageDigest before returning it. See Secp256k1SignatureAudit's class KDoc, "Repair, not just detection", for the proof that a value in this field is never merely plausible — it is proven valid by construction. For every other verdict this is null: there is nothing to substitute in for a signature that already verifies, and for Secp256k1AuditVerdict.INVALID_OTHER no candidate that verifies was found, so there is nothing safe to offer.

Constructors

Link copied to clipboard
constructor(id: String, verdict: Secp256k1AuditVerdict, detail: String? = null, repairedSignature: ByteArray? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard