@keyhive/keyhive 0.0.0-alpha.54i → 0.0.0-alpha.54z
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 +4 -4
- package/pkg/keyhive_wasm.d.ts +21 -0
- package/pkg/keyhive_wasm_bg.js +151 -123
- package/pkg/keyhive_wasm_bg.wasm +0 -0
- package/pkg/keyhive_wasm_bg.wasm.d.ts +94 -93
- package/pkg-node/keyhive_wasm.d.ts +21 -0
- package/pkg-node/keyhive_wasm.js +152 -124
- package/pkg-node/keyhive_wasm_bg.wasm +0 -0
- package/pkg-node/keyhive_wasm_bg.wasm.d.ts +94 -93
- package/pkg-slim/keyhive_wasm.d.ts +115 -93
- package/pkg-slim/keyhive_wasm.js +151 -123
- package/pkg-slim/keyhive_wasm_bg.wasm +0 -0
- package/pkg-slim/keyhive_wasm_bg.wasm.base64.js +1 -1
- package/pkg-slim/keyhive_wasm_bg.wasm.d.ts +94 -93
package/pkg/keyhive_wasm_bg.js
CHANGED
|
@@ -437,7 +437,7 @@ export class ContactCard {
|
|
|
437
437
|
* @returns {IndividualId}
|
|
438
438
|
*/
|
|
439
439
|
get individualId() {
|
|
440
|
-
const ret = wasm.
|
|
440
|
+
const ret = wasm.contactcard_individualId(this.__wbg_ptr);
|
|
441
441
|
return IndividualId.__wrap(ret);
|
|
442
442
|
}
|
|
443
443
|
/**
|
|
@@ -628,14 +628,14 @@ export class Document {
|
|
|
628
628
|
* @returns {DocumentId}
|
|
629
629
|
*/
|
|
630
630
|
get doc_id() {
|
|
631
|
-
const ret = wasm.
|
|
631
|
+
const ret = wasm.document_doc_id(this.__wbg_ptr);
|
|
632
632
|
return DocumentId.__wrap(ret);
|
|
633
633
|
}
|
|
634
634
|
/**
|
|
635
635
|
* @returns {Identifier}
|
|
636
636
|
*/
|
|
637
637
|
get id() {
|
|
638
|
-
const ret = wasm.
|
|
638
|
+
const ret = wasm.document_id(this.__wbg_ptr);
|
|
639
639
|
return Identifier.__wrap(ret);
|
|
640
640
|
}
|
|
641
641
|
/**
|
|
@@ -989,7 +989,7 @@ export class Group {
|
|
|
989
989
|
* @returns {Identifier}
|
|
990
990
|
*/
|
|
991
991
|
get id() {
|
|
992
|
-
const ret = wasm.
|
|
992
|
+
const ret = wasm.group_id(this.__wbg_ptr);
|
|
993
993
|
return Identifier.__wrap(ret);
|
|
994
994
|
}
|
|
995
995
|
/**
|
|
@@ -1187,7 +1187,7 @@ export class Individual {
|
|
|
1187
1187
|
* @returns {IndividualId}
|
|
1188
1188
|
*/
|
|
1189
1189
|
get individualId() {
|
|
1190
|
-
const ret = wasm.
|
|
1190
|
+
const ret = wasm.individual_individualId(this.__wbg_ptr);
|
|
1191
1191
|
return IndividualId.__wrap(ret);
|
|
1192
1192
|
}
|
|
1193
1193
|
/**
|
|
@@ -1307,6 +1307,31 @@ export class Keyhive {
|
|
|
1307
1307
|
const ret = wasm.keyhive_addMember(this.__wbg_ptr, to_add.__wbg_ptr, membered.__wbg_ptr, ptr0, ptr1, len1);
|
|
1308
1308
|
return ret;
|
|
1309
1309
|
}
|
|
1310
|
+
/**
|
|
1311
|
+
* Returns a two-tier structure for memory-efficient hash/event storage across all agents.
|
|
1312
|
+
*
|
|
1313
|
+
* Returns a JS object with two fields:
|
|
1314
|
+
* - `sources`: Map<string(sourceId), Map<Uint8Array(hash), Uint8Array(eventBytes)>>
|
|
1315
|
+
* Each source (group, doc, or identifier) maps to its event hashes and bytes.
|
|
1316
|
+
* Each event is serialized exactly once and shared across all agents that reference it.
|
|
1317
|
+
* - `index`: Map<Uint8Array(agentId), Array<string(sourceId)>>
|
|
1318
|
+
* Each agent maps to the list of source IDs whose events are reachable by that agent.
|
|
1319
|
+
*
|
|
1320
|
+
* The JS consumer stores sources once and agents just reference source IDs,
|
|
1321
|
+
* avoiding duplicating hash sets across agents that share groups/docs.
|
|
1322
|
+
* Returns all agent events in a structure optimized for the OpCache.
|
|
1323
|
+
*
|
|
1324
|
+
* Returns `{ events, prekeySources, agentPrekeySources, agentMembershipHashes }`:
|
|
1325
|
+
* - `events`: `Map<Uint8Array(hash), Uint8Array(eventBytes)>` — all events, deduplicated
|
|
1326
|
+
* - `prekeySources`: `Map<Uint8Array(identifierBytes), Uint8Array[](hashes)>` — shared prekey sources by identifier
|
|
1327
|
+
* - `agentPrekeySources`: `Map<Uint8Array(agentId), Uint8Array[](identifierBytes)>` — agent → prekey source identifiers
|
|
1328
|
+
* - `agentMembershipHashes`: `Map<Uint8Array(agentId), Uint8Array[](hashes)>` — agent → membership hashes (flat)
|
|
1329
|
+
* @returns {Promise<any>}
|
|
1330
|
+
*/
|
|
1331
|
+
allAgentEvents() {
|
|
1332
|
+
const ret = wasm.keyhive_allAgentEvents(this.__wbg_ptr);
|
|
1333
|
+
return ret;
|
|
1334
|
+
}
|
|
1310
1335
|
/**
|
|
1311
1336
|
* @returns {Promise<ContactCard>}
|
|
1312
1337
|
*/
|
|
@@ -1715,7 +1740,7 @@ export class Peer {
|
|
|
1715
1740
|
* @returns {Identifier}
|
|
1716
1741
|
*/
|
|
1717
1742
|
get id() {
|
|
1718
|
-
const ret = wasm.
|
|
1743
|
+
const ret = wasm.peer_id(this.__wbg_ptr);
|
|
1719
1744
|
return Identifier.__wrap(ret);
|
|
1720
1745
|
}
|
|
1721
1746
|
/**
|
|
@@ -2396,63 +2421,63 @@ if (Symbol.dispose) Summary.prototype[Symbol.dispose] = Summary.prototype.free;
|
|
|
2396
2421
|
export function setPanicHook() {
|
|
2397
2422
|
wasm.setPanicHook();
|
|
2398
2423
|
}
|
|
2399
|
-
export function
|
|
2424
|
+
export function __wbg_Error_83742b46f01ce22d(arg0, arg1) {
|
|
2400
2425
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
2401
2426
|
return ret;
|
|
2402
2427
|
}
|
|
2403
|
-
export function
|
|
2428
|
+
export function __wbg___wasm_refgen_toJsChangeId_575379d1a4e0664d(arg0) {
|
|
2404
2429
|
const ret = arg0.__wasm_refgen_toJsChangeId();
|
|
2405
2430
|
_assertClass(ret, ChangeId);
|
|
2406
2431
|
var ptr1 = ret.__destroy_into_raw();
|
|
2407
2432
|
return ptr1;
|
|
2408
2433
|
}
|
|
2409
|
-
export function
|
|
2434
|
+
export function __wbg___wasm_refgen_toJsDocument_d553d6cbafec2867(arg0) {
|
|
2410
2435
|
const ret = arg0.__wasm_refgen_toJsDocument();
|
|
2411
2436
|
_assertClass(ret, Document);
|
|
2412
2437
|
var ptr1 = ret.__destroy_into_raw();
|
|
2413
2438
|
return ptr1;
|
|
2414
2439
|
}
|
|
2415
|
-
export function
|
|
2440
|
+
export function __wbg___wasm_refgen_toJsPeer_18f01647a0cd64bc(arg0) {
|
|
2416
2441
|
const ret = arg0.__wasm_refgen_toJsPeer();
|
|
2417
2442
|
_assertClass(ret, Peer);
|
|
2418
2443
|
var ptr1 = ret.__destroy_into_raw();
|
|
2419
2444
|
return ptr1;
|
|
2420
2445
|
}
|
|
2421
|
-
export function
|
|
2446
|
+
export function __wbg___wbindgen_debug_string_5398f5bb970e0daa(arg0, arg1) {
|
|
2422
2447
|
const ret = debugString(arg1);
|
|
2423
2448
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2424
2449
|
const len1 = WASM_VECTOR_LEN;
|
|
2425
2450
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2426
2451
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2427
2452
|
}
|
|
2428
|
-
export function
|
|
2453
|
+
export function __wbg___wbindgen_is_function_3c846841762788c1(arg0) {
|
|
2429
2454
|
const ret = typeof(arg0) === 'function';
|
|
2430
2455
|
return ret;
|
|
2431
2456
|
}
|
|
2432
|
-
export function
|
|
2457
|
+
export function __wbg___wbindgen_is_object_781bc9f159099513(arg0) {
|
|
2433
2458
|
const val = arg0;
|
|
2434
2459
|
const ret = typeof(val) === 'object' && val !== null;
|
|
2435
2460
|
return ret;
|
|
2436
2461
|
}
|
|
2437
|
-
export function
|
|
2462
|
+
export function __wbg___wbindgen_is_string_7ef6b97b02428fae(arg0) {
|
|
2438
2463
|
const ret = typeof(arg0) === 'string';
|
|
2439
2464
|
return ret;
|
|
2440
2465
|
}
|
|
2441
|
-
export function
|
|
2466
|
+
export function __wbg___wbindgen_is_undefined_52709e72fb9f179c(arg0) {
|
|
2442
2467
|
const ret = arg0 === undefined;
|
|
2443
2468
|
return ret;
|
|
2444
2469
|
}
|
|
2445
|
-
export function
|
|
2470
|
+
export function __wbg___wbindgen_throw_6ddd609b62940d55(arg0, arg1) {
|
|
2446
2471
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2447
2472
|
}
|
|
2448
|
-
export function
|
|
2473
|
+
export function __wbg__wbg_cb_unref_6b5b6b8576d35cb1(arg0) {
|
|
2449
2474
|
arg0._wbg_cb_unref();
|
|
2450
2475
|
}
|
|
2451
2476
|
export function __wbg_access_new(arg0) {
|
|
2452
2477
|
const ret = Access.__wrap(arg0);
|
|
2453
2478
|
return ret;
|
|
2454
2479
|
}
|
|
2455
|
-
export function
|
|
2480
|
+
export function __wbg_add_fe24b809ecd53906(arg0, arg1) {
|
|
2456
2481
|
const ret = arg0.add(arg1);
|
|
2457
2482
|
return ret;
|
|
2458
2483
|
}
|
|
@@ -2464,11 +2489,7 @@ export function __wbg_archive_new(arg0) {
|
|
|
2464
2489
|
const ret = Archive.__wrap(arg0);
|
|
2465
2490
|
return ret;
|
|
2466
2491
|
}
|
|
2467
|
-
export function
|
|
2468
|
-
const ret = arg0.call(arg1);
|
|
2469
|
-
return ret;
|
|
2470
|
-
}, arguments); }
|
|
2471
|
-
export function __wbg_call_4708e0c13bdc8e95() { return handleError(function (arg0, arg1, arg2) {
|
|
2492
|
+
export function __wbg_call_2d781c1f4d5c0ef8() { return handleError(function (arg0, arg1, arg2) {
|
|
2472
2493
|
const ret = arg0.call(arg1, arg2);
|
|
2473
2494
|
return ret;
|
|
2474
2495
|
}, arguments); }
|
|
@@ -2496,28 +2517,28 @@ export function __wbg_contactcard_new(arg0) {
|
|
|
2496
2517
|
const ret = ContactCard.__wrap(arg0);
|
|
2497
2518
|
return ret;
|
|
2498
2519
|
}
|
|
2499
|
-
export function
|
|
2520
|
+
export function __wbg_crypto_38df2bab126b63dc(arg0) {
|
|
2500
2521
|
const ret = arg0.crypto;
|
|
2501
2522
|
return ret;
|
|
2502
2523
|
}
|
|
2503
|
-
export function
|
|
2524
|
+
export function __wbg_debug_1995429f18ef72ac(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
2504
2525
|
let deferred0_0;
|
|
2505
2526
|
let deferred0_1;
|
|
2506
2527
|
try {
|
|
2507
2528
|
deferred0_0 = arg0;
|
|
2508
2529
|
deferred0_1 = arg1;
|
|
2509
|
-
console.debug(getStringFromWasm0(arg0, arg1));
|
|
2530
|
+
console.debug(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
2510
2531
|
} finally {
|
|
2511
2532
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2512
2533
|
}
|
|
2513
2534
|
}
|
|
2514
|
-
export function
|
|
2535
|
+
export function __wbg_debug_3003e89da631cad7(arg0, arg1) {
|
|
2515
2536
|
let deferred0_0;
|
|
2516
2537
|
let deferred0_1;
|
|
2517
2538
|
try {
|
|
2518
2539
|
deferred0_0 = arg0;
|
|
2519
2540
|
deferred0_1 = arg1;
|
|
2520
|
-
console.debug(getStringFromWasm0(arg0, arg1)
|
|
2541
|
+
console.debug(getStringFromWasm0(arg0, arg1));
|
|
2521
2542
|
} finally {
|
|
2522
2543
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2523
2544
|
}
|
|
@@ -2534,7 +2555,7 @@ export function __wbg_encryptedcontentwithupdate_new(arg0) {
|
|
|
2534
2555
|
const ret = EncryptedContentWithUpdate.__wrap(arg0);
|
|
2535
2556
|
return ret;
|
|
2536
2557
|
}
|
|
2537
|
-
export function
|
|
2558
|
+
export function __wbg_error_8b62d3db440cf4a8(arg0, arg1) {
|
|
2538
2559
|
let deferred0_0;
|
|
2539
2560
|
let deferred0_1;
|
|
2540
2561
|
try {
|
|
@@ -2545,7 +2566,7 @@ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
|
2545
2566
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2546
2567
|
}
|
|
2547
2568
|
}
|
|
2548
|
-
export function
|
|
2569
|
+
export function __wbg_error_a6fa202b58aa1cd3(arg0, arg1) {
|
|
2549
2570
|
let deferred0_0;
|
|
2550
2571
|
let deferred0_1;
|
|
2551
2572
|
try {
|
|
@@ -2556,7 +2577,7 @@ export function __wbg_error_be2b0d69ec6dd379(arg0, arg1) {
|
|
|
2556
2577
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2557
2578
|
}
|
|
2558
2579
|
}
|
|
2559
|
-
export function
|
|
2580
|
+
export function __wbg_error_c90492381694a8af(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
2560
2581
|
let deferred0_0;
|
|
2561
2582
|
let deferred0_1;
|
|
2562
2583
|
try {
|
|
@@ -2571,11 +2592,11 @@ export function __wbg_event_new(arg0) {
|
|
|
2571
2592
|
const ret = Event.__wrap(arg0);
|
|
2572
2593
|
return ret;
|
|
2573
2594
|
}
|
|
2574
|
-
export function
|
|
2595
|
+
export function __wbg_exportKey_c43b919dba5a1db2() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2575
2596
|
const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
|
|
2576
2597
|
return ret;
|
|
2577
2598
|
}, arguments); }
|
|
2578
|
-
export function
|
|
2599
|
+
export function __wbg_generateKey_96afd66c8fa9121f() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2579
2600
|
const ret = arg0.generateKey(getStringFromWasm0(arg1, arg2), arg3 !== 0, arg4);
|
|
2580
2601
|
return ret;
|
|
2581
2602
|
}, arguments); }
|
|
@@ -2583,22 +2604,22 @@ export function __wbg_generatewebcryptoerror_new(arg0) {
|
|
|
2583
2604
|
const ret = GenerateWebCryptoError.__wrap(arg0);
|
|
2584
2605
|
return ret;
|
|
2585
2606
|
}
|
|
2586
|
-
export function
|
|
2607
|
+
export function __wbg_getRandomValues_c44a50d8cfdaebeb() { return handleError(function (arg0, arg1) {
|
|
2587
2608
|
arg0.getRandomValues(arg1);
|
|
2588
2609
|
}, arguments); }
|
|
2589
|
-
export function
|
|
2590
|
-
const ret = arg0[arg1 >>> 0];
|
|
2591
|
-
return ret;
|
|
2592
|
-
}
|
|
2593
|
-
export function __wbg_get_b3ed3ad4be2bc8ac() { return handleError(function (arg0, arg1) {
|
|
2610
|
+
export function __wbg_get_3ef1eba1850ade27() { return handleError(function (arg0, arg1) {
|
|
2594
2611
|
const ret = Reflect.get(arg0, arg1);
|
|
2595
2612
|
return ret;
|
|
2596
2613
|
}, arguments); }
|
|
2597
|
-
export function
|
|
2614
|
+
export function __wbg_get_a8ee5c45dabc1b3b(arg0, arg1) {
|
|
2615
|
+
const ret = arg0[arg1 >>> 0];
|
|
2616
|
+
return ret;
|
|
2617
|
+
}
|
|
2618
|
+
export function __wbg_get_private_key_4010ec7c01b9492f(arg0) {
|
|
2598
2619
|
const ret = arg0.privateKey;
|
|
2599
2620
|
return ret;
|
|
2600
2621
|
}
|
|
2601
|
-
export function
|
|
2622
|
+
export function __wbg_get_public_key_dcea0d78f1697f0b(arg0) {
|
|
2602
2623
|
const ret = arg0.publicKey;
|
|
2603
2624
|
return ret;
|
|
2604
2625
|
}
|
|
@@ -2610,7 +2631,7 @@ export function __wbg_individual_new(arg0) {
|
|
|
2610
2631
|
const ret = Individual.__wrap(arg0);
|
|
2611
2632
|
return ret;
|
|
2612
2633
|
}
|
|
2613
|
-
export function
|
|
2634
|
+
export function __wbg_instanceof_Crypto_5c2a4c15287b0332(arg0) {
|
|
2614
2635
|
let result;
|
|
2615
2636
|
try {
|
|
2616
2637
|
result = arg0 instanceof Crypto;
|
|
@@ -2624,40 +2645,40 @@ export function __wbg_keyhive_new(arg0) {
|
|
|
2624
2645
|
const ret = Keyhive.__wrap(arg0);
|
|
2625
2646
|
return ret;
|
|
2626
2647
|
}
|
|
2627
|
-
export function
|
|
2648
|
+
export function __wbg_length_b3416cf66a5452c8(arg0) {
|
|
2628
2649
|
const ret = arg0.length;
|
|
2629
2650
|
return ret;
|
|
2630
2651
|
}
|
|
2631
|
-
export function
|
|
2652
|
+
export function __wbg_length_ea16607d7b61445b(arg0) {
|
|
2632
2653
|
const ret = arg0.length;
|
|
2633
2654
|
return ret;
|
|
2634
2655
|
}
|
|
2635
|
-
export function
|
|
2656
|
+
export function __wbg_log_17a3e9a5cbb91ef7(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
2636
2657
|
let deferred0_0;
|
|
2637
2658
|
let deferred0_1;
|
|
2638
2659
|
try {
|
|
2639
2660
|
deferred0_0 = arg0;
|
|
2640
2661
|
deferred0_1 = arg1;
|
|
2641
|
-
console.log(getStringFromWasm0(arg0, arg1));
|
|
2662
|
+
console.log(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
2642
2663
|
} finally {
|
|
2643
2664
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2644
2665
|
}
|
|
2645
2666
|
}
|
|
2646
|
-
export function
|
|
2667
|
+
export function __wbg_log_e885b89e7e480a2f(arg0, arg1) {
|
|
2647
2668
|
let deferred0_0;
|
|
2648
2669
|
let deferred0_1;
|
|
2649
2670
|
try {
|
|
2650
2671
|
deferred0_0 = arg0;
|
|
2651
2672
|
deferred0_1 = arg1;
|
|
2652
|
-
console.log(getStringFromWasm0(arg0, arg1)
|
|
2673
|
+
console.log(getStringFromWasm0(arg0, arg1));
|
|
2653
2674
|
} finally {
|
|
2654
2675
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2655
2676
|
}
|
|
2656
2677
|
}
|
|
2657
|
-
export function
|
|
2678
|
+
export function __wbg_mark_0279c5d75168b5b8(arg0, arg1) {
|
|
2658
2679
|
performance.mark(getStringFromWasm0(arg0, arg1));
|
|
2659
2680
|
}
|
|
2660
|
-
export function
|
|
2681
|
+
export function __wbg_measure_c9b58ac538b3e2f7() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2661
2682
|
let deferred0_0;
|
|
2662
2683
|
let deferred0_1;
|
|
2663
2684
|
let deferred1_0;
|
|
@@ -2677,34 +2698,50 @@ export function __wbg_membership_new(arg0) {
|
|
|
2677
2698
|
const ret = Membership.__wrap(arg0);
|
|
2678
2699
|
return ret;
|
|
2679
2700
|
}
|
|
2680
|
-
export function
|
|
2701
|
+
export function __wbg_msCrypto_bd5a034af96bcba6(arg0) {
|
|
2681
2702
|
const ret = arg0.msCrypto;
|
|
2682
2703
|
return ret;
|
|
2683
2704
|
}
|
|
2684
|
-
export function
|
|
2685
|
-
const ret = new
|
|
2705
|
+
export function __wbg_new_227d7c05414eb861() {
|
|
2706
|
+
const ret = new Error();
|
|
2707
|
+
return ret;
|
|
2708
|
+
}
|
|
2709
|
+
export function __wbg_new_49d5571bd3f0c4d4() {
|
|
2710
|
+
const ret = new Map();
|
|
2711
|
+
return ret;
|
|
2712
|
+
}
|
|
2713
|
+
export function __wbg_new_5f486cdf45a04d78(arg0) {
|
|
2714
|
+
const ret = new Uint8Array(arg0);
|
|
2686
2715
|
return ret;
|
|
2687
2716
|
}
|
|
2688
|
-
export function
|
|
2717
|
+
export function __wbg_new_76edacb349be146a(arg0) {
|
|
2689
2718
|
const ret = new Set(arg0);
|
|
2690
2719
|
return ret;
|
|
2691
2720
|
}
|
|
2692
|
-
export function
|
|
2721
|
+
export function __wbg_new_a70fbab9066b301f() {
|
|
2722
|
+
const ret = new Array();
|
|
2723
|
+
return ret;
|
|
2724
|
+
}
|
|
2725
|
+
export function __wbg_new_ab79df5bd7c26067() {
|
|
2726
|
+
const ret = new Object();
|
|
2727
|
+
return ret;
|
|
2728
|
+
}
|
|
2729
|
+
export function __wbg_new_d15cb560a6a0e5f0(arg0, arg1) {
|
|
2693
2730
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2694
2731
|
return ret;
|
|
2695
2732
|
}
|
|
2696
|
-
export function
|
|
2697
|
-
const ret = new
|
|
2733
|
+
export function __wbg_new_from_slice_22da9388ac046e50(arg0, arg1) {
|
|
2734
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
2698
2735
|
return ret;
|
|
2699
2736
|
}
|
|
2700
|
-
export function
|
|
2737
|
+
export function __wbg_new_typed_aaaeaf29cf802876(arg0, arg1) {
|
|
2701
2738
|
try {
|
|
2702
2739
|
var state0 = {a: arg0, b: arg1};
|
|
2703
2740
|
var cb0 = (arg0, arg1) => {
|
|
2704
2741
|
const a = state0.a;
|
|
2705
2742
|
state0.a = 0;
|
|
2706
2743
|
try {
|
|
2707
|
-
return
|
|
2744
|
+
return wasm_bindgen__convert__closures_____invoke__h5c957a02635b6d5a(a, state0.b, arg0, arg1);
|
|
2708
2745
|
} finally {
|
|
2709
2746
|
state0.a = a;
|
|
2710
2747
|
}
|
|
@@ -2715,71 +2752,59 @@ export function __wbg_new_b5d9e2fb389fef91(arg0, arg1) {
|
|
|
2715
2752
|
state0.a = state0.b = 0;
|
|
2716
2753
|
}
|
|
2717
2754
|
}
|
|
2718
|
-
export function
|
|
2719
|
-
const ret = new Map();
|
|
2720
|
-
return ret;
|
|
2721
|
-
}
|
|
2722
|
-
export function __wbg_new_dd2b680c8bf6ae29(arg0) {
|
|
2723
|
-
const ret = new Uint8Array(arg0);
|
|
2724
|
-
return ret;
|
|
2725
|
-
}
|
|
2726
|
-
export function __wbg_new_from_slice_a3d2629dc1826784(arg0, arg1) {
|
|
2727
|
-
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
2728
|
-
return ret;
|
|
2729
|
-
}
|
|
2730
|
-
export function __wbg_new_no_args_1c7c842f08d00ebb(arg0, arg1) {
|
|
2731
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
2732
|
-
return ret;
|
|
2733
|
-
}
|
|
2734
|
-
export function __wbg_new_with_length_a2c39cbe88fd8ff1(arg0) {
|
|
2755
|
+
export function __wbg_new_with_length_825018a1616e9e55(arg0) {
|
|
2735
2756
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
2736
2757
|
return ret;
|
|
2737
2758
|
}
|
|
2738
|
-
export function
|
|
2759
|
+
export function __wbg_node_84ea875411254db1(arg0) {
|
|
2739
2760
|
const ret = arg0.node;
|
|
2740
2761
|
return ret;
|
|
2741
2762
|
}
|
|
2742
|
-
export function
|
|
2763
|
+
export function __wbg_process_44c7a14e11e9f69e(arg0) {
|
|
2743
2764
|
const ret = arg0.process;
|
|
2744
2765
|
return ret;
|
|
2745
2766
|
}
|
|
2746
|
-
export function
|
|
2767
|
+
export function __wbg_prototypesetcall_d62e5099504357e6(arg0, arg1, arg2) {
|
|
2747
2768
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
2748
2769
|
}
|
|
2749
|
-
export function
|
|
2770
|
+
export function __wbg_push_e87b0e732085a946(arg0, arg1) {
|
|
2750
2771
|
const ret = arg0.push(arg1);
|
|
2751
2772
|
return ret;
|
|
2752
2773
|
}
|
|
2753
|
-
export function
|
|
2774
|
+
export function __wbg_queueMicrotask_0c399741342fb10f(arg0) {
|
|
2754
2775
|
const ret = arg0.queueMicrotask;
|
|
2755
2776
|
return ret;
|
|
2756
2777
|
}
|
|
2757
|
-
export function
|
|
2778
|
+
export function __wbg_queueMicrotask_a082d78ce798393e(arg0) {
|
|
2758
2779
|
queueMicrotask(arg0);
|
|
2759
2780
|
}
|
|
2760
|
-
export function
|
|
2781
|
+
export function __wbg_randomFillSync_6c25eac9869eb53c() { return handleError(function (arg0, arg1) {
|
|
2761
2782
|
arg0.randomFillSync(arg1);
|
|
2762
2783
|
}, arguments); }
|
|
2763
|
-
export function
|
|
2784
|
+
export function __wbg_require_b4edbdcf3e2a1ef0() { return handleError(function () {
|
|
2764
2785
|
const ret = module.require;
|
|
2765
2786
|
return ret;
|
|
2766
2787
|
}, arguments); }
|
|
2767
|
-
export function
|
|
2788
|
+
export function __wbg_resolve_ae8d83246e5bcc12(arg0) {
|
|
2768
2789
|
const ret = Promise.resolve(arg0);
|
|
2769
2790
|
return ret;
|
|
2770
2791
|
}
|
|
2771
|
-
export function
|
|
2792
|
+
export function __wbg_set_7eaa4f96924fd6b3() { return handleError(function (arg0, arg1, arg2) {
|
|
2793
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
2794
|
+
return ret;
|
|
2795
|
+
}, arguments); }
|
|
2796
|
+
export function __wbg_set_bf7251625df30a02(arg0, arg1, arg2) {
|
|
2772
2797
|
const ret = arg0.set(arg1, arg2);
|
|
2773
2798
|
return ret;
|
|
2774
2799
|
}
|
|
2775
|
-
export function
|
|
2800
|
+
export function __wbg_set_name_7ef37fe858379aaf(arg0, arg1, arg2) {
|
|
2776
2801
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
2777
2802
|
}
|
|
2778
2803
|
export function __wbg_sharekey_new(arg0) {
|
|
2779
2804
|
const ret = ShareKey.__wrap(arg0);
|
|
2780
2805
|
return ret;
|
|
2781
2806
|
}
|
|
2782
|
-
export function
|
|
2807
|
+
export function __wbg_sign_a34d057afd14c54d() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2783
2808
|
const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
2784
2809
|
return ret;
|
|
2785
2810
|
}, arguments); }
|
|
@@ -2799,26 +2824,26 @@ export function __wbg_signer_new(arg0) {
|
|
|
2799
2824
|
const ret = Signer.__wrap(arg0);
|
|
2800
2825
|
return ret;
|
|
2801
2826
|
}
|
|
2802
|
-
export function
|
|
2827
|
+
export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
2803
2828
|
const ret = arg1.stack;
|
|
2804
2829
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2805
2830
|
const len1 = WASM_VECTOR_LEN;
|
|
2806
2831
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2807
2832
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2808
2833
|
}
|
|
2809
|
-
export function
|
|
2834
|
+
export function __wbg_static_accessor_GLOBAL_8adb955bd33fac2f() {
|
|
2810
2835
|
const ret = typeof global === 'undefined' ? null : global;
|
|
2811
2836
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2812
2837
|
}
|
|
2813
|
-
export function
|
|
2838
|
+
export function __wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913() {
|
|
2814
2839
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
2815
2840
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2816
2841
|
}
|
|
2817
|
-
export function
|
|
2842
|
+
export function __wbg_static_accessor_SELF_f207c857566db248() {
|
|
2818
2843
|
const ret = typeof self === 'undefined' ? null : self;
|
|
2819
2844
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2820
2845
|
}
|
|
2821
|
-
export function
|
|
2846
|
+
export function __wbg_static_accessor_WINDOW_bb9f1ba69d61b386() {
|
|
2822
2847
|
const ret = typeof window === 'undefined' ? null : window;
|
|
2823
2848
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2824
2849
|
}
|
|
@@ -2826,11 +2851,11 @@ export function __wbg_stats_new(arg0) {
|
|
|
2826
2851
|
const ret = Stats.__wrap(arg0);
|
|
2827
2852
|
return ret;
|
|
2828
2853
|
}
|
|
2829
|
-
export function
|
|
2854
|
+
export function __wbg_subarray_a068d24e39478a8a(arg0, arg1, arg2) {
|
|
2830
2855
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
2831
2856
|
return ret;
|
|
2832
2857
|
}
|
|
2833
|
-
export function
|
|
2858
|
+
export function __wbg_subtle_c060fa3eb5c6248d(arg0) {
|
|
2834
2859
|
const ret = arg0.subtle;
|
|
2835
2860
|
return ret;
|
|
2836
2861
|
}
|
|
@@ -2838,19 +2863,19 @@ export function __wbg_summary_new(arg0) {
|
|
|
2838
2863
|
const ret = Summary.__wrap(arg0);
|
|
2839
2864
|
return ret;
|
|
2840
2865
|
}
|
|
2841
|
-
export function
|
|
2842
|
-
const ret = arg0.then(arg1
|
|
2866
|
+
export function __wbg_then_098abe61755d12f6(arg0, arg1) {
|
|
2867
|
+
const ret = arg0.then(arg1);
|
|
2843
2868
|
return ret;
|
|
2844
2869
|
}
|
|
2845
|
-
export function
|
|
2846
|
-
const ret = arg0.then(arg1);
|
|
2870
|
+
export function __wbg_then_9e335f6dd892bc11(arg0, arg1, arg2) {
|
|
2871
|
+
const ret = arg0.then(arg1, arg2);
|
|
2847
2872
|
return ret;
|
|
2848
2873
|
}
|
|
2849
|
-
export function
|
|
2874
|
+
export function __wbg_versions_276b2795b1c6a219(arg0) {
|
|
2850
2875
|
const ret = arg0.versions;
|
|
2851
2876
|
return ret;
|
|
2852
2877
|
}
|
|
2853
|
-
export function
|
|
2878
|
+
export function __wbg_warn_2a49b47d25e1e018(arg0, arg1) {
|
|
2854
2879
|
let deferred0_0;
|
|
2855
2880
|
let deferred0_1;
|
|
2856
2881
|
try {
|
|
@@ -2861,7 +2886,7 @@ export function __wbg_warn_c6311e9cb983aa2a(arg0, arg1) {
|
|
|
2861
2886
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2862
2887
|
}
|
|
2863
2888
|
}
|
|
2864
|
-
export function
|
|
2889
|
+
export function __wbg_warn_9d7408e9659996aa(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
2865
2890
|
let deferred0_0;
|
|
2866
2891
|
let deferred0_1;
|
|
2867
2892
|
try {
|
|
@@ -2873,8 +2898,8 @@ export function __wbg_warn_de3a09d072c895e6(arg0, arg1, arg2, arg3, arg4, arg5,
|
|
|
2873
2898
|
}
|
|
2874
2899
|
}
|
|
2875
2900
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
2876
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
2877
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
2901
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 487, function: Function { arguments: [Externref], shim_idx: 488, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2902
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0452d9a60e6a6e8e, wasm_bindgen__convert__closures_____invoke__h8c3a4ba41bec4c78);
|
|
2878
2903
|
return ret;
|
|
2879
2904
|
}
|
|
2880
2905
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
@@ -2945,23 +2970,17 @@ export function __wbindgen_init_externref_table() {
|
|
|
2945
2970
|
table.set(offset + 2, true);
|
|
2946
2971
|
table.set(offset + 3, false);
|
|
2947
2972
|
}
|
|
2948
|
-
function
|
|
2949
|
-
wasm.
|
|
2973
|
+
function wasm_bindgen__convert__closures_____invoke__h8c3a4ba41bec4c78(arg0, arg1, arg2) {
|
|
2974
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h8c3a4ba41bec4c78(arg0, arg1, arg2);
|
|
2975
|
+
if (ret[1]) {
|
|
2976
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
2977
|
+
}
|
|
2950
2978
|
}
|
|
2951
2979
|
|
|
2952
|
-
function
|
|
2953
|
-
wasm.
|
|
2980
|
+
function wasm_bindgen__convert__closures_____invoke__h5c957a02635b6d5a(arg0, arg1, arg2, arg3) {
|
|
2981
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h5c957a02635b6d5a(arg0, arg1, arg2, arg3);
|
|
2954
2982
|
}
|
|
2955
2983
|
|
|
2956
|
-
const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2957
|
-
? { register: () => {}, unregister: () => {} }
|
|
2958
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_access_free(ptr >>> 0, 1));
|
|
2959
|
-
const AgentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2960
|
-
? { register: () => {}, unregister: () => {} }
|
|
2961
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_agent_free(ptr >>> 0, 1));
|
|
2962
|
-
const ArchiveFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2963
|
-
? { register: () => {}, unregister: () => {} }
|
|
2964
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_archive_free(ptr >>> 0, 1));
|
|
2965
2984
|
const CannotParseEd25519SigningKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2966
2985
|
? { register: () => {}, unregister: () => {} }
|
|
2967
2986
|
: new FinalizationRegistry(ptr => wasm.__wbg_cannotparseed25519signingkey_free(ptr >>> 0, 1));
|
|
@@ -2971,6 +2990,18 @@ const CannotParseIdentifierFinalization = (typeof FinalizationRegistry === 'unde
|
|
|
2971
2990
|
const CapabilityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2972
2991
|
? { register: () => {}, unregister: () => {} }
|
|
2973
2992
|
: new FinalizationRegistry(ptr => wasm.__wbg_capability_free(ptr >>> 0, 1));
|
|
2993
|
+
const DocContentRefsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2994
|
+
? { register: () => {}, unregister: () => {} }
|
|
2995
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_doccontentrefs_free(ptr >>> 0, 1));
|
|
2996
|
+
const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2997
|
+
? { register: () => {}, unregister: () => {} }
|
|
2998
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_access_free(ptr >>> 0, 1));
|
|
2999
|
+
const AgentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3000
|
+
? { register: () => {}, unregister: () => {} }
|
|
3001
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_agent_free(ptr >>> 0, 1));
|
|
3002
|
+
const ArchiveFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3003
|
+
? { register: () => {}, unregister: () => {} }
|
|
3004
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_archive_free(ptr >>> 0, 1));
|
|
2974
3005
|
const CgkaOperationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2975
3006
|
? { register: () => {}, unregister: () => {} }
|
|
2976
3007
|
: new FinalizationRegistry(ptr => wasm.__wbg_cgkaoperation_free(ptr >>> 0, 1));
|
|
@@ -2986,9 +3017,6 @@ const ContactCardFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
2986
3017
|
const DelegationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2987
3018
|
? { register: () => {}, unregister: () => {} }
|
|
2988
3019
|
: new FinalizationRegistry(ptr => wasm.__wbg_delegation_free(ptr >>> 0, 1));
|
|
2989
|
-
const DocContentRefsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2990
|
-
? { register: () => {}, unregister: () => {} }
|
|
2991
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_doccontentrefs_free(ptr >>> 0, 1));
|
|
2992
3020
|
const DocumentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2993
3021
|
? { register: () => {}, unregister: () => {} }
|
|
2994
3022
|
: new FinalizationRegistry(ptr => wasm.__wbg_document_free(ptr >>> 0, 1));
|
|
@@ -3034,9 +3062,6 @@ const KeyhiveFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
3034
3062
|
const MemberedFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3035
3063
|
? { register: () => {}, unregister: () => {} }
|
|
3036
3064
|
: new FinalizationRegistry(ptr => wasm.__wbg_membered_free(ptr >>> 0, 1));
|
|
3037
|
-
const MembershipFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3038
|
-
? { register: () => {}, unregister: () => {} }
|
|
3039
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_membership_free(ptr >>> 0, 1));
|
|
3040
3065
|
const PeerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3041
3066
|
? { register: () => {}, unregister: () => {} }
|
|
3042
3067
|
: new FinalizationRegistry(ptr => wasm.__wbg_peer_free(ptr >>> 0, 1));
|
|
@@ -3067,6 +3092,9 @@ const SignerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
3067
3092
|
const StatsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3068
3093
|
? { register: () => {}, unregister: () => {} }
|
|
3069
3094
|
: new FinalizationRegistry(ptr => wasm.__wbg_stats_free(ptr >>> 0, 1));
|
|
3095
|
+
const MembershipFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3096
|
+
? { register: () => {}, unregister: () => {} }
|
|
3097
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_membership_free(ptr >>> 0, 1));
|
|
3070
3098
|
const SummaryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3071
3099
|
? { register: () => {}, unregister: () => {} }
|
|
3072
3100
|
: new FinalizationRegistry(ptr => wasm.__wbg_summary_free(ptr >>> 0, 1));
|
package/pkg/keyhive_wasm_bg.wasm
CHANGED
|
Binary file
|