@cero-base/cero 1.1.0 → 1.2.0

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.
@@ -2,6 +2,7 @@
2
2
  * @typedef {object} LocalOpts
3
3
  * @property {any} [root] Pre-existing HypercoreStorage to reuse.
4
4
  * @property {any} [store] Pre-existing Corestore to reuse.
5
+ * @property {Uint8Array} [storageKey] 32-byte key encrypting the local store at rest.
5
6
  */
6
7
  /**
7
8
  * Per-device, single-writer storage for cero — holds the master seed,
@@ -14,7 +15,7 @@ export class Local extends ReadyResource {
14
15
  * @param {any} spec Built cero spec — must include `spec.local.database` and `spec.meta.local`.
15
16
  * @param {LocalOpts} [opts]
16
17
  */
17
- constructor(dir: string | null, spec: any, { root, store }?: LocalOpts);
18
+ constructor(dir: string | null, spec: any, { root, store, storageKey }?: LocalOpts);
18
19
  dir: string;
19
20
  spec: any;
20
21
  store: Storage;
@@ -28,6 +29,10 @@ export type LocalOpts = {
28
29
  * Pre-existing Corestore to reuse.
29
30
  */
30
31
  store?: any;
32
+ /**
33
+ * 32-byte key encrypting the local store at rest.
34
+ */
35
+ storageKey?: Uint8Array;
31
36
  };
32
37
  import ReadyResource from 'ready-resource';
33
38
  import { Storage } from '@cero-base/core/storage';
package/src/CLAUDE.md DELETED
@@ -1,3 +0,0 @@
1
- <claude-mem-context>
2
-
3
- </claude-mem-context>
@@ -1,3 +0,0 @@
1
- <claude-mem-context>
2
-
3
- </claude-mem-context>
package/src/lib/CLAUDE.md DELETED
@@ -1,3 +0,0 @@
1
- <claude-mem-context>
2
-
3
- </claude-mem-context>
package/src/rpc/CLAUDE.md DELETED
@@ -1,3 +0,0 @@
1
- <claude-mem-context>
2
-
3
- </claude-mem-context>