@keyhive/keyhive 0.1.0-alpha.3 → 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-node/keyhive_wasm.js
CHANGED
|
@@ -47,8 +47,7 @@ if (Symbol.dispose) Access.prototype[Symbol.dispose] = Access.prototype.free;
|
|
|
47
47
|
exports.Access = Access;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
* The result of adding a member: the membership delegation
|
|
51
|
-
* secrets produced by auto-rekeying a non-forward-secret document on add.
|
|
50
|
+
* The result of adding a member: the membership delegation.
|
|
52
51
|
*/
|
|
53
52
|
class AddMemberUpdate {
|
|
54
53
|
static __wrap(ptr) {
|
|
@@ -74,24 +73,6 @@ class AddMemberUpdate {
|
|
|
74
73
|
const ret = wasm.addmemberupdate_delegation(this.__wbg_ptr);
|
|
75
74
|
return SignedDelegation.__wrap(ret);
|
|
76
75
|
}
|
|
77
|
-
/**
|
|
78
|
-
* New leaf secret keypairs from auto-rekeying a non-forward-secret document
|
|
79
|
-
* when this reader was added, serialized as a
|
|
80
|
-
* `BTreeMap<ShareKey, ShareSecretKey>` (the format `importPrekeySecrets`
|
|
81
|
-
* accepts). A sibling instance of this identity (e.g. a tab and its
|
|
82
|
-
* SharedWorker) installs them to derive the rotated key. `undefined` when
|
|
83
|
-
* no rotation occurred (a forward-secret document).
|
|
84
|
-
* @returns {Uint8Array | undefined}
|
|
85
|
-
*/
|
|
86
|
-
get leafSecrets() {
|
|
87
|
-
const ret = wasm.addmemberupdate_leafSecrets(this.__wbg_ptr);
|
|
88
|
-
let v1;
|
|
89
|
-
if (ret[0] !== 0) {
|
|
90
|
-
v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
91
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
92
|
-
}
|
|
93
|
-
return v1;
|
|
94
|
-
}
|
|
95
76
|
}
|
|
96
77
|
if (Symbol.dispose) AddMemberUpdate.prototype[Symbol.dispose] = AddMemberUpdate.prototype.free;
|
|
97
78
|
exports.AddMemberUpdate = AddMemberUpdate;
|
|
@@ -615,6 +596,52 @@ class ContactCard {
|
|
|
615
596
|
if (Symbol.dispose) ContactCard.prototype[Symbol.dispose] = ContactCard.prototype.free;
|
|
616
597
|
exports.ContactCard = ContactCard;
|
|
617
598
|
|
|
599
|
+
/**
|
|
600
|
+
* Plaintext plus the application secret key that decrypted it.
|
|
601
|
+
*
|
|
602
|
+
* The key lets the consumer recover the blob's external predecessor-secret
|
|
603
|
+
* chain and chain further encryptions onto it, without re-entering CGKA.
|
|
604
|
+
*/
|
|
605
|
+
class DecryptedWithKey {
|
|
606
|
+
static __wrap(ptr) {
|
|
607
|
+
const obj = Object.create(DecryptedWithKey.prototype);
|
|
608
|
+
obj.__wbg_ptr = ptr;
|
|
609
|
+
DecryptedWithKeyFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
610
|
+
return obj;
|
|
611
|
+
}
|
|
612
|
+
__destroy_into_raw() {
|
|
613
|
+
const ptr = this.__wbg_ptr;
|
|
614
|
+
this.__wbg_ptr = 0;
|
|
615
|
+
DecryptedWithKeyFinalization.unregister(this);
|
|
616
|
+
return ptr;
|
|
617
|
+
}
|
|
618
|
+
free() {
|
|
619
|
+
const ptr = this.__destroy_into_raw();
|
|
620
|
+
wasm.__wbg_decryptedwithkey_free(ptr, 0);
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* The 32-byte application secret key used to decrypt this content.
|
|
624
|
+
* @returns {Uint8Array}
|
|
625
|
+
*/
|
|
626
|
+
get applicationSecret() {
|
|
627
|
+
const ret = wasm.decryptedwithkey_applicationSecret(this.__wbg_ptr);
|
|
628
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
629
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
630
|
+
return v1;
|
|
631
|
+
}
|
|
632
|
+
/**
|
|
633
|
+
* @returns {Uint8Array}
|
|
634
|
+
*/
|
|
635
|
+
get plaintext() {
|
|
636
|
+
const ret = wasm.decryptedwithkey_plaintext(this.__wbg_ptr);
|
|
637
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
638
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
639
|
+
return v1;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
if (Symbol.dispose) DecryptedWithKey.prototype[Symbol.dispose] = DecryptedWithKey.prototype.free;
|
|
643
|
+
exports.DecryptedWithKey = DecryptedWithKey;
|
|
644
|
+
|
|
618
645
|
class Delegation {
|
|
619
646
|
static __wrap(ptr) {
|
|
620
647
|
const obj = Object.create(Delegation.prototype);
|
|
@@ -898,6 +925,24 @@ class Encrypted {
|
|
|
898
925
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
899
926
|
return v1;
|
|
900
927
|
}
|
|
928
|
+
/**
|
|
929
|
+
* Decrypt this content with an explicit 32-byte application secret key,
|
|
930
|
+
* bypassing CGKA. The consumer uses this to follow the external
|
|
931
|
+
* predecessor-secret chain once it has recovered a blob's key.
|
|
932
|
+
* @param {Uint8Array} key
|
|
933
|
+
* @returns {Uint8Array}
|
|
934
|
+
*/
|
|
935
|
+
decryptWithKey(key) {
|
|
936
|
+
const ptr0 = passArray8ToWasm0(key, wasm.__wbindgen_malloc);
|
|
937
|
+
const len0 = WASM_VECTOR_LEN;
|
|
938
|
+
const ret = wasm.encrypted_decryptWithKey(this.__wbg_ptr, ptr0, len0);
|
|
939
|
+
if (ret[3]) {
|
|
940
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
941
|
+
}
|
|
942
|
+
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
943
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
944
|
+
return v2;
|
|
945
|
+
}
|
|
901
946
|
/**
|
|
902
947
|
* @param {Uint8Array} bytes
|
|
903
948
|
* @returns {Encrypted}
|
|
@@ -980,6 +1025,19 @@ class EncryptedContentWithUpdate {
|
|
|
980
1025
|
const ptr = this.__destroy_into_raw();
|
|
981
1026
|
wasm.__wbg_encryptedcontentwithupdate_free(ptr, 0);
|
|
982
1027
|
}
|
|
1028
|
+
/**
|
|
1029
|
+
* The 32-byte application secret key used to encrypt this content.
|
|
1030
|
+
*
|
|
1031
|
+
* Lets the consumer build the external predecessor-secret chain and chain
|
|
1032
|
+
* further encryptions onto this blob.
|
|
1033
|
+
* @returns {Uint8Array}
|
|
1034
|
+
*/
|
|
1035
|
+
get applicationSecret() {
|
|
1036
|
+
const ret = wasm.encryptedcontentwithupdate_applicationSecret(this.__wbg_ptr);
|
|
1037
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1038
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1039
|
+
return v1;
|
|
1040
|
+
}
|
|
983
1041
|
/**
|
|
984
1042
|
* @returns {Encrypted}
|
|
985
1043
|
*/
|
|
@@ -1666,22 +1724,15 @@ class Keyhive {
|
|
|
1666
1724
|
}
|
|
1667
1725
|
/**
|
|
1668
1726
|
* Initialize a peer.
|
|
1669
|
-
*
|
|
1670
|
-
* `forward_secrecy` is this peer's policy for all documents it creates or
|
|
1671
|
-
* receives. When `false`, documents carry the CGKA predecessor key chain
|
|
1672
|
-
* (a member added later reads the whole prior history) and adding a reader
|
|
1673
|
-
* auto-rekeys (see `addMember`'s `leafSecrets`). When `true`, a member
|
|
1674
|
-
* added later cannot read content from before they joined.
|
|
1675
1727
|
* @param {Signer} signer
|
|
1676
1728
|
* @param {CiphertextStore} ciphertext_store
|
|
1677
1729
|
* @param {Function} event_handler
|
|
1678
|
-
* @param {boolean} forward_secrecy
|
|
1679
1730
|
* @returns {Promise<Keyhive>}
|
|
1680
1731
|
*/
|
|
1681
|
-
static init(signer, ciphertext_store, event_handler
|
|
1732
|
+
static init(signer, ciphertext_store, event_handler) {
|
|
1682
1733
|
_assertClass(signer, Signer);
|
|
1683
1734
|
_assertClass(ciphertext_store, CiphertextStore);
|
|
1684
|
-
const ret = wasm.keyhive_init(signer.__wbg_ptr, ciphertext_store.__wbg_ptr, event_handler
|
|
1735
|
+
const ret = wasm.keyhive_init(signer.__wbg_ptr, ciphertext_store.__wbg_ptr, event_handler);
|
|
1685
1736
|
return ret;
|
|
1686
1737
|
}
|
|
1687
1738
|
/**
|
|
@@ -1779,6 +1830,21 @@ class Keyhive {
|
|
|
1779
1830
|
const ret = wasm.keyhive_tryDecrypt(this.__wbg_ptr, doc.__wbg_ptr, encrypted.__wbg_ptr);
|
|
1780
1831
|
return ret;
|
|
1781
1832
|
}
|
|
1833
|
+
/**
|
|
1834
|
+
* Decrypt content and also return the 32-byte application secret key used.
|
|
1835
|
+
*
|
|
1836
|
+
* The consumer follows the external predecessor-secret chain from this key
|
|
1837
|
+
* with `Encrypted.decryptWithKey`, avoiding further CGKA dives.
|
|
1838
|
+
* @param {Document} doc
|
|
1839
|
+
* @param {Encrypted} encrypted
|
|
1840
|
+
* @returns {Promise<DecryptedWithKey>}
|
|
1841
|
+
*/
|
|
1842
|
+
tryDecryptWithKey(doc, encrypted) {
|
|
1843
|
+
_assertClass(doc, Document);
|
|
1844
|
+
_assertClass(encrypted, Encrypted);
|
|
1845
|
+
const ret = wasm.keyhive_tryDecryptWithKey(this.__wbg_ptr, doc.__wbg_ptr, encrypted.__wbg_ptr);
|
|
1846
|
+
return ret;
|
|
1847
|
+
}
|
|
1782
1848
|
/**
|
|
1783
1849
|
* @param {Document} doc
|
|
1784
1850
|
* @param {ChangeId} content_ref
|
|
@@ -2619,10 +2685,61 @@ function setPanicHook() {
|
|
|
2619
2685
|
wasm.setPanicHook();
|
|
2620
2686
|
}
|
|
2621
2687
|
exports.setPanicHook = setPanicHook;
|
|
2688
|
+
|
|
2689
|
+
/**
|
|
2690
|
+
* Inverse of [`symmetric_encrypt`]. Reads `nonce(24) || ciphertext`.
|
|
2691
|
+
* @param {Uint8Array} key
|
|
2692
|
+
* @param {Uint8Array} blob
|
|
2693
|
+
* @returns {Uint8Array}
|
|
2694
|
+
*/
|
|
2695
|
+
function symmetricDecrypt(key, blob) {
|
|
2696
|
+
const ptr0 = passArray8ToWasm0(key, wasm.__wbindgen_malloc);
|
|
2697
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2698
|
+
const ptr1 = passArray8ToWasm0(blob, wasm.__wbindgen_malloc);
|
|
2699
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2700
|
+
const ret = wasm.symmetricDecrypt(ptr0, len0, ptr1, len1);
|
|
2701
|
+
if (ret[3]) {
|
|
2702
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2703
|
+
}
|
|
2704
|
+
var v3 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2705
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2706
|
+
return v3;
|
|
2707
|
+
}
|
|
2708
|
+
exports.symmetricDecrypt = symmetricDecrypt;
|
|
2709
|
+
|
|
2710
|
+
/**
|
|
2711
|
+
* AEAD-encrypt `plaintext` under a 32-byte `key`.
|
|
2712
|
+
*
|
|
2713
|
+
* `associated_data` flavors the synthetic nonce (e.g. the document or content
|
|
2714
|
+
* id) so identical plaintext under the same key in different contexts produces
|
|
2715
|
+
* distinct ciphertext. Returns `nonce(24) || ciphertext` (the ciphertext
|
|
2716
|
+
* includes the Poly1305 tag). The nonce is carried in the output, so
|
|
2717
|
+
* [`symmetric_decrypt`] does not need the associated data.
|
|
2718
|
+
* @param {Uint8Array} key
|
|
2719
|
+
* @param {Uint8Array} plaintext
|
|
2720
|
+
* @param {Uint8Array} associated_data
|
|
2721
|
+
* @returns {Uint8Array}
|
|
2722
|
+
*/
|
|
2723
|
+
function symmetricEncrypt(key, plaintext, associated_data) {
|
|
2724
|
+
const ptr0 = passArray8ToWasm0(key, wasm.__wbindgen_malloc);
|
|
2725
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2726
|
+
const ptr1 = passArray8ToWasm0(plaintext, wasm.__wbindgen_malloc);
|
|
2727
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2728
|
+
const ptr2 = passArray8ToWasm0(associated_data, wasm.__wbindgen_malloc);
|
|
2729
|
+
const len2 = WASM_VECTOR_LEN;
|
|
2730
|
+
const ret = wasm.symmetricEncrypt(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
2731
|
+
if (ret[3]) {
|
|
2732
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2733
|
+
}
|
|
2734
|
+
var v4 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
2735
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2736
|
+
return v4;
|
|
2737
|
+
}
|
|
2738
|
+
exports.symmetricEncrypt = symmetricEncrypt;
|
|
2622
2739
|
function __wbg_get_imports() {
|
|
2623
2740
|
const import0 = {
|
|
2624
2741
|
__proto__: null,
|
|
2625
|
-
|
|
2742
|
+
__wbg_Error_92b29b0548f8b746: function(arg0, arg1) {
|
|
2626
2743
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
2627
2744
|
return ret;
|
|
2628
2745
|
},
|
|
@@ -2644,41 +2761,41 @@ function __wbg_get_imports() {
|
|
|
2644
2761
|
var ptr1 = ret.__destroy_into_raw();
|
|
2645
2762
|
return ptr1;
|
|
2646
2763
|
},
|
|
2647
|
-
|
|
2764
|
+
__wbg___wbindgen_debug_string_c25d447a39f5578f: function(arg0, arg1) {
|
|
2648
2765
|
const ret = debugString(arg1);
|
|
2649
2766
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2650
2767
|
const len1 = WASM_VECTOR_LEN;
|
|
2651
2768
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2652
2769
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2653
2770
|
},
|
|
2654
|
-
|
|
2771
|
+
__wbg___wbindgen_is_function_1ff95bcc5517c252: function(arg0) {
|
|
2655
2772
|
const ret = typeof(arg0) === 'function';
|
|
2656
2773
|
return ret;
|
|
2657
2774
|
},
|
|
2658
|
-
|
|
2775
|
+
__wbg___wbindgen_is_object_a27215656b807791: function(arg0) {
|
|
2659
2776
|
const val = arg0;
|
|
2660
2777
|
const ret = typeof(val) === 'object' && val !== null;
|
|
2661
2778
|
return ret;
|
|
2662
2779
|
},
|
|
2663
|
-
|
|
2780
|
+
__wbg___wbindgen_is_string_ea5e6cc2e4141dfe: function(arg0) {
|
|
2664
2781
|
const ret = typeof(arg0) === 'string';
|
|
2665
2782
|
return ret;
|
|
2666
2783
|
},
|
|
2667
|
-
|
|
2784
|
+
__wbg___wbindgen_is_undefined_c05833b95a3cf397: function(arg0) {
|
|
2668
2785
|
const ret = arg0 === undefined;
|
|
2669
2786
|
return ret;
|
|
2670
2787
|
},
|
|
2671
|
-
|
|
2788
|
+
__wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
|
|
2672
2789
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2673
2790
|
},
|
|
2674
|
-
|
|
2791
|
+
__wbg__wbg_cb_unref_fffb441def202758: function(arg0) {
|
|
2675
2792
|
arg0._wbg_cb_unref();
|
|
2676
2793
|
},
|
|
2677
2794
|
__wbg_access_new: function(arg0) {
|
|
2678
2795
|
const ret = Access.__wrap(arg0);
|
|
2679
2796
|
return ret;
|
|
2680
2797
|
},
|
|
2681
|
-
|
|
2798
|
+
__wbg_add_6c7b67a080be853e: function(arg0, arg1) {
|
|
2682
2799
|
const ret = arg0.add(arg1);
|
|
2683
2800
|
return ret;
|
|
2684
2801
|
},
|
|
@@ -2698,7 +2815,7 @@ function __wbg_get_imports() {
|
|
|
2698
2815
|
const ret = Archive.__wrap(arg0);
|
|
2699
2816
|
return ret;
|
|
2700
2817
|
},
|
|
2701
|
-
|
|
2818
|
+
__wbg_call_a6e5c5dce5018821: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2702
2819
|
const ret = arg0.call(arg1, arg2);
|
|
2703
2820
|
return ret;
|
|
2704
2821
|
}, arguments); },
|
|
@@ -2752,6 +2869,10 @@ function __wbg_get_imports() {
|
|
|
2752
2869
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2753
2870
|
}
|
|
2754
2871
|
},
|
|
2872
|
+
__wbg_decryptedwithkey_new: function(arg0) {
|
|
2873
|
+
const ret = DecryptedWithKey.__wrap(arg0);
|
|
2874
|
+
return ret;
|
|
2875
|
+
},
|
|
2755
2876
|
__wbg_doccontentrefs_new: function(arg0) {
|
|
2756
2877
|
const ret = DocContentRefs.__wrap(arg0);
|
|
2757
2878
|
return ret;
|
|
@@ -2801,11 +2922,11 @@ function __wbg_get_imports() {
|
|
|
2801
2922
|
const ret = Event.__wrap(arg0);
|
|
2802
2923
|
return ret;
|
|
2803
2924
|
},
|
|
2804
|
-
|
|
2925
|
+
__wbg_exportKey_31e8893b69d9dc95: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2805
2926
|
const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
|
|
2806
2927
|
return ret;
|
|
2807
2928
|
}, arguments); },
|
|
2808
|
-
|
|
2929
|
+
__wbg_generateKey_3ed60dd4e2cb2a81: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2809
2930
|
const ret = arg0.generateKey(getStringFromWasm0(arg1, arg2), arg3 !== 0, arg4);
|
|
2810
2931
|
return ret;
|
|
2811
2932
|
}, arguments); },
|
|
@@ -2816,19 +2937,19 @@ function __wbg_get_imports() {
|
|
|
2816
2937
|
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
2817
2938
|
arg0.getRandomValues(arg1);
|
|
2818
2939
|
}, arguments); },
|
|
2819
|
-
|
|
2940
|
+
__wbg_get_507a50627bffa49b: function(arg0, arg1) {
|
|
2820
2941
|
const ret = arg0[arg1 >>> 0];
|
|
2821
2942
|
return ret;
|
|
2822
2943
|
},
|
|
2823
|
-
|
|
2944
|
+
__wbg_get_78f252d074a84d0b: function() { return handleError(function (arg0, arg1) {
|
|
2824
2945
|
const ret = Reflect.get(arg0, arg1);
|
|
2825
2946
|
return ret;
|
|
2826
2947
|
}, arguments); },
|
|
2827
|
-
|
|
2948
|
+
__wbg_get_private_key_a1d2a3ef4e88bcd6: function(arg0) {
|
|
2828
2949
|
const ret = arg0.privateKey;
|
|
2829
2950
|
return ret;
|
|
2830
2951
|
},
|
|
2831
|
-
|
|
2952
|
+
__wbg_get_public_key_eae90acbeb39e965: function(arg0) {
|
|
2832
2953
|
const ret = arg0.publicKey;
|
|
2833
2954
|
return ret;
|
|
2834
2955
|
},
|
|
@@ -2840,7 +2961,7 @@ function __wbg_get_imports() {
|
|
|
2840
2961
|
const ret = Individual.__wrap(arg0);
|
|
2841
2962
|
return ret;
|
|
2842
2963
|
},
|
|
2843
|
-
|
|
2964
|
+
__wbg_instanceof_Crypto_5e73263038417c75: function(arg0) {
|
|
2844
2965
|
let result;
|
|
2845
2966
|
try {
|
|
2846
2967
|
result = arg0 instanceof Crypto;
|
|
@@ -2854,11 +2975,11 @@ function __wbg_get_imports() {
|
|
|
2854
2975
|
const ret = Keyhive.__wrap(arg0);
|
|
2855
2976
|
return ret;
|
|
2856
2977
|
},
|
|
2857
|
-
|
|
2978
|
+
__wbg_length_1f0964f4a5e2c6d8: function(arg0) {
|
|
2858
2979
|
const ret = arg0.length;
|
|
2859
2980
|
return ret;
|
|
2860
2981
|
},
|
|
2861
|
-
|
|
2982
|
+
__wbg_length_370319915dc99107: function(arg0) {
|
|
2862
2983
|
const ret = arg0.length;
|
|
2863
2984
|
return ret;
|
|
2864
2985
|
},
|
|
@@ -2915,38 +3036,38 @@ function __wbg_get_imports() {
|
|
|
2915
3036
|
const ret = new Error();
|
|
2916
3037
|
return ret;
|
|
2917
3038
|
},
|
|
2918
|
-
|
|
2919
|
-
const ret = new
|
|
3039
|
+
__wbg_new_32b398fb48b6d94a: function() {
|
|
3040
|
+
const ret = new Array();
|
|
2920
3041
|
return ret;
|
|
2921
3042
|
},
|
|
2922
|
-
|
|
2923
|
-
const ret = new
|
|
3043
|
+
__wbg_new_7796ffc7ed656783: function() {
|
|
3044
|
+
const ret = new Map();
|
|
2924
3045
|
return ret;
|
|
2925
3046
|
},
|
|
2926
|
-
|
|
2927
|
-
const ret = new
|
|
3047
|
+
__wbg_new_b667d279fd5aa943: function(arg0, arg1) {
|
|
3048
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2928
3049
|
return ret;
|
|
2929
3050
|
},
|
|
2930
|
-
|
|
3051
|
+
__wbg_new_cd45aabdf6073e84: function(arg0) {
|
|
2931
3052
|
const ret = new Uint8Array(arg0);
|
|
2932
3053
|
return ret;
|
|
2933
3054
|
},
|
|
2934
|
-
|
|
2935
|
-
const ret = new
|
|
3055
|
+
__wbg_new_e64f7b1e88921146: function(arg0) {
|
|
3056
|
+
const ret = new Set(arg0);
|
|
2936
3057
|
return ret;
|
|
2937
3058
|
},
|
|
2938
|
-
|
|
3059
|
+
__wbg_new_from_slice_77cdfb7977362f3c: function(arg0, arg1) {
|
|
2939
3060
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
2940
3061
|
return ret;
|
|
2941
3062
|
},
|
|
2942
|
-
|
|
3063
|
+
__wbg_new_typed_1824d93f294193e5: function(arg0, arg1) {
|
|
2943
3064
|
try {
|
|
2944
3065
|
var state0 = {a: arg0, b: arg1};
|
|
2945
3066
|
var cb0 = (arg0, arg1) => {
|
|
2946
3067
|
const a = state0.a;
|
|
2947
3068
|
state0.a = 0;
|
|
2948
3069
|
try {
|
|
2949
|
-
return
|
|
3070
|
+
return wasm_bindgen__convert__closures_____invoke__h58982df154245cbc(a, state0.b, arg0, arg1);
|
|
2950
3071
|
} finally {
|
|
2951
3072
|
state0.a = a;
|
|
2952
3073
|
}
|
|
@@ -2957,7 +3078,7 @@ function __wbg_get_imports() {
|
|
|
2957
3078
|
state0.a = 0;
|
|
2958
3079
|
}
|
|
2959
3080
|
},
|
|
2960
|
-
|
|
3081
|
+
__wbg_new_with_length_e6785c33c8e4cce8: function(arg0) {
|
|
2961
3082
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
2962
3083
|
return ret;
|
|
2963
3084
|
},
|
|
@@ -2969,18 +3090,18 @@ function __wbg_get_imports() {
|
|
|
2969
3090
|
const ret = arg0.process;
|
|
2970
3091
|
return ret;
|
|
2971
3092
|
},
|
|
2972
|
-
|
|
3093
|
+
__wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {
|
|
2973
3094
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
2974
3095
|
},
|
|
2975
|
-
|
|
3096
|
+
__wbg_push_d2ae3af0c1217ae6: function(arg0, arg1) {
|
|
2976
3097
|
const ret = arg0.push(arg1);
|
|
2977
3098
|
return ret;
|
|
2978
3099
|
},
|
|
2979
|
-
|
|
3100
|
+
__wbg_queueMicrotask_0ab5b2d2393e99b9: function(arg0) {
|
|
2980
3101
|
const ret = arg0.queueMicrotask;
|
|
2981
3102
|
return ret;
|
|
2982
3103
|
},
|
|
2983
|
-
|
|
3104
|
+
__wbg_queueMicrotask_6a09b7bc46549209: function(arg0) {
|
|
2984
3105
|
queueMicrotask(arg0);
|
|
2985
3106
|
},
|
|
2986
3107
|
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
@@ -2990,22 +3111,22 @@ function __wbg_get_imports() {
|
|
|
2990
3111
|
const ret = module.require;
|
|
2991
3112
|
return ret;
|
|
2992
3113
|
}, arguments); },
|
|
2993
|
-
|
|
3114
|
+
__wbg_resolve_2191a4dfe481c25b: function(arg0) {
|
|
2994
3115
|
const ret = Promise.resolve(arg0);
|
|
2995
3116
|
return ret;
|
|
2996
3117
|
},
|
|
2997
|
-
|
|
3118
|
+
__wbg_set_575dd786d51585f8: function(arg0, arg1, arg2) {
|
|
2998
3119
|
const ret = arg0.set(arg1, arg2);
|
|
2999
3120
|
return ret;
|
|
3000
3121
|
},
|
|
3001
|
-
|
|
3122
|
+
__wbg_set_name_3bbc583faefa4193: function(arg0, arg1, arg2) {
|
|
3002
3123
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
3003
3124
|
},
|
|
3004
3125
|
__wbg_sharekey_new: function(arg0) {
|
|
3005
3126
|
const ret = ShareKey.__wrap(arg0);
|
|
3006
3127
|
return ret;
|
|
3007
3128
|
},
|
|
3008
|
-
|
|
3129
|
+
__wbg_sign_1b8fb33c8d16115e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3009
3130
|
const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
3010
3131
|
return ret;
|
|
3011
3132
|
}, arguments); },
|
|
@@ -3032,19 +3153,19 @@ function __wbg_get_imports() {
|
|
|
3032
3153
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3033
3154
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3034
3155
|
},
|
|
3035
|
-
|
|
3036
|
-
const ret = typeof
|
|
3156
|
+
__wbg_static_accessor_GLOBAL_4ef717fb391d88b7: function() {
|
|
3157
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
3037
3158
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3038
3159
|
},
|
|
3039
|
-
|
|
3040
|
-
const ret = typeof
|
|
3160
|
+
__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4: function() {
|
|
3161
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
3041
3162
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3042
3163
|
},
|
|
3043
|
-
|
|
3164
|
+
__wbg_static_accessor_SELF_146583524fe1469b: function() {
|
|
3044
3165
|
const ret = typeof self === 'undefined' ? null : self;
|
|
3045
3166
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3046
3167
|
},
|
|
3047
|
-
|
|
3168
|
+
__wbg_static_accessor_WINDOW_f2829a2234d7819e: function() {
|
|
3048
3169
|
const ret = typeof window === 'undefined' ? null : window;
|
|
3049
3170
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3050
3171
|
},
|
|
@@ -3052,11 +3173,11 @@ function __wbg_get_imports() {
|
|
|
3052
3173
|
const ret = Stats.__wrap(arg0);
|
|
3053
3174
|
return ret;
|
|
3054
3175
|
},
|
|
3055
|
-
|
|
3176
|
+
__wbg_subarray_3ed232c8a6baee09: function(arg0, arg1, arg2) {
|
|
3056
3177
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3057
3178
|
return ret;
|
|
3058
3179
|
},
|
|
3059
|
-
|
|
3180
|
+
__wbg_subtle_ed1dfcaede24af07: function(arg0) {
|
|
3060
3181
|
const ret = arg0.subtle;
|
|
3061
3182
|
return ret;
|
|
3062
3183
|
},
|
|
@@ -3064,11 +3185,11 @@ function __wbg_get_imports() {
|
|
|
3064
3185
|
const ret = Summary.__wrap(arg0);
|
|
3065
3186
|
return ret;
|
|
3066
3187
|
},
|
|
3067
|
-
|
|
3188
|
+
__wbg_then_16d107c451e9905d: function(arg0, arg1, arg2) {
|
|
3068
3189
|
const ret = arg0.then(arg1, arg2);
|
|
3069
3190
|
return ret;
|
|
3070
3191
|
},
|
|
3071
|
-
|
|
3192
|
+
__wbg_then_6ec10ae38b3e92f7: function(arg0, arg1) {
|
|
3072
3193
|
const ret = arg0.then(arg1);
|
|
3073
3194
|
return ret;
|
|
3074
3195
|
},
|
|
@@ -3099,8 +3220,8 @@ function __wbg_get_imports() {
|
|
|
3099
3220
|
}
|
|
3100
3221
|
},
|
|
3101
3222
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
3102
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
3103
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3223
|
+
// 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`.
|
|
3224
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h9887d5ab72723f8a);
|
|
3104
3225
|
return ret;
|
|
3105
3226
|
},
|
|
3106
3227
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
@@ -3185,15 +3306,15 @@ function __wbg_get_imports() {
|
|
|
3185
3306
|
};
|
|
3186
3307
|
}
|
|
3187
3308
|
|
|
3188
|
-
function
|
|
3189
|
-
const ret = wasm.
|
|
3309
|
+
function wasm_bindgen__convert__closures_____invoke__h9887d5ab72723f8a(arg0, arg1, arg2) {
|
|
3310
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h9887d5ab72723f8a(arg0, arg1, arg2);
|
|
3190
3311
|
if (ret[1]) {
|
|
3191
3312
|
throw takeFromExternrefTable0(ret[0]);
|
|
3192
3313
|
}
|
|
3193
3314
|
}
|
|
3194
3315
|
|
|
3195
|
-
function
|
|
3196
|
-
wasm.
|
|
3316
|
+
function wasm_bindgen__convert__closures_____invoke__h58982df154245cbc(arg0, arg1, arg2, arg3) {
|
|
3317
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h58982df154245cbc(arg0, arg1, arg2, arg3);
|
|
3197
3318
|
}
|
|
3198
3319
|
|
|
3199
3320
|
const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -3232,6 +3353,9 @@ const CiphertextStoreFinalization = (typeof FinalizationRegistry === 'undefined'
|
|
|
3232
3353
|
const ContactCardFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3233
3354
|
? { register: () => {}, unregister: () => {} }
|
|
3234
3355
|
: new FinalizationRegistry(ptr => wasm.__wbg_contactcard_free(ptr, 1));
|
|
3356
|
+
const DecryptedWithKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3357
|
+
? { register: () => {}, unregister: () => {} }
|
|
3358
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_decryptedwithkey_free(ptr, 1));
|
|
3235
3359
|
const DelegationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3236
3360
|
? { register: () => {}, unregister: () => {} }
|
|
3237
3361
|
: new FinalizationRegistry(ptr => wasm.__wbg_delegation_free(ptr, 1));
|
|
Binary file
|