@@ -152,10 +152,10 @@ generateShards(options: { totalShards: number; threshold: number; inputDataBase6
152152
153153Splits secret data (Base64) into encrypted shards in memory.
154154
155- | Param | Type | Description |
156- | -------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
157- | ** ` options ` ** | <code >{ totalShards: number; threshold: number; inputDataBase64: string; }</code > | totalShards, threshold, and inputDataBase64 (Base64-encoded secret) |
158- | ** ` callback ` ** | <code >(data?: { progress: number; shardsBase64?: string[ ] ; }, error?: <a href =" #error " >Error</a >) => ; void</code > | Reports progress and returns shards as Base64 strings |
155+ | Param | Type | Description |
156+ | -------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
157+ | ** ` options ` ** | <code >{ totalShards: number; threshold: number; inputDataBase64: string; }</code > | totalShards (≤255) , threshold (≥2, ≤255) , and inputDataBase64 (Base64-encoded secret) |
158+ | ** ` callback ` ** | <code >(data?: { progress: number; shardsBase64?: string[ ] ; }, error?: <a href =" #error " >Error</a >) => ; void</code > | Reports progress and returns shards as Base64 strings |
159159
160160--------------------
161161
@@ -186,7 +186,7 @@ Restores a specific shard from a set of encrypted shards (all in memory, Base64)
186186
187187| Param | Type | Description |
188188| -------------- | --------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
189- | ** ` options ` ** | <code >{ shardIndex: number; inputShardsBase64: string[ ] ; }</code > | shardIndex and inputShardsBase64 |
189+ | ** ` options ` ** | <code >{ shardIndex: number; inputShardsBase64: string[ ] ; }</code > | shardIndex ( & gt ; 0, ≤255) and inputShardsBase64 |
190190| ** ` callback ` ** | <code >(data?: { progress: number; dataBase64?: string; }, error?: <a href =" #error " >Error</a >) => ; void</code > | Reports progress and returns the requested shard as Base64 |
191191
192192--------------------
@@ -200,10 +200,10 @@ generateFileShards(options: { totalShards: number; threshold: number; srcPath: s
200200
201201Splits a file into encrypted shard files.
202202
203- | Param | Type | Description |
204- | -------------- | ------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------- |
205- | ** ` options ` ** | <code >{ totalShards: number; threshold: number; srcPath: string; dstPathRoot: string; }</code > | totalShards, threshold, srcPath (input file), dstPathRoot (output directory) |
206- | ** ` callback ` ** | <code >(data?: { progress: number; shardsPaths?: string[ ] ; }, error?: <a href =" #error " >Error</a >) => ; void</code > | Reports progress and returns paths to shard files |
203+ | Param | Type | Description |
204+ | -------------- | ------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------- |
205+ | ** ` options ` ** | <code >{ totalShards: number; threshold: number; srcPath: string; dstPathRoot: string; }</code > | totalShards (≤255) , threshold (≥2, ≤255) , srcPath (input file), dstPathRoot (output directory) |
206+ | ** ` callback ` ** | <code >(data?: { progress: number; shardsPaths?: string[ ] ; }, error?: <a href =" #error " >Error</a >) => ; void</code > | Reports progress and returns paths to shard files |
207207
208208--------------------
209209
@@ -216,10 +216,10 @@ generateShardsToFiles(options: { totalShards: number; threshold: number; inputDa
216216
217217Splits secret data (Base64) into encrypted shard files.
218218
219- | Param | Type | Description |
220- | -------------- | ------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------- |
221- | ** ` options ` ** | <code >{ totalShards: number; threshold: number; inputDataBase64: string; dstPathRoot: string; }</code > | totalShards, threshold, inputDataBase64, dstPathRoot (output directory) |
222- | ** ` callback ` ** | <code >(data?: { progress: number; shardsPaths?: string[ ] ; }, error?: <a href =" #error " >Error</a >) => ; void</code > | Reports progress and returns paths to shard files |
219+ | Param | Type | Description |
220+ | -------------- | ------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------- |
221+ | ** ` options ` ** | <code >{ totalShards: number; threshold: number; inputDataBase64: string; dstPathRoot: string; }</code > | totalShards (≤255) , threshold (≥2, ≤255) , inputDataBase64, dstPathRoot (output directory) |
222+ | ** ` callback ` ** | <code >(data?: { progress: number; shardsPaths?: string[ ] ; }, error?: <a href =" #error " >Error</a >) => ; void</code > | Reports progress and returns paths to shard files |
223223
224224--------------------
225225
@@ -264,10 +264,10 @@ restoreFileShard(options: { shardIndex: number; shardsPaths: string[]; dstPathRo
264264
265265Restores a specific shard file from a set of encrypted shard files.
266266
267- | Param | Type | Description |
268- | -------------- | -------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
269- | ** ` options ` ** | <code >{ shardIndex: number; shardsPaths: string[ ] ; dstPathRoot: string; }</code > | shardIndex, shardsPaths (input files), dstPathRoot (output directory) |
270- | ** ` callback ` ** | <code >(data?: { progress: number; shardPath?: string; }, error?: <a href =" #error " >Error</a >) => ; void</code > | Reports progress and returns the path to the restored shard file |
267+ | Param | Type | Description |
268+ | -------------- | -------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
269+ | ** ` options ` ** | <code >{ shardIndex: number; shardsPaths: string[ ] ; dstPathRoot: string; }</code > | shardIndex ( & gt ; 0, ≤255) , shardsPaths (input files), dstPathRoot (output directory) |
270+ | ** ` callback ` ** | <code >(data?: { progress: number; shardPath?: string; }, error?: <a href =" #error " >Error</a >) => ; void</code > | Reports progress and returns the path to the restored shard file |
271271
272272--------------------
273273
0 commit comments