Secp256k1AuditRecord

constructor(id: String, signature: ByteArray, publicKey: ByteArray, messageDigest: ByteArray)

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).