Initial Commit
This commit is contained in:
52
packages/networking/drive/drive-plugin-chunks/src/index.ts
Normal file
52
packages/networking/drive/drive-plugin-chunks/src/index.ts
Normal file
@@ -0,0 +1,52 @@
|
||||
import "./error-codes.js";
|
||||
|
||||
export { encodeChunk, parseChunk, validateChunk } from "./codec/chunk.js";
|
||||
export {
|
||||
encodeHeader,
|
||||
HEADER_SIZE,
|
||||
METADATA_SIZE,
|
||||
parseHeader,
|
||||
SIG_SIZE,
|
||||
} from "./codec/header.js";
|
||||
export { CHUNKS_CODES, ChunksError } from "./error-codes.js";
|
||||
export {
|
||||
type AnyInlineHint,
|
||||
type FileLocation,
|
||||
type InlineHint,
|
||||
inlineSigningInput,
|
||||
isLegacyInlineHint,
|
||||
type LegacyInlineHint,
|
||||
type StorageHint,
|
||||
signInlineHint,
|
||||
upgradeLegacyInlineHint,
|
||||
type VerifyEd25519Fn,
|
||||
verifyInlineHint,
|
||||
} from "./inline/index.js";
|
||||
export { createAutoLayout } from "./layout/auto.js";
|
||||
export { createChunkKeysLayout } from "./layout/chunk-keys.js";
|
||||
export { createSparseFileLayout, preallocate } from "./layout/sparse-file.js";
|
||||
export { buildManifest, canonicalSerialize } from "./manifest/build.js";
|
||||
export {
|
||||
loadManifestAsChunk,
|
||||
loadManifestFromServer,
|
||||
parseAndVerifyManifest,
|
||||
} from "./manifest/load.js";
|
||||
export { decryptChunk } from "./pipeline/decrypt-chunk.js";
|
||||
export { deriveNonce, encryptChunks } from "./pipeline/encrypt-stream.js";
|
||||
export { buildSignedChunk, signChunk } from "./pipeline/sign-chunk.js";
|
||||
export { verifyChunkSig } from "./pipeline/verify-chunk.js";
|
||||
export { chunksPlugin } from "./plugin.js";
|
||||
export { ManifestSchema } from "./schemas/manifest.schema.js";
|
||||
export type {
|
||||
Chunk,
|
||||
ChunkLayout,
|
||||
ChunkLayoutStrategy,
|
||||
ChunkMetadata,
|
||||
ChunkSource,
|
||||
ChunksPluginOptions,
|
||||
EncodedChunk,
|
||||
Manifest,
|
||||
ManifestChunkEntry,
|
||||
ManifestEncryption,
|
||||
ManifestSource,
|
||||
} from "./types/chunks.types.js";
|
||||
Reference in New Issue
Block a user