RAILGUN Reloaded
    Preparing search index...

    ArtifactDownloader class for managing IPFS artifact downloads with caching

    Index
    • Downloads all artifacts (vkey, zkey, wasm/dat) for a given artifact variant from IPFS.

      Parameters

      Returns Promise<
          {
              vkeyStoredPath: string;
              zkeyStoredPath: string;
              wasmOrDatStoredPath: string;
          },
      >

      A promise that resolves to an Artifact object containing the path to the downloaded artifacts.

    • Fetches an artifact from IPFS, decompresses it if necessary, and stores it in the provided artifact store.

      Parameters

      • rootCid: string

        The root CID of the IPFS directory containing the artifacts.

      • artifactVariantString: ValidArtifactVariant

        The valid artifact variant string.

      • artifactName: ArtifactName

        The name of the artifact to fetch.

      Returns Promise<Uint8Array<ArrayBufferLike>>

      A promise that resolves to the decompressed artifact data.