@keyhive/keyhive 0.0.0-alpha.0 → 0.0.0-alpha.2
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 +16 -5
- package/pkg/keyhive_wasm.d.ts +52 -0
- package/pkg/keyhive_wasm_bg.js +148 -82
- package/pkg/keyhive_wasm_bg.wasm +0 -0
- package/pkg/keyhive_wasm_bg.wasm.d.ts +96 -95
- package/pkg-node/keyhive_wasm.d.ts +52 -0
- package/pkg-node/keyhive_wasm.js +299 -183
- package/pkg-node/keyhive_wasm_bg.wasm +0 -0
- package/pkg-node/keyhive_wasm_bg.wasm.d.ts +96 -95
- package/pkg-slim/.gitignore +1 -0
- package/pkg-slim/README.md +34 -0
- package/pkg-slim/index.d.ts +2 -0
- package/pkg-slim/index.js +12 -0
- package/pkg-slim/index.ts +15 -0
- package/pkg-slim/keyhive_wasm.d.ts +634 -0
- package/pkg-slim/keyhive_wasm.js +3535 -0
- package/pkg-slim/keyhive_wasm_bg.wasm +0 -0
- package/pkg-slim/keyhive_wasm_bg.wasm.base64.d.ts +4 -0
- package/pkg-slim/keyhive_wasm_bg.wasm.base64.js +2 -0
- package/pkg-slim/keyhive_wasm_bg.wasm.d.ts +209 -0
- package/pkg-slim/package.json +26 -0
package/pkg-node/keyhive_wasm.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
let imports = {};
|
|
3
3
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
4
|
-
let wasm;
|
|
5
|
-
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
4
|
|
|
7
5
|
let cachedUint8ArrayMemory0 = null;
|
|
8
6
|
|
|
@@ -48,20 +46,18 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
|
48
46
|
|
|
49
47
|
let WASM_VECTOR_LEN = 0;
|
|
50
48
|
|
|
51
|
-
const cachedTextEncoder = new TextEncoder(
|
|
49
|
+
const cachedTextEncoder = new TextEncoder();
|
|
52
50
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
52
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
53
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
54
|
+
view.set(buf);
|
|
55
|
+
return {
|
|
56
|
+
read: arg.length,
|
|
57
|
+
written: buf.length
|
|
58
|
+
};
|
|
59
|
+
}
|
|
56
60
|
}
|
|
57
|
-
: function (arg, view) {
|
|
58
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
59
|
-
view.set(buf);
|
|
60
|
-
return {
|
|
61
|
-
read: arg.length,
|
|
62
|
-
written: buf.length
|
|
63
|
-
};
|
|
64
|
-
});
|
|
65
61
|
|
|
66
62
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
67
63
|
|
|
@@ -92,7 +88,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
92
88
|
}
|
|
93
89
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
94
90
|
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
95
|
-
const ret =
|
|
91
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
96
92
|
|
|
97
93
|
offset += ret.written;
|
|
98
94
|
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
@@ -243,6 +239,15 @@ function _assertClass(instance, klass) {
|
|
|
243
239
|
throw new Error(`expected instance of ${klass.name}`);
|
|
244
240
|
}
|
|
245
241
|
}
|
|
242
|
+
/**
|
|
243
|
+
* Panic hook lets us get better error messages if our Rust code ever panics.
|
|
244
|
+
*
|
|
245
|
+
* This function needs to be called at least once during initialisation.
|
|
246
|
+
* https://rustwasm.github.io/docs/wasm-pack/tutorials/npm-browser-packages/template-deep-dive/src-utils-rs.html#2-what-is-console_error_panic_hook
|
|
247
|
+
*/
|
|
248
|
+
exports.setPanicHook = function() {
|
|
249
|
+
wasm.setPanicHook();
|
|
250
|
+
};
|
|
246
251
|
|
|
247
252
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
248
253
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
@@ -253,22 +258,12 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
253
258
|
WASM_VECTOR_LEN = array.length;
|
|
254
259
|
return ptr;
|
|
255
260
|
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
*
|
|
259
|
-
* This function needs to be called at least once during initialisation.
|
|
260
|
-
* https://rustwasm.github.io/docs/wasm-pack/tutorials/npm-browser-packages/template-deep-dive/src-utils-rs.html#2-what-is-console_error_panic_hook
|
|
261
|
-
*/
|
|
262
|
-
module.exports.setPanicHook = function() {
|
|
263
|
-
wasm.setPanicHook();
|
|
264
|
-
};
|
|
265
|
-
|
|
266
|
-
function __wbg_adapter_12(arg0, arg1, arg2) {
|
|
267
|
-
wasm.closure388_externref_shim(arg0, arg1, arg2);
|
|
261
|
+
function __wbg_adapter_8(arg0, arg1, arg2) {
|
|
262
|
+
wasm.closure423_externref_shim(arg0, arg1, arg2);
|
|
268
263
|
}
|
|
269
264
|
|
|
270
|
-
function
|
|
271
|
-
wasm.
|
|
265
|
+
function __wbg_adapter_272(arg0, arg1, arg2, arg3) {
|
|
266
|
+
wasm.closure571_externref_shim(arg0, arg1, arg2, arg3);
|
|
272
267
|
}
|
|
273
268
|
|
|
274
269
|
const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -322,7 +317,9 @@ class Access {
|
|
|
322
317
|
}
|
|
323
318
|
}
|
|
324
319
|
}
|
|
325
|
-
|
|
320
|
+
if (Symbol.dispose) Access.prototype[Symbol.dispose] = Access.prototype.free;
|
|
321
|
+
|
|
322
|
+
exports.Access = Access;
|
|
326
323
|
|
|
327
324
|
const AddMemberErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
328
325
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -365,7 +362,9 @@ class AddMemberError {
|
|
|
365
362
|
}
|
|
366
363
|
}
|
|
367
364
|
}
|
|
368
|
-
|
|
365
|
+
if (Symbol.dispose) AddMemberError.prototype[Symbol.dispose] = AddMemberError.prototype.free;
|
|
366
|
+
|
|
367
|
+
exports.AddMemberError = AddMemberError;
|
|
369
368
|
|
|
370
369
|
const AgentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
371
370
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -436,7 +435,9 @@ class Agent {
|
|
|
436
435
|
return Identifier.__wrap(ret);
|
|
437
436
|
}
|
|
438
437
|
}
|
|
439
|
-
|
|
438
|
+
if (Symbol.dispose) Agent.prototype[Symbol.dispose] = Agent.prototype.free;
|
|
439
|
+
|
|
440
|
+
exports.Agent = Agent;
|
|
440
441
|
|
|
441
442
|
const ArchiveFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
442
443
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -506,7 +507,9 @@ class Archive {
|
|
|
506
507
|
return Keyhive.__wrap(ret[0]);
|
|
507
508
|
}
|
|
508
509
|
}
|
|
509
|
-
|
|
510
|
+
if (Symbol.dispose) Archive.prototype[Symbol.dispose] = Archive.prototype.free;
|
|
511
|
+
|
|
512
|
+
exports.Archive = Archive;
|
|
510
513
|
|
|
511
514
|
const CannotParseEd25519SigningKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
512
515
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -534,7 +537,9 @@ class CannotParseEd25519SigningKey {
|
|
|
534
537
|
wasm.__wbg_cannotparseed25519signingkey_free(ptr, 0);
|
|
535
538
|
}
|
|
536
539
|
}
|
|
537
|
-
|
|
540
|
+
if (Symbol.dispose) CannotParseEd25519SigningKey.prototype[Symbol.dispose] = CannotParseEd25519SigningKey.prototype.free;
|
|
541
|
+
|
|
542
|
+
exports.CannotParseEd25519SigningKey = CannotParseEd25519SigningKey;
|
|
538
543
|
|
|
539
544
|
const CannotParseIdentifierFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
540
545
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -562,7 +567,9 @@ class CannotParseIdentifier {
|
|
|
562
567
|
wasm.__wbg_cannotparseidentifier_free(ptr, 0);
|
|
563
568
|
}
|
|
564
569
|
}
|
|
565
|
-
|
|
570
|
+
if (Symbol.dispose) CannotParseIdentifier.prototype[Symbol.dispose] = CannotParseIdentifier.prototype.free;
|
|
571
|
+
|
|
572
|
+
exports.CannotParseIdentifier = CannotParseIdentifier;
|
|
566
573
|
|
|
567
574
|
const CapabilityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
568
575
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -611,7 +618,9 @@ class Capability {
|
|
|
611
618
|
return SignedDelegation.__wrap(ret);
|
|
612
619
|
}
|
|
613
620
|
}
|
|
614
|
-
|
|
621
|
+
if (Symbol.dispose) Capability.prototype[Symbol.dispose] = Capability.prototype.free;
|
|
622
|
+
|
|
623
|
+
exports.Capability = Capability;
|
|
615
624
|
|
|
616
625
|
const CgkaOperationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
617
626
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -654,7 +663,9 @@ class CgkaOperation {
|
|
|
654
663
|
}
|
|
655
664
|
}
|
|
656
665
|
}
|
|
657
|
-
|
|
666
|
+
if (Symbol.dispose) CgkaOperation.prototype[Symbol.dispose] = CgkaOperation.prototype.free;
|
|
667
|
+
|
|
668
|
+
exports.CgkaOperation = CgkaOperation;
|
|
658
669
|
|
|
659
670
|
const ChangeRefFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
660
671
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -709,7 +720,9 @@ class ChangeRef {
|
|
|
709
720
|
return v1;
|
|
710
721
|
}
|
|
711
722
|
}
|
|
712
|
-
|
|
723
|
+
if (Symbol.dispose) ChangeRef.prototype[Symbol.dispose] = ChangeRef.prototype.free;
|
|
724
|
+
|
|
725
|
+
exports.ChangeRef = ChangeRef;
|
|
713
726
|
|
|
714
727
|
const CiphertextStoreFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
715
728
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -752,7 +765,9 @@ class CiphertextStore {
|
|
|
752
765
|
return CiphertextStore.__wrap(ret);
|
|
753
766
|
}
|
|
754
767
|
}
|
|
755
|
-
|
|
768
|
+
if (Symbol.dispose) CiphertextStore.prototype[Symbol.dispose] = CiphertextStore.prototype.free;
|
|
769
|
+
|
|
770
|
+
exports.CiphertextStore = CiphertextStore;
|
|
756
771
|
|
|
757
772
|
const ContactCardFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
758
773
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -837,7 +852,9 @@ class ContactCard {
|
|
|
837
852
|
}
|
|
838
853
|
}
|
|
839
854
|
}
|
|
840
|
-
|
|
855
|
+
if (Symbol.dispose) ContactCard.prototype[Symbol.dispose] = ContactCard.prototype.free;
|
|
856
|
+
|
|
857
|
+
exports.ContactCard = ContactCard;
|
|
841
858
|
|
|
842
859
|
const DelegationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
843
860
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -893,7 +910,9 @@ class Delegation {
|
|
|
893
910
|
return History.__wrap(ret);
|
|
894
911
|
}
|
|
895
912
|
}
|
|
896
|
-
|
|
913
|
+
if (Symbol.dispose) Delegation.prototype[Symbol.dispose] = Delegation.prototype.free;
|
|
914
|
+
|
|
915
|
+
exports.Delegation = Delegation;
|
|
897
916
|
|
|
898
917
|
const DelegationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
899
918
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -913,7 +932,9 @@ class DelegationError {
|
|
|
913
932
|
wasm.__wbg_delegationerror_free(ptr, 0);
|
|
914
933
|
}
|
|
915
934
|
}
|
|
916
|
-
|
|
935
|
+
if (Symbol.dispose) DelegationError.prototype[Symbol.dispose] = DelegationError.prototype.free;
|
|
936
|
+
|
|
937
|
+
exports.DelegationError = DelegationError;
|
|
917
938
|
|
|
918
939
|
const DocContentRefsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
919
940
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -982,7 +1003,9 @@ class DocContentRefs {
|
|
|
982
1003
|
return v1;
|
|
983
1004
|
}
|
|
984
1005
|
}
|
|
985
|
-
|
|
1006
|
+
if (Symbol.dispose) DocContentRefs.prototype[Symbol.dispose] = DocContentRefs.prototype.free;
|
|
1007
|
+
|
|
1008
|
+
exports.DocContentRefs = DocContentRefs;
|
|
986
1009
|
|
|
987
1010
|
const DocumentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
988
1011
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1045,7 +1068,9 @@ class Document {
|
|
|
1045
1068
|
return Agent.__wrap(ret);
|
|
1046
1069
|
}
|
|
1047
1070
|
}
|
|
1048
|
-
|
|
1071
|
+
if (Symbol.dispose) Document.prototype[Symbol.dispose] = Document.prototype.free;
|
|
1072
|
+
|
|
1073
|
+
exports.Document = Document;
|
|
1049
1074
|
|
|
1050
1075
|
const DocumentIdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1051
1076
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1118,7 +1143,9 @@ class DocumentId {
|
|
|
1118
1143
|
return v1;
|
|
1119
1144
|
}
|
|
1120
1145
|
}
|
|
1121
|
-
|
|
1146
|
+
if (Symbol.dispose) DocumentId.prototype[Symbol.dispose] = DocumentId.prototype.free;
|
|
1147
|
+
|
|
1148
|
+
exports.DocumentId = DocumentId;
|
|
1122
1149
|
|
|
1123
1150
|
const EncryptedFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1124
1151
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1200,7 +1227,9 @@ class Encrypted {
|
|
|
1200
1227
|
return v1;
|
|
1201
1228
|
}
|
|
1202
1229
|
}
|
|
1203
|
-
|
|
1230
|
+
if (Symbol.dispose) Encrypted.prototype[Symbol.dispose] = Encrypted.prototype.free;
|
|
1231
|
+
|
|
1232
|
+
exports.Encrypted = Encrypted;
|
|
1204
1233
|
|
|
1205
1234
|
const EncryptedContentWithUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1206
1235
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1242,7 +1271,9 @@ class EncryptedContentWithUpdate {
|
|
|
1242
1271
|
return ret === 0 ? undefined : SignedCgkaOperation.__wrap(ret);
|
|
1243
1272
|
}
|
|
1244
1273
|
}
|
|
1245
|
-
|
|
1274
|
+
if (Symbol.dispose) EncryptedContentWithUpdate.prototype[Symbol.dispose] = EncryptedContentWithUpdate.prototype.free;
|
|
1275
|
+
|
|
1276
|
+
exports.EncryptedContentWithUpdate = EncryptedContentWithUpdate;
|
|
1246
1277
|
|
|
1247
1278
|
const EventFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1248
1279
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1313,7 +1344,9 @@ class Event {
|
|
|
1313
1344
|
return ret === 0 ? undefined : SignedRevocation.__wrap(ret);
|
|
1314
1345
|
}
|
|
1315
1346
|
}
|
|
1316
|
-
|
|
1347
|
+
if (Symbol.dispose) Event.prototype[Symbol.dispose] = Event.prototype.free;
|
|
1348
|
+
|
|
1349
|
+
exports.Event = Event;
|
|
1317
1350
|
|
|
1318
1351
|
const GenerateDocErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1319
1352
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1356,7 +1389,9 @@ class GenerateDocError {
|
|
|
1356
1389
|
}
|
|
1357
1390
|
}
|
|
1358
1391
|
}
|
|
1359
|
-
|
|
1392
|
+
if (Symbol.dispose) GenerateDocError.prototype[Symbol.dispose] = GenerateDocError.prototype.free;
|
|
1393
|
+
|
|
1394
|
+
exports.GenerateDocError = GenerateDocError;
|
|
1360
1395
|
|
|
1361
1396
|
const GenerateWebCryptoErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1362
1397
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1399,7 +1434,9 @@ class GenerateWebCryptoError {
|
|
|
1399
1434
|
}
|
|
1400
1435
|
}
|
|
1401
1436
|
}
|
|
1402
|
-
|
|
1437
|
+
if (Symbol.dispose) GenerateWebCryptoError.prototype[Symbol.dispose] = GenerateWebCryptoError.prototype.free;
|
|
1438
|
+
|
|
1439
|
+
exports.GenerateWebCryptoError = GenerateWebCryptoError;
|
|
1403
1440
|
|
|
1404
1441
|
const GetCiphertextErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1405
1442
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1434,7 +1471,9 @@ class GetCiphertextError {
|
|
|
1434
1471
|
}
|
|
1435
1472
|
}
|
|
1436
1473
|
}
|
|
1437
|
-
|
|
1474
|
+
if (Symbol.dispose) GetCiphertextError.prototype[Symbol.dispose] = GetCiphertextError.prototype.free;
|
|
1475
|
+
|
|
1476
|
+
exports.GetCiphertextError = GetCiphertextError;
|
|
1438
1477
|
|
|
1439
1478
|
const GroupFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1440
1479
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1506,7 +1545,9 @@ class Group {
|
|
|
1506
1545
|
return Membered.__wrap(ret);
|
|
1507
1546
|
}
|
|
1508
1547
|
}
|
|
1509
|
-
|
|
1548
|
+
if (Symbol.dispose) Group.prototype[Symbol.dispose] = Group.prototype.free;
|
|
1549
|
+
|
|
1550
|
+
exports.Group = Group;
|
|
1510
1551
|
|
|
1511
1552
|
const GroupIdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1512
1553
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1549,7 +1590,9 @@ class GroupId {
|
|
|
1549
1590
|
}
|
|
1550
1591
|
}
|
|
1551
1592
|
}
|
|
1552
|
-
|
|
1593
|
+
if (Symbol.dispose) GroupId.prototype[Symbol.dispose] = GroupId.prototype.free;
|
|
1594
|
+
|
|
1595
|
+
exports.GroupId = GroupId;
|
|
1553
1596
|
|
|
1554
1597
|
const HistoryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1555
1598
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1604,7 +1647,9 @@ class History {
|
|
|
1604
1647
|
return v1;
|
|
1605
1648
|
}
|
|
1606
1649
|
}
|
|
1607
|
-
|
|
1650
|
+
if (Symbol.dispose) History.prototype[Symbol.dispose] = History.prototype.free;
|
|
1651
|
+
|
|
1652
|
+
exports.History = History;
|
|
1608
1653
|
|
|
1609
1654
|
const IdentifierFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1610
1655
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1655,7 +1700,9 @@ class Identifier {
|
|
|
1655
1700
|
return v1;
|
|
1656
1701
|
}
|
|
1657
1702
|
}
|
|
1658
|
-
|
|
1703
|
+
if (Symbol.dispose) Identifier.prototype[Symbol.dispose] = Identifier.prototype.free;
|
|
1704
|
+
|
|
1705
|
+
exports.Identifier = Identifier;
|
|
1659
1706
|
|
|
1660
1707
|
const IndividualFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1661
1708
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1721,7 +1768,9 @@ class Individual {
|
|
|
1721
1768
|
return ShareKey.__wrap(ret);
|
|
1722
1769
|
}
|
|
1723
1770
|
}
|
|
1724
|
-
|
|
1771
|
+
if (Symbol.dispose) Individual.prototype[Symbol.dispose] = Individual.prototype.free;
|
|
1772
|
+
|
|
1773
|
+
exports.Individual = Individual;
|
|
1725
1774
|
|
|
1726
1775
|
const IndividualIdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1727
1776
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1758,7 +1807,9 @@ class IndividualId {
|
|
|
1758
1807
|
return v1;
|
|
1759
1808
|
}
|
|
1760
1809
|
}
|
|
1761
|
-
|
|
1810
|
+
if (Symbol.dispose) IndividualId.prototype[Symbol.dispose] = IndividualId.prototype.free;
|
|
1811
|
+
|
|
1812
|
+
exports.IndividualId = IndividualId;
|
|
1762
1813
|
|
|
1763
1814
|
const InvocationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1764
1815
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1778,7 +1829,9 @@ class Invocation {
|
|
|
1778
1829
|
wasm.__wbg_invocation_free(ptr, 0);
|
|
1779
1830
|
}
|
|
1780
1831
|
}
|
|
1781
|
-
|
|
1832
|
+
if (Symbol.dispose) Invocation.prototype[Symbol.dispose] = Invocation.prototype.free;
|
|
1833
|
+
|
|
1834
|
+
exports.Invocation = Invocation;
|
|
1782
1835
|
|
|
1783
1836
|
const JsDecryptErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1784
1837
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1806,7 +1859,9 @@ class JsDecryptError {
|
|
|
1806
1859
|
wasm.__wbg_jsdecrypterror_free(ptr, 0);
|
|
1807
1860
|
}
|
|
1808
1861
|
}
|
|
1809
|
-
|
|
1862
|
+
if (Symbol.dispose) JsDecryptError.prototype[Symbol.dispose] = JsDecryptError.prototype.free;
|
|
1863
|
+
|
|
1864
|
+
exports.JsDecryptError = JsDecryptError;
|
|
1810
1865
|
|
|
1811
1866
|
const JsEncryptErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1812
1867
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1834,7 +1889,9 @@ class JsEncryptError {
|
|
|
1834
1889
|
wasm.__wbg_jsencrypterror_free(ptr, 0);
|
|
1835
1890
|
}
|
|
1836
1891
|
}
|
|
1837
|
-
|
|
1892
|
+
if (Symbol.dispose) JsEncryptError.prototype[Symbol.dispose] = JsEncryptError.prototype.free;
|
|
1893
|
+
|
|
1894
|
+
exports.JsEncryptError = JsEncryptError;
|
|
1838
1895
|
|
|
1839
1896
|
const JsReceivePreKeyOpErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1840
1897
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1862,7 +1919,9 @@ class JsReceivePreKeyOpError {
|
|
|
1862
1919
|
wasm.__wbg_jsreceiveprekeyoperror_free(ptr, 0);
|
|
1863
1920
|
}
|
|
1864
1921
|
}
|
|
1865
|
-
|
|
1922
|
+
if (Symbol.dispose) JsReceivePreKeyOpError.prototype[Symbol.dispose] = JsReceivePreKeyOpError.prototype.free;
|
|
1923
|
+
|
|
1924
|
+
exports.JsReceivePreKeyOpError = JsReceivePreKeyOpError;
|
|
1866
1925
|
|
|
1867
1926
|
const JsReceiveStaticEventErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1868
1927
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1870,6 +1929,14 @@ const JsReceiveStaticEventErrorFinalization = (typeof FinalizationRegistry === '
|
|
|
1870
1929
|
|
|
1871
1930
|
class JsReceiveStaticEventError {
|
|
1872
1931
|
|
|
1932
|
+
static __wrap(ptr) {
|
|
1933
|
+
ptr = ptr >>> 0;
|
|
1934
|
+
const obj = Object.create(JsReceiveStaticEventError.prototype);
|
|
1935
|
+
obj.__wbg_ptr = ptr;
|
|
1936
|
+
JsReceiveStaticEventErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1937
|
+
return obj;
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1873
1940
|
__destroy_into_raw() {
|
|
1874
1941
|
const ptr = this.__wbg_ptr;
|
|
1875
1942
|
this.__wbg_ptr = 0;
|
|
@@ -1882,7 +1949,9 @@ class JsReceiveStaticEventError {
|
|
|
1882
1949
|
wasm.__wbg_jsreceivestaticeventerror_free(ptr, 0);
|
|
1883
1950
|
}
|
|
1884
1951
|
}
|
|
1885
|
-
|
|
1952
|
+
if (Symbol.dispose) JsReceiveStaticEventError.prototype[Symbol.dispose] = JsReceiveStaticEventError.prototype.free;
|
|
1953
|
+
|
|
1954
|
+
exports.JsReceiveStaticEventError = JsReceiveStaticEventError;
|
|
1886
1955
|
|
|
1887
1956
|
const KeyhiveFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1888
1957
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2182,8 +2251,19 @@ class Keyhive {
|
|
|
2182
2251
|
const ret = wasm.keyhive_toArchive(this.__wbg_ptr);
|
|
2183
2252
|
return Archive.__wrap(ret);
|
|
2184
2253
|
}
|
|
2254
|
+
/**
|
|
2255
|
+
* @param {Archive} archive
|
|
2256
|
+
* @returns {Promise<void>}
|
|
2257
|
+
*/
|
|
2258
|
+
ingestArchive(archive) {
|
|
2259
|
+
_assertClass(archive, Archive);
|
|
2260
|
+
const ret = wasm.keyhive_ingestArchive(this.__wbg_ptr, archive.__wbg_ptr);
|
|
2261
|
+
return ret;
|
|
2262
|
+
}
|
|
2185
2263
|
}
|
|
2186
|
-
|
|
2264
|
+
if (Symbol.dispose) Keyhive.prototype[Symbol.dispose] = Keyhive.prototype.free;
|
|
2265
|
+
|
|
2266
|
+
exports.Keyhive = Keyhive;
|
|
2187
2267
|
|
|
2188
2268
|
const MemberedFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2189
2269
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2211,7 +2291,9 @@ class Membered {
|
|
|
2211
2291
|
wasm.__wbg_membered_free(ptr, 0);
|
|
2212
2292
|
}
|
|
2213
2293
|
}
|
|
2214
|
-
|
|
2294
|
+
if (Symbol.dispose) Membered.prototype[Symbol.dispose] = Membered.prototype.free;
|
|
2295
|
+
|
|
2296
|
+
exports.Membered = Membered;
|
|
2215
2297
|
|
|
2216
2298
|
const PeerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2217
2299
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2282,7 +2364,9 @@ class Peer {
|
|
|
2282
2364
|
return ret !== 0;
|
|
2283
2365
|
}
|
|
2284
2366
|
}
|
|
2285
|
-
|
|
2367
|
+
if (Symbol.dispose) Peer.prototype[Symbol.dispose] = Peer.prototype.free;
|
|
2368
|
+
|
|
2369
|
+
exports.Peer = Peer;
|
|
2286
2370
|
|
|
2287
2371
|
const RemoveCiphertextErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2288
2372
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2302,7 +2386,9 @@ class RemoveCiphertextError {
|
|
|
2302
2386
|
wasm.__wbg_removeciphertexterror_free(ptr, 0);
|
|
2303
2387
|
}
|
|
2304
2388
|
}
|
|
2305
|
-
|
|
2389
|
+
if (Symbol.dispose) RemoveCiphertextError.prototype[Symbol.dispose] = RemoveCiphertextError.prototype.free;
|
|
2390
|
+
|
|
2391
|
+
exports.RemoveCiphertextError = RemoveCiphertextError;
|
|
2306
2392
|
|
|
2307
2393
|
const RevocationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2308
2394
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2358,7 +2444,9 @@ class Revocation {
|
|
|
2358
2444
|
return History.__wrap(ret);
|
|
2359
2445
|
}
|
|
2360
2446
|
}
|
|
2361
|
-
|
|
2447
|
+
if (Symbol.dispose) Revocation.prototype[Symbol.dispose] = Revocation.prototype.free;
|
|
2448
|
+
|
|
2449
|
+
exports.Revocation = Revocation;
|
|
2362
2450
|
|
|
2363
2451
|
const RevokeMemberErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2364
2452
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2401,7 +2489,9 @@ class RevokeMemberError {
|
|
|
2401
2489
|
}
|
|
2402
2490
|
}
|
|
2403
2491
|
}
|
|
2404
|
-
|
|
2492
|
+
if (Symbol.dispose) RevokeMemberError.prototype[Symbol.dispose] = RevokeMemberError.prototype.free;
|
|
2493
|
+
|
|
2494
|
+
exports.RevokeMemberError = RevokeMemberError;
|
|
2405
2495
|
|
|
2406
2496
|
const SerializationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2407
2497
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2437,7 +2527,9 @@ class SerializationError {
|
|
|
2437
2527
|
return ret;
|
|
2438
2528
|
}
|
|
2439
2529
|
}
|
|
2440
|
-
|
|
2530
|
+
if (Symbol.dispose) SerializationError.prototype[Symbol.dispose] = SerializationError.prototype.free;
|
|
2531
|
+
|
|
2532
|
+
exports.SerializationError = SerializationError;
|
|
2441
2533
|
|
|
2442
2534
|
const ShareKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2443
2535
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2465,7 +2557,9 @@ class ShareKey {
|
|
|
2465
2557
|
wasm.__wbg_sharekey_free(ptr, 0);
|
|
2466
2558
|
}
|
|
2467
2559
|
}
|
|
2468
|
-
|
|
2560
|
+
if (Symbol.dispose) ShareKey.prototype[Symbol.dispose] = ShareKey.prototype.free;
|
|
2561
|
+
|
|
2562
|
+
exports.ShareKey = ShareKey;
|
|
2469
2563
|
|
|
2470
2564
|
const SignedFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2471
2565
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2546,7 +2640,9 @@ class Signed {
|
|
|
2546
2640
|
return v1;
|
|
2547
2641
|
}
|
|
2548
2642
|
}
|
|
2549
|
-
|
|
2643
|
+
if (Symbol.dispose) Signed.prototype[Symbol.dispose] = Signed.prototype.free;
|
|
2644
|
+
|
|
2645
|
+
exports.Signed = Signed;
|
|
2550
2646
|
|
|
2551
2647
|
const SignedCgkaOperationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2552
2648
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2606,7 +2702,9 @@ class SignedCgkaOperation {
|
|
|
2606
2702
|
return v1;
|
|
2607
2703
|
}
|
|
2608
2704
|
}
|
|
2609
|
-
|
|
2705
|
+
if (Symbol.dispose) SignedCgkaOperation.prototype[Symbol.dispose] = SignedCgkaOperation.prototype.free;
|
|
2706
|
+
|
|
2707
|
+
exports.SignedCgkaOperation = SignedCgkaOperation;
|
|
2610
2708
|
|
|
2611
2709
|
const SignedDelegationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2612
2710
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2666,7 +2764,9 @@ class SignedDelegation {
|
|
|
2666
2764
|
return v1;
|
|
2667
2765
|
}
|
|
2668
2766
|
}
|
|
2669
|
-
|
|
2767
|
+
if (Symbol.dispose) SignedDelegation.prototype[Symbol.dispose] = SignedDelegation.prototype.free;
|
|
2768
|
+
|
|
2769
|
+
exports.SignedDelegation = SignedDelegation;
|
|
2670
2770
|
|
|
2671
2771
|
const SignedInvocationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2672
2772
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2686,7 +2786,9 @@ class SignedInvocation {
|
|
|
2686
2786
|
wasm.__wbg_signedinvocation_free(ptr, 0);
|
|
2687
2787
|
}
|
|
2688
2788
|
}
|
|
2689
|
-
|
|
2789
|
+
if (Symbol.dispose) SignedInvocation.prototype[Symbol.dispose] = SignedInvocation.prototype.free;
|
|
2790
|
+
|
|
2791
|
+
exports.SignedInvocation = SignedInvocation;
|
|
2690
2792
|
|
|
2691
2793
|
const SignedRevocationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2692
2794
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2746,7 +2848,9 @@ class SignedRevocation {
|
|
|
2746
2848
|
return v1;
|
|
2747
2849
|
}
|
|
2748
2850
|
}
|
|
2749
|
-
|
|
2851
|
+
if (Symbol.dispose) SignedRevocation.prototype[Symbol.dispose] = SignedRevocation.prototype.free;
|
|
2852
|
+
|
|
2853
|
+
exports.SignedRevocation = SignedRevocation;
|
|
2750
2854
|
|
|
2751
2855
|
const SignerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2752
2856
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2857,7 +2961,9 @@ class Signer {
|
|
|
2857
2961
|
return Signer.__wrap(ret);
|
|
2858
2962
|
}
|
|
2859
2963
|
}
|
|
2860
|
-
|
|
2964
|
+
if (Symbol.dispose) Signer.prototype[Symbol.dispose] = Signer.prototype.free;
|
|
2965
|
+
|
|
2966
|
+
exports.Signer = Signer;
|
|
2861
2967
|
|
|
2862
2968
|
const SigningErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2863
2969
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2900,7 +3006,9 @@ class SigningError {
|
|
|
2900
3006
|
}
|
|
2901
3007
|
}
|
|
2902
3008
|
}
|
|
2903
|
-
|
|
3009
|
+
if (Symbol.dispose) SigningError.prototype[Symbol.dispose] = SigningError.prototype.free;
|
|
3010
|
+
|
|
3011
|
+
exports.SigningError = SigningError;
|
|
2904
3012
|
|
|
2905
3013
|
const SimpleCapabilityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2906
3014
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2942,7 +3050,9 @@ class SimpleCapability {
|
|
|
2942
3050
|
return Access.__wrap(ret);
|
|
2943
3051
|
}
|
|
2944
3052
|
}
|
|
2945
|
-
|
|
3053
|
+
if (Symbol.dispose) SimpleCapability.prototype[Symbol.dispose] = SimpleCapability.prototype.free;
|
|
3054
|
+
|
|
3055
|
+
exports.SimpleCapability = SimpleCapability;
|
|
2946
3056
|
|
|
2947
3057
|
const SummaryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2948
3058
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2984,7 +3094,9 @@ class Summary {
|
|
|
2984
3094
|
return Access.__wrap(ret);
|
|
2985
3095
|
}
|
|
2986
3096
|
}
|
|
2987
|
-
|
|
3097
|
+
if (Symbol.dispose) Summary.prototype[Symbol.dispose] = Summary.prototype.free;
|
|
3098
|
+
|
|
3099
|
+
exports.Summary = Summary;
|
|
2988
3100
|
|
|
2989
3101
|
const TryFromArchiveErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2990
3102
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -3020,89 +3132,91 @@ class TryFromArchiveError {
|
|
|
3020
3132
|
return ret;
|
|
3021
3133
|
}
|
|
3022
3134
|
}
|
|
3023
|
-
|
|
3135
|
+
if (Symbol.dispose) TryFromArchiveError.prototype[Symbol.dispose] = TryFromArchiveError.prototype.free;
|
|
3024
3136
|
|
|
3025
|
-
|
|
3137
|
+
exports.TryFromArchiveError = TryFromArchiveError;
|
|
3138
|
+
|
|
3139
|
+
exports.__wbg_Error_e17e777aac105295 = function(arg0, arg1) {
|
|
3026
3140
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
3027
3141
|
return ret;
|
|
3028
3142
|
};
|
|
3029
3143
|
|
|
3030
|
-
|
|
3144
|
+
exports.__wbg_addmembererror_new = function(arg0) {
|
|
3031
3145
|
const ret = AddMemberError.__wrap(arg0);
|
|
3032
3146
|
return ret;
|
|
3033
3147
|
};
|
|
3034
3148
|
|
|
3035
|
-
|
|
3149
|
+
exports.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
|
|
3036
3150
|
const ret = arg0.call(arg1);
|
|
3037
3151
|
return ret;
|
|
3038
3152
|
}, arguments) };
|
|
3039
3153
|
|
|
3040
|
-
|
|
3154
|
+
exports.__wbg_call_a5400b25a865cfd8 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3041
3155
|
const ret = arg0.call(arg1, arg2);
|
|
3042
3156
|
return ret;
|
|
3043
3157
|
}, arguments) };
|
|
3044
3158
|
|
|
3045
|
-
|
|
3159
|
+
exports.__wbg_cannotparseed25519signingkey_new = function(arg0) {
|
|
3046
3160
|
const ret = CannotParseEd25519SigningKey.__wrap(arg0);
|
|
3047
3161
|
return ret;
|
|
3048
3162
|
};
|
|
3049
3163
|
|
|
3050
|
-
|
|
3164
|
+
exports.__wbg_cannotparseidentifier_new = function(arg0) {
|
|
3051
3165
|
const ret = CannotParseIdentifier.__wrap(arg0);
|
|
3052
3166
|
return ret;
|
|
3053
3167
|
};
|
|
3054
3168
|
|
|
3055
|
-
|
|
3169
|
+
exports.__wbg_capability_new = function(arg0) {
|
|
3056
3170
|
const ret = Capability.__wrap(arg0);
|
|
3057
3171
|
return ret;
|
|
3058
3172
|
};
|
|
3059
3173
|
|
|
3060
|
-
|
|
3174
|
+
exports.__wbg_changeref_new = function(arg0) {
|
|
3061
3175
|
const ret = ChangeRef.__wrap(arg0);
|
|
3062
3176
|
return ret;
|
|
3063
3177
|
};
|
|
3064
3178
|
|
|
3065
|
-
|
|
3179
|
+
exports.__wbg_changeref_unwrap = function(arg0) {
|
|
3066
3180
|
const ret = ChangeRef.__unwrap(arg0);
|
|
3067
3181
|
return ret;
|
|
3068
3182
|
};
|
|
3069
3183
|
|
|
3070
|
-
|
|
3184
|
+
exports.__wbg_contactcard_new = function(arg0) {
|
|
3071
3185
|
const ret = ContactCard.__wrap(arg0);
|
|
3072
3186
|
return ret;
|
|
3073
3187
|
};
|
|
3074
3188
|
|
|
3075
|
-
|
|
3189
|
+
exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
3076
3190
|
const ret = arg0.crypto;
|
|
3077
3191
|
return ret;
|
|
3078
3192
|
};
|
|
3079
3193
|
|
|
3080
|
-
|
|
3194
|
+
exports.__wbg_crypto_92ce5ebc02988b17 = function() { return handleError(function (arg0) {
|
|
3081
3195
|
const ret = arg0.crypto;
|
|
3082
3196
|
return ret;
|
|
3083
3197
|
}, arguments) };
|
|
3084
3198
|
|
|
3085
|
-
|
|
3199
|
+
exports.__wbg_doccontentrefs_new = function(arg0) {
|
|
3086
3200
|
const ret = DocContentRefs.__wrap(arg0);
|
|
3087
3201
|
return ret;
|
|
3088
3202
|
};
|
|
3089
3203
|
|
|
3090
|
-
|
|
3204
|
+
exports.__wbg_document_new = function(arg0) {
|
|
3091
3205
|
const ret = Document.__wrap(arg0);
|
|
3092
3206
|
return ret;
|
|
3093
3207
|
};
|
|
3094
3208
|
|
|
3095
|
-
|
|
3209
|
+
exports.__wbg_document_unwrap = function(arg0) {
|
|
3096
3210
|
const ret = Document.__unwrap(arg0);
|
|
3097
3211
|
return ret;
|
|
3098
3212
|
};
|
|
3099
3213
|
|
|
3100
|
-
|
|
3214
|
+
exports.__wbg_encryptedcontentwithupdate_new = function(arg0) {
|
|
3101
3215
|
const ret = EncryptedContentWithUpdate.__wrap(arg0);
|
|
3102
3216
|
return ret;
|
|
3103
3217
|
};
|
|
3104
3218
|
|
|
3105
|
-
|
|
3219
|
+
exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
3106
3220
|
let deferred0_0;
|
|
3107
3221
|
let deferred0_1;
|
|
3108
3222
|
try {
|
|
@@ -3114,51 +3228,51 @@ module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
|
3114
3228
|
}
|
|
3115
3229
|
};
|
|
3116
3230
|
|
|
3117
|
-
|
|
3231
|
+
exports.__wbg_event_new = function(arg0) {
|
|
3118
3232
|
const ret = Event.__wrap(arg0);
|
|
3119
3233
|
return ret;
|
|
3120
3234
|
};
|
|
3121
3235
|
|
|
3122
|
-
|
|
3236
|
+
exports.__wbg_exportKey_4a1163511775473d = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3123
3237
|
const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
|
|
3124
3238
|
return ret;
|
|
3125
3239
|
}, arguments) };
|
|
3126
3240
|
|
|
3127
|
-
|
|
3241
|
+
exports.__wbg_generateKey_b8902ccb0e50ff4e = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3128
3242
|
const ret = arg0.generateKey(getStringFromWasm0(arg1, arg2), arg3 !== 0, arg4);
|
|
3129
3243
|
return ret;
|
|
3130
3244
|
}, arguments) };
|
|
3131
3245
|
|
|
3132
|
-
|
|
3246
|
+
exports.__wbg_generatedocerror_new = function(arg0) {
|
|
3133
3247
|
const ret = GenerateDocError.__wrap(arg0);
|
|
3134
3248
|
return ret;
|
|
3135
3249
|
};
|
|
3136
3250
|
|
|
3137
|
-
|
|
3251
|
+
exports.__wbg_generatewebcryptoerror_new = function(arg0) {
|
|
3138
3252
|
const ret = GenerateWebCryptoError.__wrap(arg0);
|
|
3139
3253
|
return ret;
|
|
3140
3254
|
};
|
|
3141
3255
|
|
|
3142
|
-
|
|
3256
|
+
exports.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
3143
3257
|
arg0.getRandomValues(arg1);
|
|
3144
3258
|
}, arguments) };
|
|
3145
3259
|
|
|
3146
|
-
|
|
3260
|
+
exports.__wbg_getprivatekey_2b060a8a8c19d828 = function(arg0) {
|
|
3147
3261
|
const ret = arg0.privateKey;
|
|
3148
3262
|
return ret;
|
|
3149
3263
|
};
|
|
3150
3264
|
|
|
3151
|
-
|
|
3265
|
+
exports.__wbg_getpublickey_ad4c2474164b2d9a = function(arg0) {
|
|
3152
3266
|
const ret = arg0.publicKey;
|
|
3153
3267
|
return ret;
|
|
3154
3268
|
};
|
|
3155
3269
|
|
|
3156
|
-
|
|
3270
|
+
exports.__wbg_group_new = function(arg0) {
|
|
3157
3271
|
const ret = Group.__wrap(arg0);
|
|
3158
3272
|
return ret;
|
|
3159
3273
|
};
|
|
3160
3274
|
|
|
3161
|
-
|
|
3275
|
+
exports.__wbg_instanceof_Window_12d20d558ef92592 = function(arg0) {
|
|
3162
3276
|
let result;
|
|
3163
3277
|
try {
|
|
3164
3278
|
result = arg0 instanceof Window;
|
|
@@ -3169,54 +3283,49 @@ module.exports.__wbg_instanceof_Window_7f29e5c72acbfd60 = function(arg0) {
|
|
|
3169
3283
|
return ret;
|
|
3170
3284
|
};
|
|
3171
3285
|
|
|
3172
|
-
|
|
3286
|
+
exports.__wbg_jsdecrypterror_new = function(arg0) {
|
|
3173
3287
|
const ret = JsDecryptError.__wrap(arg0);
|
|
3174
3288
|
return ret;
|
|
3175
3289
|
};
|
|
3176
3290
|
|
|
3177
|
-
|
|
3291
|
+
exports.__wbg_jsencrypterror_new = function(arg0) {
|
|
3178
3292
|
const ret = JsEncryptError.__wrap(arg0);
|
|
3179
3293
|
return ret;
|
|
3180
3294
|
};
|
|
3181
3295
|
|
|
3182
|
-
|
|
3296
|
+
exports.__wbg_jsreceiveprekeyoperror_new = function(arg0) {
|
|
3183
3297
|
const ret = JsReceivePreKeyOpError.__wrap(arg0);
|
|
3184
3298
|
return ret;
|
|
3185
3299
|
};
|
|
3186
3300
|
|
|
3187
|
-
|
|
3188
|
-
const ret =
|
|
3301
|
+
exports.__wbg_jsreceivestaticeventerror_new = function(arg0) {
|
|
3302
|
+
const ret = JsReceiveStaticEventError.__wrap(arg0);
|
|
3189
3303
|
return ret;
|
|
3190
3304
|
};
|
|
3191
3305
|
|
|
3192
|
-
|
|
3193
|
-
const ret = arg0
|
|
3194
|
-
return ret;
|
|
3195
|
-
};
|
|
3196
|
-
|
|
3197
|
-
module.exports.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
3198
|
-
const ret = arg0.msCrypto;
|
|
3306
|
+
exports.__wbg_keyhive_new = function(arg0) {
|
|
3307
|
+
const ret = Keyhive.__wrap(arg0);
|
|
3199
3308
|
return ret;
|
|
3200
3309
|
};
|
|
3201
3310
|
|
|
3202
|
-
|
|
3203
|
-
const ret =
|
|
3311
|
+
exports.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
|
|
3312
|
+
const ret = arg0.length;
|
|
3204
3313
|
return ret;
|
|
3205
3314
|
};
|
|
3206
3315
|
|
|
3207
|
-
|
|
3208
|
-
const ret =
|
|
3316
|
+
exports.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
3317
|
+
const ret = arg0.msCrypto;
|
|
3209
3318
|
return ret;
|
|
3210
3319
|
};
|
|
3211
3320
|
|
|
3212
|
-
|
|
3321
|
+
exports.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) {
|
|
3213
3322
|
try {
|
|
3214
3323
|
var state0 = {a: arg0, b: arg1};
|
|
3215
3324
|
var cb0 = (arg0, arg1) => {
|
|
3216
3325
|
const a = state0.a;
|
|
3217
3326
|
state0.a = 0;
|
|
3218
3327
|
try {
|
|
3219
|
-
return
|
|
3328
|
+
return __wbg_adapter_272(a, state0.b, arg0, arg1);
|
|
3220
3329
|
} finally {
|
|
3221
3330
|
state0.a = a;
|
|
3222
3331
|
}
|
|
@@ -3228,109 +3337,119 @@ module.exports.__wbg_new_d5e3800b120e37e1 = function(arg0, arg1) {
|
|
|
3228
3337
|
}
|
|
3229
3338
|
};
|
|
3230
3339
|
|
|
3231
|
-
|
|
3340
|
+
exports.__wbg_new_638ebfaedbf32a5e = function(arg0) {
|
|
3341
|
+
const ret = new Uint8Array(arg0);
|
|
3342
|
+
return ret;
|
|
3343
|
+
};
|
|
3344
|
+
|
|
3345
|
+
exports.__wbg_new_8a6f238a6ece86ea = function() {
|
|
3346
|
+
const ret = new Error();
|
|
3347
|
+
return ret;
|
|
3348
|
+
};
|
|
3349
|
+
|
|
3350
|
+
exports.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) {
|
|
3232
3351
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3233
3352
|
return ret;
|
|
3234
3353
|
};
|
|
3235
3354
|
|
|
3236
|
-
|
|
3355
|
+
exports.__wbg_newwithlength_a167dcc7aaa3ba77 = function(arg0) {
|
|
3237
3356
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
3238
3357
|
return ret;
|
|
3239
3358
|
};
|
|
3240
3359
|
|
|
3241
|
-
|
|
3360
|
+
exports.__wbg_node_905d3e251edff8a2 = function(arg0) {
|
|
3242
3361
|
const ret = arg0.node;
|
|
3243
3362
|
return ret;
|
|
3244
3363
|
};
|
|
3245
3364
|
|
|
3246
|
-
|
|
3365
|
+
exports.__wbg_peer_unwrap = function(arg0) {
|
|
3247
3366
|
const ret = Peer.__unwrap(arg0);
|
|
3248
3367
|
return ret;
|
|
3249
3368
|
};
|
|
3250
3369
|
|
|
3251
|
-
|
|
3370
|
+
exports.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
|
|
3252
3371
|
const ret = arg0.process;
|
|
3253
3372
|
return ret;
|
|
3254
3373
|
};
|
|
3255
3374
|
|
|
3256
|
-
|
|
3375
|
+
exports.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
|
|
3257
3376
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
3258
3377
|
};
|
|
3259
3378
|
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
return ret;
|
|
3379
|
+
exports.__wbg_queueMicrotask_25d0739ac89e8c88 = function(arg0) {
|
|
3380
|
+
queueMicrotask(arg0);
|
|
3263
3381
|
};
|
|
3264
3382
|
|
|
3265
|
-
|
|
3266
|
-
queueMicrotask
|
|
3383
|
+
exports.__wbg_queueMicrotask_4488407636f5bf24 = function(arg0) {
|
|
3384
|
+
const ret = arg0.queueMicrotask;
|
|
3385
|
+
return ret;
|
|
3267
3386
|
};
|
|
3268
3387
|
|
|
3269
|
-
|
|
3388
|
+
exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
3270
3389
|
arg0.randomFillSync(arg1);
|
|
3271
3390
|
}, arguments) };
|
|
3272
3391
|
|
|
3273
|
-
|
|
3392
|
+
exports.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
|
|
3274
3393
|
const ret = module.require;
|
|
3275
3394
|
return ret;
|
|
3276
3395
|
}, arguments) };
|
|
3277
3396
|
|
|
3278
|
-
|
|
3397
|
+
exports.__wbg_resolve_4055c623acdd6a1b = function(arg0) {
|
|
3279
3398
|
const ret = Promise.resolve(arg0);
|
|
3280
3399
|
return ret;
|
|
3281
3400
|
};
|
|
3282
3401
|
|
|
3283
|
-
|
|
3402
|
+
exports.__wbg_revokemembererror_new = function(arg0) {
|
|
3284
3403
|
const ret = RevokeMemberError.__wrap(arg0);
|
|
3285
3404
|
return ret;
|
|
3286
3405
|
};
|
|
3287
3406
|
|
|
3288
|
-
|
|
3407
|
+
exports.__wbg_serializationerror_new = function(arg0) {
|
|
3289
3408
|
const ret = SerializationError.__wrap(arg0);
|
|
3290
3409
|
return ret;
|
|
3291
3410
|
};
|
|
3292
3411
|
|
|
3293
|
-
|
|
3412
|
+
exports.__wbg_sharekey_new = function(arg0) {
|
|
3294
3413
|
const ret = ShareKey.__wrap(arg0);
|
|
3295
3414
|
return ret;
|
|
3296
3415
|
};
|
|
3297
3416
|
|
|
3298
|
-
|
|
3417
|
+
exports.__wbg_sign_8891059f121b31b5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3299
3418
|
const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
3300
3419
|
return ret;
|
|
3301
3420
|
}, arguments) };
|
|
3302
3421
|
|
|
3303
|
-
|
|
3422
|
+
exports.__wbg_signed_new = function(arg0) {
|
|
3304
3423
|
const ret = Signed.__wrap(arg0);
|
|
3305
3424
|
return ret;
|
|
3306
3425
|
};
|
|
3307
3426
|
|
|
3308
|
-
|
|
3427
|
+
exports.__wbg_signeddelegation_new = function(arg0) {
|
|
3309
3428
|
const ret = SignedDelegation.__wrap(arg0);
|
|
3310
3429
|
return ret;
|
|
3311
3430
|
};
|
|
3312
3431
|
|
|
3313
|
-
|
|
3432
|
+
exports.__wbg_signedrevocation_new = function(arg0) {
|
|
3314
3433
|
const ret = SignedRevocation.__wrap(arg0);
|
|
3315
3434
|
return ret;
|
|
3316
3435
|
};
|
|
3317
3436
|
|
|
3318
|
-
|
|
3437
|
+
exports.__wbg_signer_new = function(arg0) {
|
|
3319
3438
|
const ret = Signer.__wrap(arg0);
|
|
3320
3439
|
return ret;
|
|
3321
3440
|
};
|
|
3322
3441
|
|
|
3323
|
-
|
|
3442
|
+
exports.__wbg_signingerror_new = function(arg0) {
|
|
3324
3443
|
const ret = SigningError.__wrap(arg0);
|
|
3325
3444
|
return ret;
|
|
3326
3445
|
};
|
|
3327
3446
|
|
|
3328
|
-
|
|
3447
|
+
exports.__wbg_simplecapability_new = function(arg0) {
|
|
3329
3448
|
const ret = SimpleCapability.__wrap(arg0);
|
|
3330
3449
|
return ret;
|
|
3331
3450
|
};
|
|
3332
3451
|
|
|
3333
|
-
|
|
3452
|
+
exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
3334
3453
|
const ret = arg1.stack;
|
|
3335
3454
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3336
3455
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -3338,62 +3457,62 @@ module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
|
3338
3457
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3339
3458
|
};
|
|
3340
3459
|
|
|
3341
|
-
|
|
3460
|
+
exports.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() {
|
|
3342
3461
|
const ret = typeof global === 'undefined' ? null : global;
|
|
3343
3462
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3344
3463
|
};
|
|
3345
3464
|
|
|
3346
|
-
|
|
3465
|
+
exports.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() {
|
|
3347
3466
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
3348
3467
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3349
3468
|
};
|
|
3350
3469
|
|
|
3351
|
-
|
|
3470
|
+
exports.__wbg_static_accessor_SELF_995b214ae681ff99 = function() {
|
|
3352
3471
|
const ret = typeof self === 'undefined' ? null : self;
|
|
3353
3472
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3354
3473
|
};
|
|
3355
3474
|
|
|
3356
|
-
|
|
3475
|
+
exports.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() {
|
|
3357
3476
|
const ret = typeof window === 'undefined' ? null : window;
|
|
3358
3477
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3359
3478
|
};
|
|
3360
3479
|
|
|
3361
|
-
|
|
3480
|
+
exports.__wbg_subarray_70fd07feefe14294 = function(arg0, arg1, arg2) {
|
|
3362
3481
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3363
3482
|
return ret;
|
|
3364
3483
|
};
|
|
3365
3484
|
|
|
3366
|
-
|
|
3485
|
+
exports.__wbg_subtle_dd66747d3e9a93d4 = function(arg0) {
|
|
3367
3486
|
const ret = arg0.subtle;
|
|
3368
3487
|
return ret;
|
|
3369
3488
|
};
|
|
3370
3489
|
|
|
3371
|
-
|
|
3490
|
+
exports.__wbg_summary_new = function(arg0) {
|
|
3372
3491
|
const ret = Summary.__wrap(arg0);
|
|
3373
3492
|
return ret;
|
|
3374
3493
|
};
|
|
3375
3494
|
|
|
3376
|
-
|
|
3495
|
+
exports.__wbg_then_b33a773d723afa3e = function(arg0, arg1, arg2) {
|
|
3377
3496
|
const ret = arg0.then(arg1, arg2);
|
|
3378
3497
|
return ret;
|
|
3379
3498
|
};
|
|
3380
3499
|
|
|
3381
|
-
|
|
3500
|
+
exports.__wbg_then_e22500defe16819f = function(arg0, arg1) {
|
|
3382
3501
|
const ret = arg0.then(arg1);
|
|
3383
3502
|
return ret;
|
|
3384
3503
|
};
|
|
3385
3504
|
|
|
3386
|
-
|
|
3505
|
+
exports.__wbg_tryfromarchiveerror_new = function(arg0) {
|
|
3387
3506
|
const ret = TryFromArchiveError.__wrap(arg0);
|
|
3388
3507
|
return ret;
|
|
3389
3508
|
};
|
|
3390
3509
|
|
|
3391
|
-
|
|
3510
|
+
exports.__wbg_versions_c01dfd4722a88165 = function(arg0) {
|
|
3392
3511
|
const ret = arg0.versions;
|
|
3393
3512
|
return ret;
|
|
3394
3513
|
};
|
|
3395
3514
|
|
|
3396
|
-
|
|
3515
|
+
exports.__wbg_wbindgencbdrop_eb10308566512b88 = function(arg0) {
|
|
3397
3516
|
const obj = arg0.original;
|
|
3398
3517
|
if (obj.cnt-- == 1) {
|
|
3399
3518
|
obj.a = 0;
|
|
@@ -3403,7 +3522,7 @@ module.exports.__wbg_wbindgencbdrop_a85ed476c6a370b9 = function(arg0) {
|
|
|
3403
3522
|
return ret;
|
|
3404
3523
|
};
|
|
3405
3524
|
|
|
3406
|
-
|
|
3525
|
+
exports.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
|
|
3407
3526
|
const ret = debugString(arg1);
|
|
3408
3527
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3409
3528
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -3411,44 +3530,44 @@ module.exports.__wbg_wbindgendebugstring_bb652b1bc2061b6d = function(arg0, arg1)
|
|
|
3411
3530
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3412
3531
|
};
|
|
3413
3532
|
|
|
3414
|
-
|
|
3533
|
+
exports.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
|
|
3415
3534
|
const ret = typeof(arg0) === 'function';
|
|
3416
3535
|
return ret;
|
|
3417
3536
|
};
|
|
3418
3537
|
|
|
3419
|
-
|
|
3538
|
+
exports.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
|
|
3420
3539
|
const val = arg0;
|
|
3421
3540
|
const ret = typeof(val) === 'object' && val !== null;
|
|
3422
3541
|
return ret;
|
|
3423
3542
|
};
|
|
3424
3543
|
|
|
3425
|
-
|
|
3544
|
+
exports.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
|
|
3426
3545
|
const ret = typeof(arg0) === 'string';
|
|
3427
3546
|
return ret;
|
|
3428
3547
|
};
|
|
3429
3548
|
|
|
3430
|
-
|
|
3549
|
+
exports.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) {
|
|
3431
3550
|
const ret = arg0 === undefined;
|
|
3432
3551
|
return ret;
|
|
3433
3552
|
};
|
|
3434
3553
|
|
|
3435
|
-
|
|
3554
|
+
exports.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
|
|
3436
3555
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
3437
3556
|
};
|
|
3438
3557
|
|
|
3439
|
-
|
|
3440
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3441
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3558
|
+
exports.__wbindgen_cast_133053e9d0cd85aa = function(arg0, arg1) {
|
|
3559
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 422, function: Function { arguments: [Externref], shim_idx: 423, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3560
|
+
const ret = makeMutClosure(arg0, arg1, 422, __wbg_adapter_8);
|
|
3442
3561
|
return ret;
|
|
3443
3562
|
};
|
|
3444
3563
|
|
|
3445
|
-
|
|
3564
|
+
exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
3446
3565
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
3447
3566
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
3448
3567
|
return ret;
|
|
3449
3568
|
};
|
|
3450
3569
|
|
|
3451
|
-
|
|
3570
|
+
exports.__wbindgen_cast_25a0a844437d0e92 = function(arg0, arg1) {
|
|
3452
3571
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3453
3572
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3454
3573
|
// Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
|
|
@@ -3456,7 +3575,7 @@ module.exports.__wbindgen_cast_25a0a844437d0e92 = function(arg0, arg1) {
|
|
|
3456
3575
|
return ret;
|
|
3457
3576
|
};
|
|
3458
3577
|
|
|
3459
|
-
|
|
3578
|
+
exports.__wbindgen_cast_ae91babfc5c19b28 = function(arg0, arg1) {
|
|
3460
3579
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3461
3580
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3462
3581
|
// Cast intrinsic for `Vector(NamedExternref("SignedRevocation")) -> Externref`.
|
|
@@ -3464,13 +3583,13 @@ module.exports.__wbindgen_cast_ae91babfc5c19b28 = function(arg0, arg1) {
|
|
|
3464
3583
|
return ret;
|
|
3465
3584
|
};
|
|
3466
3585
|
|
|
3467
|
-
|
|
3586
|
+
exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
3468
3587
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
3469
3588
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
3470
3589
|
return ret;
|
|
3471
3590
|
};
|
|
3472
3591
|
|
|
3473
|
-
|
|
3592
|
+
exports.__wbindgen_init_externref_table = function() {
|
|
3474
3593
|
const table = wasm.__wbindgen_export_2;
|
|
3475
3594
|
const offset = table.grow(4);
|
|
3476
3595
|
table.set(0, undefined);
|
|
@@ -3481,13 +3600,10 @@ module.exports.__wbindgen_init_externref_table = function() {
|
|
|
3481
3600
|
;
|
|
3482
3601
|
};
|
|
3483
3602
|
|
|
3484
|
-
const
|
|
3485
|
-
const
|
|
3486
|
-
|
|
3487
|
-
const
|
|
3488
|
-
const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
|
|
3489
|
-
wasm = wasmInstance.exports;
|
|
3490
|
-
module.exports.__wasm = wasm;
|
|
3603
|
+
const wasmPath = `${__dirname}/keyhive_wasm_bg.wasm`;
|
|
3604
|
+
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
3605
|
+
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
3606
|
+
const wasm = exports.__wasm = new WebAssembly.Instance(wasmModule, imports).exports;
|
|
3491
3607
|
|
|
3492
3608
|
wasm.__wbindgen_start();
|
|
3493
3609
|
|