@keyhive/keyhive 0.1.0-alpha.2 → 0.1.0-alpha.4
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/pkg/keyhive_wasm.d.ts +55 -18
- package/pkg/keyhive_wasm.js +1 -1
- package/pkg/keyhive_wasm_bg.js +206 -85
- package/pkg/keyhive_wasm_bg.wasm +0 -0
- package/pkg/keyhive_wasm_bg.wasm.d.ts +115 -108
- package/pkg-node/keyhive_wasm.d.ts +55 -18
- package/pkg-node/keyhive_wasm.js +209 -85
- package/pkg-node/keyhive_wasm_bg.wasm +0 -0
- package/pkg-node/keyhive_wasm_bg.wasm.d.ts +115 -108
- package/pkg-slim/keyhive_wasm.d.ts +170 -126
- package/pkg-slim/keyhive_wasm.js +206 -85
- 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 +115 -108
package/pkg-slim/keyhive_wasm.js
CHANGED
|
@@ -46,8 +46,7 @@ export class Access {
|
|
|
46
46
|
if (Symbol.dispose) Access.prototype[Symbol.dispose] = Access.prototype.free;
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* The result of adding a member: the membership delegation
|
|
50
|
-
* secrets produced by auto-rekeying a non-forward-secret document on add.
|
|
49
|
+
* The result of adding a member: the membership delegation.
|
|
51
50
|
*/
|
|
52
51
|
export class AddMemberUpdate {
|
|
53
52
|
static __wrap(ptr) {
|
|
@@ -73,24 +72,6 @@ export class AddMemberUpdate {
|
|
|
73
72
|
const ret = wasm.addmemberupdate_delegation(this.__wbg_ptr);
|
|
74
73
|
return SignedDelegation.__wrap(ret);
|
|
75
74
|
}
|
|
76
|
-
/**
|
|
77
|
-
* New leaf secret keypairs from auto-rekeying a non-forward-secret document
|
|
78
|
-
* when this reader was added, serialized as a
|
|
79
|
-
* `BTreeMap<ShareKey, ShareSecretKey>` (the format `importPrekeySecrets`
|
|
80
|
-
* accepts). A sibling instance of this identity (e.g. a tab and its
|
|
81
|
-
* SharedWorker) installs them to derive the rotated key. `undefined` when
|
|
82
|
-
* no rotation occurred (a forward-secret document).
|
|
83
|
-
* @returns {Uint8Array | undefined}
|
|
84
|
-
*/
|
|
85
|
-
get leafSecrets() {
|
|
86
|
-
const ret = wasm.addmemberupdate_leafSecrets(this.__wbg_ptr);
|
|
87
|
-
let v1;
|
|
88
|
-
if (ret[0] !== 0) {
|
|
89
|
-
v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
90
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
91
|
-
}
|
|
92
|
-
return v1;
|
|
93
|
-
}
|
|
94
75
|
}
|
|
95
76
|
if (Symbol.dispose) AddMemberUpdate.prototype[Symbol.dispose] = AddMemberUpdate.prototype.free;
|
|
96
77
|
|
|
@@ -603,6 +584,51 @@ export class ContactCard {
|
|
|
603
584
|
}
|
|
604
585
|
if (Symbol.dispose) ContactCard.prototype[Symbol.dispose] = ContactCard.prototype.free;
|
|
605
586
|
|
|
587
|
+
/**
|
|
588
|
+
* Plaintext plus the application secret key that decrypted it.
|
|
589
|
+
*
|
|
590
|
+
* The key lets the consumer recover the blob's external predecessor-secret
|
|
591
|
+
* chain and chain further encryptions onto it, without re-entering CGKA.
|
|
592
|
+
*/
|
|
593
|
+
export class DecryptedWithKey {
|
|
594
|
+
static __wrap(ptr) {
|
|
595
|
+
const obj = Object.create(DecryptedWithKey.prototype);
|
|
596
|
+
obj.__wbg_ptr = ptr;
|
|
597
|
+
DecryptedWithKeyFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
598
|
+
return obj;
|
|
599
|
+
}
|
|
600
|
+
__destroy_into_raw() {
|
|
601
|
+
const ptr = this.__wbg_ptr;
|
|
602
|
+
this.__wbg_ptr = 0;
|
|
603
|
+
DecryptedWithKeyFinalization.unregister(this);
|
|
604
|
+
return ptr;
|
|
605
|
+
}
|
|
606
|
+
free() {
|
|
607
|
+
const ptr = this.__destroy_into_raw();
|
|
608
|
+
wasm.__wbg_decryptedwithkey_free(ptr, 0);
|
|
609
|
+
}
|
|
610
|
+
/**
|
|
611
|
+
* The 32-byte application secret key used to decrypt this content.
|
|
612
|
+
* @returns {Uint8Array}
|
|
613
|
+
*/
|
|
614
|
+
get applicationSecret() {
|
|
615
|
+
const ret = wasm.decryptedwithkey_applicationSecret(this.__wbg_ptr);
|
|
616
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
617
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
618
|
+
return v1;
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* @returns {Uint8Array}
|
|
622
|
+
*/
|
|
623
|
+
get plaintext() {
|
|
624
|
+
const ret = wasm.decryptedwithkey_plaintext(this.__wbg_ptr);
|
|
625
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
626
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
627
|
+
return v1;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
if (Symbol.dispose) DecryptedWithKey.prototype[Symbol.dispose] = DecryptedWithKey.prototype.free;
|
|
631
|
+
|
|
606
632
|
export class Delegation {
|
|
607
633
|
static __wrap(ptr) {
|
|
608
634
|
const obj = Object.create(Delegation.prototype);
|
|
@@ -882,6 +908,24 @@ export class Encrypted {
|
|
|
882
908
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
883
909
|
return v1;
|
|
884
910
|
}
|
|
911
|
+
/**
|
|
912
|
+
* Decrypt this content with an explicit 32-byte application secret key,
|
|
913
|
+
* bypassing CGKA. The consumer uses this to follow the external
|
|
914
|
+
* predecessor-secret chain once it has recovered a blob's key.
|
|
915
|
+
* @param {Uint8Array} key
|
|
916
|
+
* @returns {Uint8Array}
|
|
917
|
+
*/
|
|
918
|
+
decryptWithKey(key) {
|
|
919
|
+
const ptr0 = passArray8ToWasm0(key, wasm.__wbindgen_malloc);
|
|
920
|
+
const len0 = WASM_VECTOR_LEN;
|
|
921
|
+
const ret = wasm.encrypted_decryptWithKey(this.__wbg_ptr, ptr0, len0);
|
|
922
|
+
if (ret[3]) {
|
|
923
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
924
|
+
}
|
|
925
|
+
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
926
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
927
|
+
return v2;
|
|
928
|
+
}
|
|
885
929
|
/**
|
|
886
930
|
* @param {Uint8Array} bytes
|
|
887
931
|
* @returns {Encrypted}
|
|
@@ -963,6 +1007,19 @@ export class EncryptedContentWithUpdate {
|
|
|
963
1007
|
const ptr = this.__destroy_into_raw();
|
|
964
1008
|
wasm.__wbg_encryptedcontentwithupdate_free(ptr, 0);
|
|
965
1009
|
}
|
|
1010
|
+
/**
|
|
1011
|
+
* The 32-byte application secret key used to encrypt this content.
|
|
1012
|
+
*
|
|
1013
|
+
* Lets the consumer build the external predecessor-secret chain and chain
|
|
1014
|
+
* further encryptions onto this blob.
|
|
1015
|
+
* @returns {Uint8Array}
|
|
1016
|
+
*/
|
|
1017
|
+
get applicationSecret() {
|
|
1018
|
+
const ret = wasm.encryptedcontentwithupdate_applicationSecret(this.__wbg_ptr);
|
|
1019
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1020
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1021
|
+
return v1;
|
|
1022
|
+
}
|
|
966
1023
|
/**
|
|
967
1024
|
* @returns {Encrypted}
|
|
968
1025
|
*/
|
|
@@ -1639,22 +1696,15 @@ export class Keyhive {
|
|
|
1639
1696
|
}
|
|
1640
1697
|
/**
|
|
1641
1698
|
* Initialize a peer.
|
|
1642
|
-
*
|
|
1643
|
-
* `forward_secrecy` is this peer's policy for all documents it creates or
|
|
1644
|
-
* receives. When `false`, documents carry the CGKA predecessor key chain
|
|
1645
|
-
* (a member added later reads the whole prior history) and adding a reader
|
|
1646
|
-
* auto-rekeys (see `addMember`'s `leafSecrets`). When `true`, a member
|
|
1647
|
-
* added later cannot read content from before they joined.
|
|
1648
1699
|
* @param {Signer} signer
|
|
1649
1700
|
* @param {CiphertextStore} ciphertext_store
|
|
1650
1701
|
* @param {Function} event_handler
|
|
1651
|
-
* @param {boolean} forward_secrecy
|
|
1652
1702
|
* @returns {Promise<Keyhive>}
|
|
1653
1703
|
*/
|
|
1654
|
-
static init(signer, ciphertext_store, event_handler
|
|
1704
|
+
static init(signer, ciphertext_store, event_handler) {
|
|
1655
1705
|
_assertClass(signer, Signer);
|
|
1656
1706
|
_assertClass(ciphertext_store, CiphertextStore);
|
|
1657
|
-
const ret = wasm.keyhive_init(signer.__wbg_ptr, ciphertext_store.__wbg_ptr, event_handler
|
|
1707
|
+
const ret = wasm.keyhive_init(signer.__wbg_ptr, ciphertext_store.__wbg_ptr, event_handler);
|
|
1658
1708
|
return ret;
|
|
1659
1709
|
}
|
|
1660
1710
|
/**
|
|
@@ -1752,6 +1802,21 @@ export class Keyhive {
|
|
|
1752
1802
|
const ret = wasm.keyhive_tryDecrypt(this.__wbg_ptr, doc.__wbg_ptr, encrypted.__wbg_ptr);
|
|
1753
1803
|
return ret;
|
|
1754
1804
|
}
|
|
1805
|
+
/**
|
|
1806
|
+
* Decrypt content and also return the 32-byte application secret key used.
|
|
1807
|
+
*
|
|
1808
|
+
* The consumer follows the external predecessor-secret chain from this key
|
|
1809
|
+
* with `Encrypted.decryptWithKey`, avoiding further CGKA dives.
|
|
1810
|
+
* @param {Document} doc
|
|
1811
|
+
* @param {Encrypted} encrypted
|
|
1812
|
+
* @returns {Promise<DecryptedWithKey>}
|
|
1813
|
+
*/
|
|
1814
|
+
tryDecryptWithKey(doc, encrypted) {
|
|
1815
|
+
_assertClass(doc, Document);
|
|
1816
|
+
_assertClass(encrypted, Encrypted);
|
|
1817
|
+
const ret = wasm.keyhive_tryDecryptWithKey(this.__wbg_ptr, doc.__wbg_ptr, encrypted.__wbg_ptr);
|
|
1818
|
+
return ret;
|
|
1819
|
+
}
|
|
1755
1820
|
/**
|
|
1756
1821
|
* @param {Document} doc
|
|
1757
1822
|
* @param {ChangeId} content_ref
|
|
@@ -2577,10 +2642,59 @@ if (Symbol.dispose) Summary.prototype[Symbol.dispose] = Summary.prototype.free;
|
|
|
2577
2642
|
export function setPanicHook() {
|
|
2578
2643
|
wasm.setPanicHook();
|
|
2579
2644
|
}
|
|
2645
|
+
|
|
2646
|
+
/**
|
|
2647
|
+
* Inverse of [`symmetric_encrypt`]. Reads `nonce(24) || ciphertext`.
|
|
2648
|
+
* @param {Uint8Array} key
|
|
2649
|
+
* @param {Uint8Array} blob
|
|
2650
|
+
* @returns {Uint8Array}
|
|
2651
|
+
*/
|
|
2652
|
+
export function symmetricDecrypt(key, blob) {
|
|
2653
|
+
const ptr0 = passArray8ToWasm0(key, wasm.__wbindgen_malloc);
|
|
2654
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2655
|
+
const ptr1 = passArray8ToWasm0(blob, wasm.__wbindgen_malloc);
|
|
2656
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2657
|
+
const ret = wasm.symmetricDecrypt(ptr0, len0, ptr1, len1);
|
|
2658
|
+
if (ret[3]) {
|
|
2659
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2660
|
+
}
|
|
2661
|
+
var v3 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2662
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2663
|
+
return v3;
|
|
2664
|
+
}
|
|
2665
|
+
|
|
2666
|
+
/**
|
|
2667
|
+
* AEAD-encrypt `plaintext` under a 32-byte `key`.
|
|
2668
|
+
*
|
|
2669
|
+
* `associated_data` flavors the synthetic nonce (e.g. the document or content
|
|
2670
|
+
* id) so identical plaintext under the same key in different contexts produces
|
|
2671
|
+
* distinct ciphertext. Returns `nonce(24) || ciphertext` (the ciphertext
|
|
2672
|
+
* includes the Poly1305 tag). The nonce is carried in the output, so
|
|
2673
|
+
* [`symmetric_decrypt`] does not need the associated data.
|
|
2674
|
+
* @param {Uint8Array} key
|
|
2675
|
+
* @param {Uint8Array} plaintext
|
|
2676
|
+
* @param {Uint8Array} associated_data
|
|
2677
|
+
* @returns {Uint8Array}
|
|
2678
|
+
*/
|
|
2679
|
+
export function symmetricEncrypt(key, plaintext, associated_data) {
|
|
2680
|
+
const ptr0 = passArray8ToWasm0(key, wasm.__wbindgen_malloc);
|
|
2681
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2682
|
+
const ptr1 = passArray8ToWasm0(plaintext, wasm.__wbindgen_malloc);
|
|
2683
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2684
|
+
const ptr2 = passArray8ToWasm0(associated_data, wasm.__wbindgen_malloc);
|
|
2685
|
+
const len2 = WASM_VECTOR_LEN;
|
|
2686
|
+
const ret = wasm.symmetricEncrypt(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
2687
|
+
if (ret[3]) {
|
|
2688
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2689
|
+
}
|
|
2690
|
+
var v4 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2691
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2692
|
+
return v4;
|
|
2693
|
+
}
|
|
2580
2694
|
function __wbg_get_imports() {
|
|
2581
2695
|
const import0 = {
|
|
2582
2696
|
__proto__: null,
|
|
2583
|
-
|
|
2697
|
+
__wbg_Error_92b29b0548f8b746: function(arg0, arg1) {
|
|
2584
2698
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
2585
2699
|
return ret;
|
|
2586
2700
|
},
|
|
@@ -2602,41 +2716,41 @@ function __wbg_get_imports() {
|
|
|
2602
2716
|
var ptr1 = ret.__destroy_into_raw();
|
|
2603
2717
|
return ptr1;
|
|
2604
2718
|
},
|
|
2605
|
-
|
|
2719
|
+
__wbg___wbindgen_debug_string_c25d447a39f5578f: function(arg0, arg1) {
|
|
2606
2720
|
const ret = debugString(arg1);
|
|
2607
2721
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2608
2722
|
const len1 = WASM_VECTOR_LEN;
|
|
2609
2723
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2610
2724
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2611
2725
|
},
|
|
2612
|
-
|
|
2726
|
+
__wbg___wbindgen_is_function_1ff95bcc5517c252: function(arg0) {
|
|
2613
2727
|
const ret = typeof(arg0) === 'function';
|
|
2614
2728
|
return ret;
|
|
2615
2729
|
},
|
|
2616
|
-
|
|
2730
|
+
__wbg___wbindgen_is_object_a27215656b807791: function(arg0) {
|
|
2617
2731
|
const val = arg0;
|
|
2618
2732
|
const ret = typeof(val) === 'object' && val !== null;
|
|
2619
2733
|
return ret;
|
|
2620
2734
|
},
|
|
2621
|
-
|
|
2735
|
+
__wbg___wbindgen_is_string_ea5e6cc2e4141dfe: function(arg0) {
|
|
2622
2736
|
const ret = typeof(arg0) === 'string';
|
|
2623
2737
|
return ret;
|
|
2624
2738
|
},
|
|
2625
|
-
|
|
2739
|
+
__wbg___wbindgen_is_undefined_c05833b95a3cf397: function(arg0) {
|
|
2626
2740
|
const ret = arg0 === undefined;
|
|
2627
2741
|
return ret;
|
|
2628
2742
|
},
|
|
2629
|
-
|
|
2743
|
+
__wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
|
|
2630
2744
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2631
2745
|
},
|
|
2632
|
-
|
|
2746
|
+
__wbg__wbg_cb_unref_fffb441def202758: function(arg0) {
|
|
2633
2747
|
arg0._wbg_cb_unref();
|
|
2634
2748
|
},
|
|
2635
2749
|
__wbg_access_new: function(arg0) {
|
|
2636
2750
|
const ret = Access.__wrap(arg0);
|
|
2637
2751
|
return ret;
|
|
2638
2752
|
},
|
|
2639
|
-
|
|
2753
|
+
__wbg_add_6c7b67a080be853e: function(arg0, arg1) {
|
|
2640
2754
|
const ret = arg0.add(arg1);
|
|
2641
2755
|
return ret;
|
|
2642
2756
|
},
|
|
@@ -2656,7 +2770,7 @@ function __wbg_get_imports() {
|
|
|
2656
2770
|
const ret = Archive.__wrap(arg0);
|
|
2657
2771
|
return ret;
|
|
2658
2772
|
},
|
|
2659
|
-
|
|
2773
|
+
__wbg_call_a6e5c5dce5018821: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2660
2774
|
const ret = arg0.call(arg1, arg2);
|
|
2661
2775
|
return ret;
|
|
2662
2776
|
}, arguments); },
|
|
@@ -2710,6 +2824,10 @@ function __wbg_get_imports() {
|
|
|
2710
2824
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2711
2825
|
}
|
|
2712
2826
|
},
|
|
2827
|
+
__wbg_decryptedwithkey_new: function(arg0) {
|
|
2828
|
+
const ret = DecryptedWithKey.__wrap(arg0);
|
|
2829
|
+
return ret;
|
|
2830
|
+
},
|
|
2713
2831
|
__wbg_doccontentrefs_new: function(arg0) {
|
|
2714
2832
|
const ret = DocContentRefs.__wrap(arg0);
|
|
2715
2833
|
return ret;
|
|
@@ -2759,11 +2877,11 @@ function __wbg_get_imports() {
|
|
|
2759
2877
|
const ret = Event.__wrap(arg0);
|
|
2760
2878
|
return ret;
|
|
2761
2879
|
},
|
|
2762
|
-
|
|
2880
|
+
__wbg_exportKey_31e8893b69d9dc95: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2763
2881
|
const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
|
|
2764
2882
|
return ret;
|
|
2765
2883
|
}, arguments); },
|
|
2766
|
-
|
|
2884
|
+
__wbg_generateKey_3ed60dd4e2cb2a81: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2767
2885
|
const ret = arg0.generateKey(getStringFromWasm0(arg1, arg2), arg3 !== 0, arg4);
|
|
2768
2886
|
return ret;
|
|
2769
2887
|
}, arguments); },
|
|
@@ -2774,19 +2892,19 @@ function __wbg_get_imports() {
|
|
|
2774
2892
|
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
2775
2893
|
arg0.getRandomValues(arg1);
|
|
2776
2894
|
}, arguments); },
|
|
2777
|
-
|
|
2895
|
+
__wbg_get_507a50627bffa49b: function(arg0, arg1) {
|
|
2778
2896
|
const ret = arg0[arg1 >>> 0];
|
|
2779
2897
|
return ret;
|
|
2780
2898
|
},
|
|
2781
|
-
|
|
2899
|
+
__wbg_get_78f252d074a84d0b: function() { return handleError(function (arg0, arg1) {
|
|
2782
2900
|
const ret = Reflect.get(arg0, arg1);
|
|
2783
2901
|
return ret;
|
|
2784
2902
|
}, arguments); },
|
|
2785
|
-
|
|
2903
|
+
__wbg_get_private_key_a1d2a3ef4e88bcd6: function(arg0) {
|
|
2786
2904
|
const ret = arg0.privateKey;
|
|
2787
2905
|
return ret;
|
|
2788
2906
|
},
|
|
2789
|
-
|
|
2907
|
+
__wbg_get_public_key_eae90acbeb39e965: function(arg0) {
|
|
2790
2908
|
const ret = arg0.publicKey;
|
|
2791
2909
|
return ret;
|
|
2792
2910
|
},
|
|
@@ -2798,7 +2916,7 @@ function __wbg_get_imports() {
|
|
|
2798
2916
|
const ret = Individual.__wrap(arg0);
|
|
2799
2917
|
return ret;
|
|
2800
2918
|
},
|
|
2801
|
-
|
|
2919
|
+
__wbg_instanceof_Crypto_5e73263038417c75: function(arg0) {
|
|
2802
2920
|
let result;
|
|
2803
2921
|
try {
|
|
2804
2922
|
result = arg0 instanceof Crypto;
|
|
@@ -2812,11 +2930,11 @@ function __wbg_get_imports() {
|
|
|
2812
2930
|
const ret = Keyhive.__wrap(arg0);
|
|
2813
2931
|
return ret;
|
|
2814
2932
|
},
|
|
2815
|
-
|
|
2933
|
+
__wbg_length_1f0964f4a5e2c6d8: function(arg0) {
|
|
2816
2934
|
const ret = arg0.length;
|
|
2817
2935
|
return ret;
|
|
2818
2936
|
},
|
|
2819
|
-
|
|
2937
|
+
__wbg_length_370319915dc99107: function(arg0) {
|
|
2820
2938
|
const ret = arg0.length;
|
|
2821
2939
|
return ret;
|
|
2822
2940
|
},
|
|
@@ -2873,38 +2991,38 @@ function __wbg_get_imports() {
|
|
|
2873
2991
|
const ret = new Error();
|
|
2874
2992
|
return ret;
|
|
2875
2993
|
},
|
|
2876
|
-
|
|
2877
|
-
const ret = new
|
|
2994
|
+
__wbg_new_32b398fb48b6d94a: function() {
|
|
2995
|
+
const ret = new Array();
|
|
2878
2996
|
return ret;
|
|
2879
2997
|
},
|
|
2880
|
-
|
|
2881
|
-
const ret = new
|
|
2998
|
+
__wbg_new_7796ffc7ed656783: function() {
|
|
2999
|
+
const ret = new Map();
|
|
2882
3000
|
return ret;
|
|
2883
3001
|
},
|
|
2884
|
-
|
|
2885
|
-
const ret = new
|
|
3002
|
+
__wbg_new_b667d279fd5aa943: function(arg0, arg1) {
|
|
3003
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2886
3004
|
return ret;
|
|
2887
3005
|
},
|
|
2888
|
-
|
|
3006
|
+
__wbg_new_cd45aabdf6073e84: function(arg0) {
|
|
2889
3007
|
const ret = new Uint8Array(arg0);
|
|
2890
3008
|
return ret;
|
|
2891
3009
|
},
|
|
2892
|
-
|
|
2893
|
-
const ret = new
|
|
3010
|
+
__wbg_new_e64f7b1e88921146: function(arg0) {
|
|
3011
|
+
const ret = new Set(arg0);
|
|
2894
3012
|
return ret;
|
|
2895
3013
|
},
|
|
2896
|
-
|
|
3014
|
+
__wbg_new_from_slice_77cdfb7977362f3c: function(arg0, arg1) {
|
|
2897
3015
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
2898
3016
|
return ret;
|
|
2899
3017
|
},
|
|
2900
|
-
|
|
3018
|
+
__wbg_new_typed_1824d93f294193e5: function(arg0, arg1) {
|
|
2901
3019
|
try {
|
|
2902
3020
|
var state0 = {a: arg0, b: arg1};
|
|
2903
3021
|
var cb0 = (arg0, arg1) => {
|
|
2904
3022
|
const a = state0.a;
|
|
2905
3023
|
state0.a = 0;
|
|
2906
3024
|
try {
|
|
2907
|
-
return
|
|
3025
|
+
return wasm_bindgen__convert__closures_____invoke__h58982df154245cbc(a, state0.b, arg0, arg1);
|
|
2908
3026
|
} finally {
|
|
2909
3027
|
state0.a = a;
|
|
2910
3028
|
}
|
|
@@ -2915,7 +3033,7 @@ function __wbg_get_imports() {
|
|
|
2915
3033
|
state0.a = 0;
|
|
2916
3034
|
}
|
|
2917
3035
|
},
|
|
2918
|
-
|
|
3036
|
+
__wbg_new_with_length_e6785c33c8e4cce8: function(arg0) {
|
|
2919
3037
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
2920
3038
|
return ret;
|
|
2921
3039
|
},
|
|
@@ -2927,18 +3045,18 @@ function __wbg_get_imports() {
|
|
|
2927
3045
|
const ret = arg0.process;
|
|
2928
3046
|
return ret;
|
|
2929
3047
|
},
|
|
2930
|
-
|
|
3048
|
+
__wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {
|
|
2931
3049
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
2932
3050
|
},
|
|
2933
|
-
|
|
3051
|
+
__wbg_push_d2ae3af0c1217ae6: function(arg0, arg1) {
|
|
2934
3052
|
const ret = arg0.push(arg1);
|
|
2935
3053
|
return ret;
|
|
2936
3054
|
},
|
|
2937
|
-
|
|
3055
|
+
__wbg_queueMicrotask_0ab5b2d2393e99b9: function(arg0) {
|
|
2938
3056
|
const ret = arg0.queueMicrotask;
|
|
2939
3057
|
return ret;
|
|
2940
3058
|
},
|
|
2941
|
-
|
|
3059
|
+
__wbg_queueMicrotask_6a09b7bc46549209: function(arg0) {
|
|
2942
3060
|
queueMicrotask(arg0);
|
|
2943
3061
|
},
|
|
2944
3062
|
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
@@ -2948,22 +3066,22 @@ function __wbg_get_imports() {
|
|
|
2948
3066
|
const ret = module.require;
|
|
2949
3067
|
return ret;
|
|
2950
3068
|
}, arguments); },
|
|
2951
|
-
|
|
3069
|
+
__wbg_resolve_2191a4dfe481c25b: function(arg0) {
|
|
2952
3070
|
const ret = Promise.resolve(arg0);
|
|
2953
3071
|
return ret;
|
|
2954
3072
|
},
|
|
2955
|
-
|
|
3073
|
+
__wbg_set_575dd786d51585f8: function(arg0, arg1, arg2) {
|
|
2956
3074
|
const ret = arg0.set(arg1, arg2);
|
|
2957
3075
|
return ret;
|
|
2958
3076
|
},
|
|
2959
|
-
|
|
3077
|
+
__wbg_set_name_3bbc583faefa4193: function(arg0, arg1, arg2) {
|
|
2960
3078
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
2961
3079
|
},
|
|
2962
3080
|
__wbg_sharekey_new: function(arg0) {
|
|
2963
3081
|
const ret = ShareKey.__wrap(arg0);
|
|
2964
3082
|
return ret;
|
|
2965
3083
|
},
|
|
2966
|
-
|
|
3084
|
+
__wbg_sign_1b8fb33c8d16115e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2967
3085
|
const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
2968
3086
|
return ret;
|
|
2969
3087
|
}, arguments); },
|
|
@@ -2990,19 +3108,19 @@ function __wbg_get_imports() {
|
|
|
2990
3108
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2991
3109
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2992
3110
|
},
|
|
2993
|
-
|
|
2994
|
-
const ret = typeof
|
|
3111
|
+
__wbg_static_accessor_GLOBAL_4ef717fb391d88b7: function() {
|
|
3112
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
2995
3113
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2996
3114
|
},
|
|
2997
|
-
|
|
2998
|
-
const ret = typeof
|
|
3115
|
+
__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4: function() {
|
|
3116
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
2999
3117
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3000
3118
|
},
|
|
3001
|
-
|
|
3119
|
+
__wbg_static_accessor_SELF_146583524fe1469b: function() {
|
|
3002
3120
|
const ret = typeof self === 'undefined' ? null : self;
|
|
3003
3121
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3004
3122
|
},
|
|
3005
|
-
|
|
3123
|
+
__wbg_static_accessor_WINDOW_f2829a2234d7819e: function() {
|
|
3006
3124
|
const ret = typeof window === 'undefined' ? null : window;
|
|
3007
3125
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3008
3126
|
},
|
|
@@ -3010,11 +3128,11 @@ function __wbg_get_imports() {
|
|
|
3010
3128
|
const ret = Stats.__wrap(arg0);
|
|
3011
3129
|
return ret;
|
|
3012
3130
|
},
|
|
3013
|
-
|
|
3131
|
+
__wbg_subarray_3ed232c8a6baee09: function(arg0, arg1, arg2) {
|
|
3014
3132
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3015
3133
|
return ret;
|
|
3016
3134
|
},
|
|
3017
|
-
|
|
3135
|
+
__wbg_subtle_ed1dfcaede24af07: function(arg0) {
|
|
3018
3136
|
const ret = arg0.subtle;
|
|
3019
3137
|
return ret;
|
|
3020
3138
|
},
|
|
@@ -3022,11 +3140,11 @@ function __wbg_get_imports() {
|
|
|
3022
3140
|
const ret = Summary.__wrap(arg0);
|
|
3023
3141
|
return ret;
|
|
3024
3142
|
},
|
|
3025
|
-
|
|
3143
|
+
__wbg_then_16d107c451e9905d: function(arg0, arg1, arg2) {
|
|
3026
3144
|
const ret = arg0.then(arg1, arg2);
|
|
3027
3145
|
return ret;
|
|
3028
3146
|
},
|
|
3029
|
-
|
|
3147
|
+
__wbg_then_6ec10ae38b3e92f7: function(arg0, arg1) {
|
|
3030
3148
|
const ret = arg0.then(arg1);
|
|
3031
3149
|
return ret;
|
|
3032
3150
|
},
|
|
@@ -3057,8 +3175,8 @@ function __wbg_get_imports() {
|
|
|
3057
3175
|
}
|
|
3058
3176
|
},
|
|
3059
3177
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
3060
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
3061
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3178
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 712, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3179
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h9887d5ab72723f8a);
|
|
3062
3180
|
return ret;
|
|
3063
3181
|
},
|
|
3064
3182
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
@@ -3143,15 +3261,15 @@ function __wbg_get_imports() {
|
|
|
3143
3261
|
};
|
|
3144
3262
|
}
|
|
3145
3263
|
|
|
3146
|
-
function
|
|
3147
|
-
const ret = wasm.
|
|
3264
|
+
function wasm_bindgen__convert__closures_____invoke__h9887d5ab72723f8a(arg0, arg1, arg2) {
|
|
3265
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h9887d5ab72723f8a(arg0, arg1, arg2);
|
|
3148
3266
|
if (ret[1]) {
|
|
3149
3267
|
throw takeFromExternrefTable0(ret[0]);
|
|
3150
3268
|
}
|
|
3151
3269
|
}
|
|
3152
3270
|
|
|
3153
|
-
function
|
|
3154
|
-
wasm.
|
|
3271
|
+
function wasm_bindgen__convert__closures_____invoke__h58982df154245cbc(arg0, arg1, arg2, arg3) {
|
|
3272
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h58982df154245cbc(arg0, arg1, arg2, arg3);
|
|
3155
3273
|
}
|
|
3156
3274
|
|
|
3157
3275
|
const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -3190,6 +3308,9 @@ const CiphertextStoreFinalization = (typeof FinalizationRegistry === 'undefined'
|
|
|
3190
3308
|
const ContactCardFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3191
3309
|
? { register: () => {}, unregister: () => {} }
|
|
3192
3310
|
: new FinalizationRegistry(ptr => wasm.__wbg_contactcard_free(ptr, 1));
|
|
3311
|
+
const DecryptedWithKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3312
|
+
? { register: () => {}, unregister: () => {} }
|
|
3313
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_decryptedwithkey_free(ptr, 1));
|
|
3193
3314
|
const DelegationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3194
3315
|
? { register: () => {}, unregister: () => {} }
|
|
3195
3316
|
: new FinalizationRegistry(ptr => wasm.__wbg_delegation_free(ptr, 1));
|
|
Binary file
|