@storagehub-sdk/core 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_wasm_embed.d.ts +1 -1
- package/dist/constants.d.ts +10 -0
- package/dist/file-manager.d.ts +1 -2
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.node.js +1 -1
- package/dist/index.node.js.map +4 -4
- package/dist/types.d.ts +11 -0
- package/dist/utils.d.ts +28 -0
- package/package.json +1 -1
- package/wasm/pkg/storagehub_wasm.d.ts +12 -5
- package/wasm/pkg/storagehub_wasm.js +16 -5
- package/wasm/pkg/storagehub_wasm_bg.wasm +0 -0
- package/wasm/pkg/storagehub_wasm_bg.wasm.d.ts +6 -5
package/dist/constants.d.ts
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
1
|
export declare const CHUNK_SIZE = 1024;
|
|
2
|
+
/**
|
|
3
|
+
* Batch size for fast zero-copy fingerprinting (bytes), aligned to CHUNK_SIZE
|
|
4
|
+
* Default: 128 MiB
|
|
5
|
+
*/
|
|
6
|
+
export declare const BATCH_SIZE_BYTES: number;
|
|
7
|
+
/**
|
|
8
|
+
* Upper bound for in-WASM fingerprinting. Above this size, the in-memory
|
|
9
|
+
* Merkle-Patricia trie risks exhausting 32-bit WASM linear memory.
|
|
10
|
+
*/
|
|
11
|
+
export declare const MAX_WASM_FINGERPRINT_BYTES = 1610612736;
|
package/dist/file-manager.d.ts
CHANGED
|
@@ -9,8 +9,7 @@ export declare class FileManager {
|
|
|
9
9
|
private fileKey?;
|
|
10
10
|
private fileBlob?;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
* return the resulting Merkle root.
|
|
12
|
+
* Compute the file fingerprint (Merkle root)
|
|
14
13
|
*/
|
|
15
14
|
getFingerprint(): Promise<H256>;
|
|
16
15
|
getFileSize(): number;
|