RAILGUN Reloaded
    Preparing search index...

    Type Alias SnapshotDecoder

    SnapshotDecoder: (
        bytes: Uint8Array,
        expectedCid: string,
    ) => Promise<SnapshotData>

    Decode and verify snapshot artifact bytes.

    Type Declaration

      • (bytes: Uint8Array, expectedCid: string): Promise<SnapshotData>
      • Parameters

        • bytes: Uint8Array

          Compressed snapshot artifact bytes.

        • expectedCid: string

          CID the bytes must content-address to.

        Returns Promise<SnapshotData>

        Snapshot-owned decoded data.