Skip to content

@armada/sdk / index / HttpArtifactSource

Class: HttpArtifactSource

Defined in: src/prover/artifact-source.ts:57

Resolve artifacts over HTTP (browser/node) from a base URL serving the same <N>x<M>/... layout. Verifies each resolved wasm/zkey against the supplied manifest by default (fail-closed); pass a pinned manifest (a build-time trust anchor), NOT one fetched from the same origin as the artifacts, or the check is self-referential. fetchFn defaults to the global fetch. Add an IndexedDB cache in the app layer.

Implements

Constructors

Constructor

new HttpArtifactSource(baseUrl, options): HttpArtifactSource

Defined in: src/prover/artifact-source.ts:62

Parameters

baseUrl

string

options

HttpArtifactSourceOptions

Returns

HttpArtifactSource

Methods

resolve()

resolve(shape): Promise<ArtifactSet>

Defined in: src/prover/artifact-source.ts:68

Parameters

shape

CircuitShape

Returns

Promise<ArtifactSet>

Implementation of

ArtifactSource.resolve