@totalreclaw/core 1.0.0 → 1.1.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.
- package/package.json +1 -1
- package/totalreclaw_core.d.ts +4 -4
- package/totalreclaw_core.js +4 -4
- package/totalreclaw_core_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@totalreclaw/core",
|
|
3
3
|
"description": "TotalReclaw core — E2EE crypto, reranker, wallet, UserOp, store/search pipelines. Single source of truth for all clients.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
package/totalreclaw_core.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export class WasmLshHasher {
|
|
|
21
21
|
* Create a new LSH hasher with default parameters (20 tables, 32 bits).
|
|
22
22
|
*
|
|
23
23
|
* `seed_hex`: hex-encoded seed (>= 32 chars = 16 bytes).
|
|
24
|
-
* `dims`: embedding dimensionality (e.g.
|
|
24
|
+
* `dims`: embedding dimensionality (e.g. 640).
|
|
25
25
|
*/
|
|
26
26
|
constructor(seed_hex: string, dims: number);
|
|
27
27
|
/**
|
|
@@ -91,7 +91,7 @@ export function computeContentFingerprint(text: string, dedup_key_hex: string):
|
|
|
91
91
|
export function cosineSimilarity(a: Float32Array, b: Float32Array): number;
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
|
-
* Decrypt a base64-encoded
|
|
94
|
+
* Decrypt a base64-encoded XChaCha20-Poly1305 blob.
|
|
95
95
|
*
|
|
96
96
|
* `encryption_key_hex`: 64-char hex string (32 bytes).
|
|
97
97
|
* Returns the plaintext UTF-8 string.
|
|
@@ -193,10 +193,10 @@ export function encodeSingleCall(protobuf_payload: Uint8Array): Uint8Array;
|
|
|
193
193
|
export function encodeTombstoneProtobuf(fact_id: string, owner: string): Uint8Array;
|
|
194
194
|
|
|
195
195
|
/**
|
|
196
|
-
* Encrypt a UTF-8 plaintext with
|
|
196
|
+
* Encrypt a UTF-8 plaintext with XChaCha20-Poly1305.
|
|
197
197
|
*
|
|
198
198
|
* `encryption_key_hex`: 64-char hex string (32 bytes).
|
|
199
|
-
* Returns base64-encoded ciphertext (wire format:
|
|
199
|
+
* Returns base64-encoded ciphertext (wire format: nonce || tag || ciphertext).
|
|
200
200
|
*/
|
|
201
201
|
export function encrypt(plaintext: string, encryption_key_hex: string): string;
|
|
202
202
|
|
package/totalreclaw_core.js
CHANGED
|
@@ -61,7 +61,7 @@ class WasmLshHasher {
|
|
|
61
61
|
* Create a new LSH hasher with default parameters (20 tables, 32 bits).
|
|
62
62
|
*
|
|
63
63
|
* `seed_hex`: hex-encoded seed (>= 32 chars = 16 bytes).
|
|
64
|
-
* `dims`: embedding dimensionality (e.g.
|
|
64
|
+
* `dims`: embedding dimensionality (e.g. 640).
|
|
65
65
|
* @param {string} seed_hex
|
|
66
66
|
* @param {number} dims
|
|
67
67
|
*/
|
|
@@ -260,7 +260,7 @@ function cosineSimilarity(a, b) {
|
|
|
260
260
|
exports.cosineSimilarity = cosineSimilarity;
|
|
261
261
|
|
|
262
262
|
/**
|
|
263
|
-
* Decrypt a base64-encoded
|
|
263
|
+
* Decrypt a base64-encoded XChaCha20-Poly1305 blob.
|
|
264
264
|
*
|
|
265
265
|
* `encryption_key_hex`: 64-char hex string (32 bytes).
|
|
266
266
|
* Returns the plaintext UTF-8 string.
|
|
@@ -537,10 +537,10 @@ function encodeTombstoneProtobuf(fact_id, owner) {
|
|
|
537
537
|
exports.encodeTombstoneProtobuf = encodeTombstoneProtobuf;
|
|
538
538
|
|
|
539
539
|
/**
|
|
540
|
-
* Encrypt a UTF-8 plaintext with
|
|
540
|
+
* Encrypt a UTF-8 plaintext with XChaCha20-Poly1305.
|
|
541
541
|
*
|
|
542
542
|
* `encryption_key_hex`: 64-char hex string (32 bytes).
|
|
543
|
-
* Returns base64-encoded ciphertext (wire format:
|
|
543
|
+
* Returns base64-encoded ciphertext (wire format: nonce || tag || ciphertext).
|
|
544
544
|
* @param {string} plaintext
|
|
545
545
|
* @param {string} encryption_key_hex
|
|
546
546
|
* @returns {string}
|
package/totalreclaw_core_bg.wasm
CHANGED
|
Binary file
|