@armada/sdk / index / HttpArtifactSource
Class: HttpArtifactSource
Defined in: src/prover/artifact-source.ts:45
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. A resolve rejects with AbortedError when its signal aborts, and with an error after timeoutMs if the download stalls. Wrap it in an IndexedDbArtifactCache (browser) so the zkey is downloaded once, not per proof.
Implements
Constructors
Constructor
new HttpArtifactSource(
baseUrl,options):HttpArtifactSource
Defined in: src/prover/artifact-source.ts:51
Parameters
baseUrl
string
options
Returns
HttpArtifactSource
Methods
resolve()
resolve(
shape,options?):Promise<ArtifactSet>
Defined in: src/prover/artifact-source.ts:66
Parameters
shape
options?
Returns
Promise<ArtifactSet>