verifyWorkAdmission
@totemsdk/txpow / verifyWorkAdmission
Function: verifyWorkAdmission()
verifyWorkAdmission(
action,challenge,proof,templateProvider?,options?):Promise<WorkAdmissionVerification>
Verify a Machine Work Admission proof.
The admission target is taken from the validated challenge — never from the
proof. proof.qualifiesAsMinimaBlock, proof.superLevel, and
proof.isBlock are treated as derived metadata and are NOT trusted; the
Super level is recomputed from the re-derived txpowId and the template's
block difficulty.
Parameters
action
The application action the proof claims to commit.
challenge
The challenge the proof claims to satisfy.
proof
The mined proof.
templateProvider?
Optional live provider. When supplied, template
freshness and broadcastability are checked and
broadcastable is set. When omitted, verification
runs in offline mode and does NOT claim Minima
block contribution (broadcastable is undefined).
options?
Verification options.
Returns
Promise<WorkAdmissionVerification>