verifyR0Groth16ReceiptLocal
HardKAS SDK / sdk/src / verifyR0Groth16ReceiptLocal
Function: verifyR0Groth16ReceiptLocal()
verifyR0Groth16ReceiptLocal(
params):Promise<R0Groth16LocalVerificationResult>
Defined in: packages/sdk/src/zk/risc0-groth16.ts:283
Verifies a RISC Zero Groth16 receipt locally: recomputes the claim digest from (imageId, journalHash), derives the five public inputs with the pinned control root / BN254 control id, decodes the seal and runs the snarkjs pairing against the pinned RISC Zero verifying key (anchored: PINNED_REGISTRY). A VERIFIED result means "a valid RISC Zero Groth16 proof exists for this program and journal". It says nothing about what the guest program does, and it is not on-chain acceptance (the node decides; the off-chain and on-chain verifiers are different implementations: snarkjs vs arkworks).
Parameters
params
imageId
string
journalHash
string
receiptHex
string
timeoutMs?
number
Returns
Promise<R0Groth16LocalVerificationResult>