Skip to content

@lelantos-org/sdk / prover / LoadArtifactOpts

Interface: LoadArtifactOpts ​

Defined in: @lelantos-org/sdk/dist/prover/artifact-bytes.d.ts:35

Options for loadArtifactBytes.

Properties ​

onProgress? ​

ts
optional onProgress?: (p) => void;

Defined in: @lelantos-org/sdk/dist/prover/artifact-bytes.d.ts:41

Download progress. Loads are memoised by URL, so only the first caller for a path receives it; concurrent callers await the same promise and see none. A persistent-cache hit reports a single terminal event.

Parameters ​

ParameterType
p{ loaded: number; total?: number; url: string; }
p.loadednumber
p.total?number
p.urlstring

Returns ​

void


sha256? ​

ts
optional sha256?: string;

Defined in: @lelantos-org/sdk/dist/prover/artifact-bytes.d.ts:53

Expected SHA-256 of the bytes, lowercase hex. Bytes that hash to anything else are never returned: the load rejects PROVER_ARTIFACTS_FAILED.


signal? ​

ts
optional signal?: AbortSignal;

Defined in: @lelantos-org/sdk/dist/prover/artifact-bytes.d.ts:46


timeoutMs? ​

ts
optional timeoutMs?: number;

Defined in: @lelantos-org/sdk/dist/prover/artifact-bytes.d.ts:48

Per-attempt deadline. Default 120s.