Secp256k1AuditRecord

data class Secp256k1AuditRecord(val id: String, val signature: ByteArray, val publicKey: ByteArray, val messageDigest: ByteArray)

One persisted signature to audit: the signature bytes, the public key that should have produced them, and the digest of the message they were computed over. id is not interpreted — it is only echoed back in Secp256k1AuditOutcome so the caller can correlate a result to the original record (a row id, a credential id, whatever the export uses).

Parameters

signature

64-byte P1363 (r || s) secp256k1 signature.

publicKey

SEC 1-encoded point: 65-byte uncompressed (0x04 || X || Y) or 33-byte compressed (0x02/0x03 || X).

messageDigest

the 32-byte hash the signature was computed over — not the raw message. Callers must hash it themselves with whatever algorithm was actually used at signing time (this codebase uses SHA-256 for VC/JWS-style proofs and Keccak-256 for Ethereum-anchored transactions; they are not interchangeable).

Constructors

Link copied to clipboard
constructor(id: String, signature: ByteArray, publicKey: ByteArray, messageDigest: ByteArray)

Properties

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