@keyhive/keyhive 0.0.0-alpha.1 → 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 +15 -4
- package/pkg/keyhive_wasm.d.ts +51 -0
- package/pkg/keyhive_wasm_bg.js +110 -65
- package/pkg/keyhive_wasm_bg.wasm +0 -0
- package/pkg-node/keyhive_wasm.d.ts +51 -0
- package/pkg-node/keyhive_wasm.js +263 -168
- package/pkg-node/keyhive_wasm_bg.wasm +0 -0
- 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;
|
|
@@ -249,7 +245,7 @@ function _assertClass(instance, klass) {
|
|
|
249
245
|
* This function needs to be called at least once during initialisation.
|
|
250
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
|
|
251
247
|
*/
|
|
252
|
-
|
|
248
|
+
exports.setPanicHook = function() {
|
|
253
249
|
wasm.setPanicHook();
|
|
254
250
|
};
|
|
255
251
|
|
|
@@ -321,7 +317,9 @@ class Access {
|
|
|
321
317
|
}
|
|
322
318
|
}
|
|
323
319
|
}
|
|
324
|
-
|
|
320
|
+
if (Symbol.dispose) Access.prototype[Symbol.dispose] = Access.prototype.free;
|
|
321
|
+
|
|
322
|
+
exports.Access = Access;
|
|
325
323
|
|
|
326
324
|
const AddMemberErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
327
325
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -364,7 +362,9 @@ class AddMemberError {
|
|
|
364
362
|
}
|
|
365
363
|
}
|
|
366
364
|
}
|
|
367
|
-
|
|
365
|
+
if (Symbol.dispose) AddMemberError.prototype[Symbol.dispose] = AddMemberError.prototype.free;
|
|
366
|
+
|
|
367
|
+
exports.AddMemberError = AddMemberError;
|
|
368
368
|
|
|
369
369
|
const AgentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
370
370
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -435,7 +435,9 @@ class Agent {
|
|
|
435
435
|
return Identifier.__wrap(ret);
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
|
-
|
|
438
|
+
if (Symbol.dispose) Agent.prototype[Symbol.dispose] = Agent.prototype.free;
|
|
439
|
+
|
|
440
|
+
exports.Agent = Agent;
|
|
439
441
|
|
|
440
442
|
const ArchiveFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
441
443
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -505,7 +507,9 @@ class Archive {
|
|
|
505
507
|
return Keyhive.__wrap(ret[0]);
|
|
506
508
|
}
|
|
507
509
|
}
|
|
508
|
-
|
|
510
|
+
if (Symbol.dispose) Archive.prototype[Symbol.dispose] = Archive.prototype.free;
|
|
511
|
+
|
|
512
|
+
exports.Archive = Archive;
|
|
509
513
|
|
|
510
514
|
const CannotParseEd25519SigningKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
511
515
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -533,7 +537,9 @@ class CannotParseEd25519SigningKey {
|
|
|
533
537
|
wasm.__wbg_cannotparseed25519signingkey_free(ptr, 0);
|
|
534
538
|
}
|
|
535
539
|
}
|
|
536
|
-
|
|
540
|
+
if (Symbol.dispose) CannotParseEd25519SigningKey.prototype[Symbol.dispose] = CannotParseEd25519SigningKey.prototype.free;
|
|
541
|
+
|
|
542
|
+
exports.CannotParseEd25519SigningKey = CannotParseEd25519SigningKey;
|
|
537
543
|
|
|
538
544
|
const CannotParseIdentifierFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
539
545
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -561,7 +567,9 @@ class CannotParseIdentifier {
|
|
|
561
567
|
wasm.__wbg_cannotparseidentifier_free(ptr, 0);
|
|
562
568
|
}
|
|
563
569
|
}
|
|
564
|
-
|
|
570
|
+
if (Symbol.dispose) CannotParseIdentifier.prototype[Symbol.dispose] = CannotParseIdentifier.prototype.free;
|
|
571
|
+
|
|
572
|
+
exports.CannotParseIdentifier = CannotParseIdentifier;
|
|
565
573
|
|
|
566
574
|
const CapabilityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
567
575
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -610,7 +618,9 @@ class Capability {
|
|
|
610
618
|
return SignedDelegation.__wrap(ret);
|
|
611
619
|
}
|
|
612
620
|
}
|
|
613
|
-
|
|
621
|
+
if (Symbol.dispose) Capability.prototype[Symbol.dispose] = Capability.prototype.free;
|
|
622
|
+
|
|
623
|
+
exports.Capability = Capability;
|
|
614
624
|
|
|
615
625
|
const CgkaOperationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
616
626
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -653,7 +663,9 @@ class CgkaOperation {
|
|
|
653
663
|
}
|
|
654
664
|
}
|
|
655
665
|
}
|
|
656
|
-
|
|
666
|
+
if (Symbol.dispose) CgkaOperation.prototype[Symbol.dispose] = CgkaOperation.prototype.free;
|
|
667
|
+
|
|
668
|
+
exports.CgkaOperation = CgkaOperation;
|
|
657
669
|
|
|
658
670
|
const ChangeRefFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
659
671
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -708,7 +720,9 @@ class ChangeRef {
|
|
|
708
720
|
return v1;
|
|
709
721
|
}
|
|
710
722
|
}
|
|
711
|
-
|
|
723
|
+
if (Symbol.dispose) ChangeRef.prototype[Symbol.dispose] = ChangeRef.prototype.free;
|
|
724
|
+
|
|
725
|
+
exports.ChangeRef = ChangeRef;
|
|
712
726
|
|
|
713
727
|
const CiphertextStoreFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
714
728
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -751,7 +765,9 @@ class CiphertextStore {
|
|
|
751
765
|
return CiphertextStore.__wrap(ret);
|
|
752
766
|
}
|
|
753
767
|
}
|
|
754
|
-
|
|
768
|
+
if (Symbol.dispose) CiphertextStore.prototype[Symbol.dispose] = CiphertextStore.prototype.free;
|
|
769
|
+
|
|
770
|
+
exports.CiphertextStore = CiphertextStore;
|
|
755
771
|
|
|
756
772
|
const ContactCardFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
757
773
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -836,7 +852,9 @@ class ContactCard {
|
|
|
836
852
|
}
|
|
837
853
|
}
|
|
838
854
|
}
|
|
839
|
-
|
|
855
|
+
if (Symbol.dispose) ContactCard.prototype[Symbol.dispose] = ContactCard.prototype.free;
|
|
856
|
+
|
|
857
|
+
exports.ContactCard = ContactCard;
|
|
840
858
|
|
|
841
859
|
const DelegationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
842
860
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -892,7 +910,9 @@ class Delegation {
|
|
|
892
910
|
return History.__wrap(ret);
|
|
893
911
|
}
|
|
894
912
|
}
|
|
895
|
-
|
|
913
|
+
if (Symbol.dispose) Delegation.prototype[Symbol.dispose] = Delegation.prototype.free;
|
|
914
|
+
|
|
915
|
+
exports.Delegation = Delegation;
|
|
896
916
|
|
|
897
917
|
const DelegationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
898
918
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -912,7 +932,9 @@ class DelegationError {
|
|
|
912
932
|
wasm.__wbg_delegationerror_free(ptr, 0);
|
|
913
933
|
}
|
|
914
934
|
}
|
|
915
|
-
|
|
935
|
+
if (Symbol.dispose) DelegationError.prototype[Symbol.dispose] = DelegationError.prototype.free;
|
|
936
|
+
|
|
937
|
+
exports.DelegationError = DelegationError;
|
|
916
938
|
|
|
917
939
|
const DocContentRefsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
918
940
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -981,7 +1003,9 @@ class DocContentRefs {
|
|
|
981
1003
|
return v1;
|
|
982
1004
|
}
|
|
983
1005
|
}
|
|
984
|
-
|
|
1006
|
+
if (Symbol.dispose) DocContentRefs.prototype[Symbol.dispose] = DocContentRefs.prototype.free;
|
|
1007
|
+
|
|
1008
|
+
exports.DocContentRefs = DocContentRefs;
|
|
985
1009
|
|
|
986
1010
|
const DocumentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
987
1011
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1044,7 +1068,9 @@ class Document {
|
|
|
1044
1068
|
return Agent.__wrap(ret);
|
|
1045
1069
|
}
|
|
1046
1070
|
}
|
|
1047
|
-
|
|
1071
|
+
if (Symbol.dispose) Document.prototype[Symbol.dispose] = Document.prototype.free;
|
|
1072
|
+
|
|
1073
|
+
exports.Document = Document;
|
|
1048
1074
|
|
|
1049
1075
|
const DocumentIdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1050
1076
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1117,7 +1143,9 @@ class DocumentId {
|
|
|
1117
1143
|
return v1;
|
|
1118
1144
|
}
|
|
1119
1145
|
}
|
|
1120
|
-
|
|
1146
|
+
if (Symbol.dispose) DocumentId.prototype[Symbol.dispose] = DocumentId.prototype.free;
|
|
1147
|
+
|
|
1148
|
+
exports.DocumentId = DocumentId;
|
|
1121
1149
|
|
|
1122
1150
|
const EncryptedFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1123
1151
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1199,7 +1227,9 @@ class Encrypted {
|
|
|
1199
1227
|
return v1;
|
|
1200
1228
|
}
|
|
1201
1229
|
}
|
|
1202
|
-
|
|
1230
|
+
if (Symbol.dispose) Encrypted.prototype[Symbol.dispose] = Encrypted.prototype.free;
|
|
1231
|
+
|
|
1232
|
+
exports.Encrypted = Encrypted;
|
|
1203
1233
|
|
|
1204
1234
|
const EncryptedContentWithUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1205
1235
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1241,7 +1271,9 @@ class EncryptedContentWithUpdate {
|
|
|
1241
1271
|
return ret === 0 ? undefined : SignedCgkaOperation.__wrap(ret);
|
|
1242
1272
|
}
|
|
1243
1273
|
}
|
|
1244
|
-
|
|
1274
|
+
if (Symbol.dispose) EncryptedContentWithUpdate.prototype[Symbol.dispose] = EncryptedContentWithUpdate.prototype.free;
|
|
1275
|
+
|
|
1276
|
+
exports.EncryptedContentWithUpdate = EncryptedContentWithUpdate;
|
|
1245
1277
|
|
|
1246
1278
|
const EventFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1247
1279
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1312,7 +1344,9 @@ class Event {
|
|
|
1312
1344
|
return ret === 0 ? undefined : SignedRevocation.__wrap(ret);
|
|
1313
1345
|
}
|
|
1314
1346
|
}
|
|
1315
|
-
|
|
1347
|
+
if (Symbol.dispose) Event.prototype[Symbol.dispose] = Event.prototype.free;
|
|
1348
|
+
|
|
1349
|
+
exports.Event = Event;
|
|
1316
1350
|
|
|
1317
1351
|
const GenerateDocErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1318
1352
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1355,7 +1389,9 @@ class GenerateDocError {
|
|
|
1355
1389
|
}
|
|
1356
1390
|
}
|
|
1357
1391
|
}
|
|
1358
|
-
|
|
1392
|
+
if (Symbol.dispose) GenerateDocError.prototype[Symbol.dispose] = GenerateDocError.prototype.free;
|
|
1393
|
+
|
|
1394
|
+
exports.GenerateDocError = GenerateDocError;
|
|
1359
1395
|
|
|
1360
1396
|
const GenerateWebCryptoErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1361
1397
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1398,7 +1434,9 @@ class GenerateWebCryptoError {
|
|
|
1398
1434
|
}
|
|
1399
1435
|
}
|
|
1400
1436
|
}
|
|
1401
|
-
|
|
1437
|
+
if (Symbol.dispose) GenerateWebCryptoError.prototype[Symbol.dispose] = GenerateWebCryptoError.prototype.free;
|
|
1438
|
+
|
|
1439
|
+
exports.GenerateWebCryptoError = GenerateWebCryptoError;
|
|
1402
1440
|
|
|
1403
1441
|
const GetCiphertextErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1404
1442
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1433,7 +1471,9 @@ class GetCiphertextError {
|
|
|
1433
1471
|
}
|
|
1434
1472
|
}
|
|
1435
1473
|
}
|
|
1436
|
-
|
|
1474
|
+
if (Symbol.dispose) GetCiphertextError.prototype[Symbol.dispose] = GetCiphertextError.prototype.free;
|
|
1475
|
+
|
|
1476
|
+
exports.GetCiphertextError = GetCiphertextError;
|
|
1437
1477
|
|
|
1438
1478
|
const GroupFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1439
1479
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1505,7 +1545,9 @@ class Group {
|
|
|
1505
1545
|
return Membered.__wrap(ret);
|
|
1506
1546
|
}
|
|
1507
1547
|
}
|
|
1508
|
-
|
|
1548
|
+
if (Symbol.dispose) Group.prototype[Symbol.dispose] = Group.prototype.free;
|
|
1549
|
+
|
|
1550
|
+
exports.Group = Group;
|
|
1509
1551
|
|
|
1510
1552
|
const GroupIdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1511
1553
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1548,7 +1590,9 @@ class GroupId {
|
|
|
1548
1590
|
}
|
|
1549
1591
|
}
|
|
1550
1592
|
}
|
|
1551
|
-
|
|
1593
|
+
if (Symbol.dispose) GroupId.prototype[Symbol.dispose] = GroupId.prototype.free;
|
|
1594
|
+
|
|
1595
|
+
exports.GroupId = GroupId;
|
|
1552
1596
|
|
|
1553
1597
|
const HistoryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1554
1598
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1603,7 +1647,9 @@ class History {
|
|
|
1603
1647
|
return v1;
|
|
1604
1648
|
}
|
|
1605
1649
|
}
|
|
1606
|
-
|
|
1650
|
+
if (Symbol.dispose) History.prototype[Symbol.dispose] = History.prototype.free;
|
|
1651
|
+
|
|
1652
|
+
exports.History = History;
|
|
1607
1653
|
|
|
1608
1654
|
const IdentifierFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1609
1655
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1654,7 +1700,9 @@ class Identifier {
|
|
|
1654
1700
|
return v1;
|
|
1655
1701
|
}
|
|
1656
1702
|
}
|
|
1657
|
-
|
|
1703
|
+
if (Symbol.dispose) Identifier.prototype[Symbol.dispose] = Identifier.prototype.free;
|
|
1704
|
+
|
|
1705
|
+
exports.Identifier = Identifier;
|
|
1658
1706
|
|
|
1659
1707
|
const IndividualFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1660
1708
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1720,7 +1768,9 @@ class Individual {
|
|
|
1720
1768
|
return ShareKey.__wrap(ret);
|
|
1721
1769
|
}
|
|
1722
1770
|
}
|
|
1723
|
-
|
|
1771
|
+
if (Symbol.dispose) Individual.prototype[Symbol.dispose] = Individual.prototype.free;
|
|
1772
|
+
|
|
1773
|
+
exports.Individual = Individual;
|
|
1724
1774
|
|
|
1725
1775
|
const IndividualIdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1726
1776
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1757,7 +1807,9 @@ class IndividualId {
|
|
|
1757
1807
|
return v1;
|
|
1758
1808
|
}
|
|
1759
1809
|
}
|
|
1760
|
-
|
|
1810
|
+
if (Symbol.dispose) IndividualId.prototype[Symbol.dispose] = IndividualId.prototype.free;
|
|
1811
|
+
|
|
1812
|
+
exports.IndividualId = IndividualId;
|
|
1761
1813
|
|
|
1762
1814
|
const InvocationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1763
1815
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1777,7 +1829,9 @@ class Invocation {
|
|
|
1777
1829
|
wasm.__wbg_invocation_free(ptr, 0);
|
|
1778
1830
|
}
|
|
1779
1831
|
}
|
|
1780
|
-
|
|
1832
|
+
if (Symbol.dispose) Invocation.prototype[Symbol.dispose] = Invocation.prototype.free;
|
|
1833
|
+
|
|
1834
|
+
exports.Invocation = Invocation;
|
|
1781
1835
|
|
|
1782
1836
|
const JsDecryptErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1783
1837
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1805,7 +1859,9 @@ class JsDecryptError {
|
|
|
1805
1859
|
wasm.__wbg_jsdecrypterror_free(ptr, 0);
|
|
1806
1860
|
}
|
|
1807
1861
|
}
|
|
1808
|
-
|
|
1862
|
+
if (Symbol.dispose) JsDecryptError.prototype[Symbol.dispose] = JsDecryptError.prototype.free;
|
|
1863
|
+
|
|
1864
|
+
exports.JsDecryptError = JsDecryptError;
|
|
1809
1865
|
|
|
1810
1866
|
const JsEncryptErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1811
1867
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1833,7 +1889,9 @@ class JsEncryptError {
|
|
|
1833
1889
|
wasm.__wbg_jsencrypterror_free(ptr, 0);
|
|
1834
1890
|
}
|
|
1835
1891
|
}
|
|
1836
|
-
|
|
1892
|
+
if (Symbol.dispose) JsEncryptError.prototype[Symbol.dispose] = JsEncryptError.prototype.free;
|
|
1893
|
+
|
|
1894
|
+
exports.JsEncryptError = JsEncryptError;
|
|
1837
1895
|
|
|
1838
1896
|
const JsReceivePreKeyOpErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1839
1897
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1861,7 +1919,9 @@ class JsReceivePreKeyOpError {
|
|
|
1861
1919
|
wasm.__wbg_jsreceiveprekeyoperror_free(ptr, 0);
|
|
1862
1920
|
}
|
|
1863
1921
|
}
|
|
1864
|
-
|
|
1922
|
+
if (Symbol.dispose) JsReceivePreKeyOpError.prototype[Symbol.dispose] = JsReceivePreKeyOpError.prototype.free;
|
|
1923
|
+
|
|
1924
|
+
exports.JsReceivePreKeyOpError = JsReceivePreKeyOpError;
|
|
1865
1925
|
|
|
1866
1926
|
const JsReceiveStaticEventErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1867
1927
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -1889,7 +1949,9 @@ class JsReceiveStaticEventError {
|
|
|
1889
1949
|
wasm.__wbg_jsreceivestaticeventerror_free(ptr, 0);
|
|
1890
1950
|
}
|
|
1891
1951
|
}
|
|
1892
|
-
|
|
1952
|
+
if (Symbol.dispose) JsReceiveStaticEventError.prototype[Symbol.dispose] = JsReceiveStaticEventError.prototype.free;
|
|
1953
|
+
|
|
1954
|
+
exports.JsReceiveStaticEventError = JsReceiveStaticEventError;
|
|
1893
1955
|
|
|
1894
1956
|
const KeyhiveFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1895
1957
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2199,7 +2261,9 @@ class Keyhive {
|
|
|
2199
2261
|
return ret;
|
|
2200
2262
|
}
|
|
2201
2263
|
}
|
|
2202
|
-
|
|
2264
|
+
if (Symbol.dispose) Keyhive.prototype[Symbol.dispose] = Keyhive.prototype.free;
|
|
2265
|
+
|
|
2266
|
+
exports.Keyhive = Keyhive;
|
|
2203
2267
|
|
|
2204
2268
|
const MemberedFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2205
2269
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2227,7 +2291,9 @@ class Membered {
|
|
|
2227
2291
|
wasm.__wbg_membered_free(ptr, 0);
|
|
2228
2292
|
}
|
|
2229
2293
|
}
|
|
2230
|
-
|
|
2294
|
+
if (Symbol.dispose) Membered.prototype[Symbol.dispose] = Membered.prototype.free;
|
|
2295
|
+
|
|
2296
|
+
exports.Membered = Membered;
|
|
2231
2297
|
|
|
2232
2298
|
const PeerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2233
2299
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2298,7 +2364,9 @@ class Peer {
|
|
|
2298
2364
|
return ret !== 0;
|
|
2299
2365
|
}
|
|
2300
2366
|
}
|
|
2301
|
-
|
|
2367
|
+
if (Symbol.dispose) Peer.prototype[Symbol.dispose] = Peer.prototype.free;
|
|
2368
|
+
|
|
2369
|
+
exports.Peer = Peer;
|
|
2302
2370
|
|
|
2303
2371
|
const RemoveCiphertextErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2304
2372
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2318,7 +2386,9 @@ class RemoveCiphertextError {
|
|
|
2318
2386
|
wasm.__wbg_removeciphertexterror_free(ptr, 0);
|
|
2319
2387
|
}
|
|
2320
2388
|
}
|
|
2321
|
-
|
|
2389
|
+
if (Symbol.dispose) RemoveCiphertextError.prototype[Symbol.dispose] = RemoveCiphertextError.prototype.free;
|
|
2390
|
+
|
|
2391
|
+
exports.RemoveCiphertextError = RemoveCiphertextError;
|
|
2322
2392
|
|
|
2323
2393
|
const RevocationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2324
2394
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2374,7 +2444,9 @@ class Revocation {
|
|
|
2374
2444
|
return History.__wrap(ret);
|
|
2375
2445
|
}
|
|
2376
2446
|
}
|
|
2377
|
-
|
|
2447
|
+
if (Symbol.dispose) Revocation.prototype[Symbol.dispose] = Revocation.prototype.free;
|
|
2448
|
+
|
|
2449
|
+
exports.Revocation = Revocation;
|
|
2378
2450
|
|
|
2379
2451
|
const RevokeMemberErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2380
2452
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2417,7 +2489,9 @@ class RevokeMemberError {
|
|
|
2417
2489
|
}
|
|
2418
2490
|
}
|
|
2419
2491
|
}
|
|
2420
|
-
|
|
2492
|
+
if (Symbol.dispose) RevokeMemberError.prototype[Symbol.dispose] = RevokeMemberError.prototype.free;
|
|
2493
|
+
|
|
2494
|
+
exports.RevokeMemberError = RevokeMemberError;
|
|
2421
2495
|
|
|
2422
2496
|
const SerializationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2423
2497
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2453,7 +2527,9 @@ class SerializationError {
|
|
|
2453
2527
|
return ret;
|
|
2454
2528
|
}
|
|
2455
2529
|
}
|
|
2456
|
-
|
|
2530
|
+
if (Symbol.dispose) SerializationError.prototype[Symbol.dispose] = SerializationError.prototype.free;
|
|
2531
|
+
|
|
2532
|
+
exports.SerializationError = SerializationError;
|
|
2457
2533
|
|
|
2458
2534
|
const ShareKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2459
2535
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2481,7 +2557,9 @@ class ShareKey {
|
|
|
2481
2557
|
wasm.__wbg_sharekey_free(ptr, 0);
|
|
2482
2558
|
}
|
|
2483
2559
|
}
|
|
2484
|
-
|
|
2560
|
+
if (Symbol.dispose) ShareKey.prototype[Symbol.dispose] = ShareKey.prototype.free;
|
|
2561
|
+
|
|
2562
|
+
exports.ShareKey = ShareKey;
|
|
2485
2563
|
|
|
2486
2564
|
const SignedFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2487
2565
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2562,7 +2640,9 @@ class Signed {
|
|
|
2562
2640
|
return v1;
|
|
2563
2641
|
}
|
|
2564
2642
|
}
|
|
2565
|
-
|
|
2643
|
+
if (Symbol.dispose) Signed.prototype[Symbol.dispose] = Signed.prototype.free;
|
|
2644
|
+
|
|
2645
|
+
exports.Signed = Signed;
|
|
2566
2646
|
|
|
2567
2647
|
const SignedCgkaOperationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2568
2648
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2622,7 +2702,9 @@ class SignedCgkaOperation {
|
|
|
2622
2702
|
return v1;
|
|
2623
2703
|
}
|
|
2624
2704
|
}
|
|
2625
|
-
|
|
2705
|
+
if (Symbol.dispose) SignedCgkaOperation.prototype[Symbol.dispose] = SignedCgkaOperation.prototype.free;
|
|
2706
|
+
|
|
2707
|
+
exports.SignedCgkaOperation = SignedCgkaOperation;
|
|
2626
2708
|
|
|
2627
2709
|
const SignedDelegationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2628
2710
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2682,7 +2764,9 @@ class SignedDelegation {
|
|
|
2682
2764
|
return v1;
|
|
2683
2765
|
}
|
|
2684
2766
|
}
|
|
2685
|
-
|
|
2767
|
+
if (Symbol.dispose) SignedDelegation.prototype[Symbol.dispose] = SignedDelegation.prototype.free;
|
|
2768
|
+
|
|
2769
|
+
exports.SignedDelegation = SignedDelegation;
|
|
2686
2770
|
|
|
2687
2771
|
const SignedInvocationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2688
2772
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2702,7 +2786,9 @@ class SignedInvocation {
|
|
|
2702
2786
|
wasm.__wbg_signedinvocation_free(ptr, 0);
|
|
2703
2787
|
}
|
|
2704
2788
|
}
|
|
2705
|
-
|
|
2789
|
+
if (Symbol.dispose) SignedInvocation.prototype[Symbol.dispose] = SignedInvocation.prototype.free;
|
|
2790
|
+
|
|
2791
|
+
exports.SignedInvocation = SignedInvocation;
|
|
2706
2792
|
|
|
2707
2793
|
const SignedRevocationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2708
2794
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2762,7 +2848,9 @@ class SignedRevocation {
|
|
|
2762
2848
|
return v1;
|
|
2763
2849
|
}
|
|
2764
2850
|
}
|
|
2765
|
-
|
|
2851
|
+
if (Symbol.dispose) SignedRevocation.prototype[Symbol.dispose] = SignedRevocation.prototype.free;
|
|
2852
|
+
|
|
2853
|
+
exports.SignedRevocation = SignedRevocation;
|
|
2766
2854
|
|
|
2767
2855
|
const SignerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2768
2856
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2873,7 +2961,9 @@ class Signer {
|
|
|
2873
2961
|
return Signer.__wrap(ret);
|
|
2874
2962
|
}
|
|
2875
2963
|
}
|
|
2876
|
-
|
|
2964
|
+
if (Symbol.dispose) Signer.prototype[Symbol.dispose] = Signer.prototype.free;
|
|
2965
|
+
|
|
2966
|
+
exports.Signer = Signer;
|
|
2877
2967
|
|
|
2878
2968
|
const SigningErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2879
2969
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2916,7 +3006,9 @@ class SigningError {
|
|
|
2916
3006
|
}
|
|
2917
3007
|
}
|
|
2918
3008
|
}
|
|
2919
|
-
|
|
3009
|
+
if (Symbol.dispose) SigningError.prototype[Symbol.dispose] = SigningError.prototype.free;
|
|
3010
|
+
|
|
3011
|
+
exports.SigningError = SigningError;
|
|
2920
3012
|
|
|
2921
3013
|
const SimpleCapabilityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2922
3014
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -2958,7 +3050,9 @@ class SimpleCapability {
|
|
|
2958
3050
|
return Access.__wrap(ret);
|
|
2959
3051
|
}
|
|
2960
3052
|
}
|
|
2961
|
-
|
|
3053
|
+
if (Symbol.dispose) SimpleCapability.prototype[Symbol.dispose] = SimpleCapability.prototype.free;
|
|
3054
|
+
|
|
3055
|
+
exports.SimpleCapability = SimpleCapability;
|
|
2962
3056
|
|
|
2963
3057
|
const SummaryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2964
3058
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -3000,7 +3094,9 @@ class Summary {
|
|
|
3000
3094
|
return Access.__wrap(ret);
|
|
3001
3095
|
}
|
|
3002
3096
|
}
|
|
3003
|
-
|
|
3097
|
+
if (Symbol.dispose) Summary.prototype[Symbol.dispose] = Summary.prototype.free;
|
|
3098
|
+
|
|
3099
|
+
exports.Summary = Summary;
|
|
3004
3100
|
|
|
3005
3101
|
const TryFromArchiveErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3006
3102
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -3036,89 +3132,91 @@ class TryFromArchiveError {
|
|
|
3036
3132
|
return ret;
|
|
3037
3133
|
}
|
|
3038
3134
|
}
|
|
3039
|
-
|
|
3135
|
+
if (Symbol.dispose) TryFromArchiveError.prototype[Symbol.dispose] = TryFromArchiveError.prototype.free;
|
|
3040
3136
|
|
|
3041
|
-
|
|
3137
|
+
exports.TryFromArchiveError = TryFromArchiveError;
|
|
3138
|
+
|
|
3139
|
+
exports.__wbg_Error_e17e777aac105295 = function(arg0, arg1) {
|
|
3042
3140
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
3043
3141
|
return ret;
|
|
3044
3142
|
};
|
|
3045
3143
|
|
|
3046
|
-
|
|
3144
|
+
exports.__wbg_addmembererror_new = function(arg0) {
|
|
3047
3145
|
const ret = AddMemberError.__wrap(arg0);
|
|
3048
3146
|
return ret;
|
|
3049
3147
|
};
|
|
3050
3148
|
|
|
3051
|
-
|
|
3149
|
+
exports.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
|
|
3052
3150
|
const ret = arg0.call(arg1);
|
|
3053
3151
|
return ret;
|
|
3054
3152
|
}, arguments) };
|
|
3055
3153
|
|
|
3056
|
-
|
|
3154
|
+
exports.__wbg_call_a5400b25a865cfd8 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3057
3155
|
const ret = arg0.call(arg1, arg2);
|
|
3058
3156
|
return ret;
|
|
3059
3157
|
}, arguments) };
|
|
3060
3158
|
|
|
3061
|
-
|
|
3159
|
+
exports.__wbg_cannotparseed25519signingkey_new = function(arg0) {
|
|
3062
3160
|
const ret = CannotParseEd25519SigningKey.__wrap(arg0);
|
|
3063
3161
|
return ret;
|
|
3064
3162
|
};
|
|
3065
3163
|
|
|
3066
|
-
|
|
3164
|
+
exports.__wbg_cannotparseidentifier_new = function(arg0) {
|
|
3067
3165
|
const ret = CannotParseIdentifier.__wrap(arg0);
|
|
3068
3166
|
return ret;
|
|
3069
3167
|
};
|
|
3070
3168
|
|
|
3071
|
-
|
|
3169
|
+
exports.__wbg_capability_new = function(arg0) {
|
|
3072
3170
|
const ret = Capability.__wrap(arg0);
|
|
3073
3171
|
return ret;
|
|
3074
3172
|
};
|
|
3075
3173
|
|
|
3076
|
-
|
|
3174
|
+
exports.__wbg_changeref_new = function(arg0) {
|
|
3077
3175
|
const ret = ChangeRef.__wrap(arg0);
|
|
3078
3176
|
return ret;
|
|
3079
3177
|
};
|
|
3080
3178
|
|
|
3081
|
-
|
|
3179
|
+
exports.__wbg_changeref_unwrap = function(arg0) {
|
|
3082
3180
|
const ret = ChangeRef.__unwrap(arg0);
|
|
3083
3181
|
return ret;
|
|
3084
3182
|
};
|
|
3085
3183
|
|
|
3086
|
-
|
|
3184
|
+
exports.__wbg_contactcard_new = function(arg0) {
|
|
3087
3185
|
const ret = ContactCard.__wrap(arg0);
|
|
3088
3186
|
return ret;
|
|
3089
3187
|
};
|
|
3090
3188
|
|
|
3091
|
-
|
|
3189
|
+
exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
3092
3190
|
const ret = arg0.crypto;
|
|
3093
3191
|
return ret;
|
|
3094
3192
|
};
|
|
3095
3193
|
|
|
3096
|
-
|
|
3194
|
+
exports.__wbg_crypto_92ce5ebc02988b17 = function() { return handleError(function (arg0) {
|
|
3097
3195
|
const ret = arg0.crypto;
|
|
3098
3196
|
return ret;
|
|
3099
3197
|
}, arguments) };
|
|
3100
3198
|
|
|
3101
|
-
|
|
3199
|
+
exports.__wbg_doccontentrefs_new = function(arg0) {
|
|
3102
3200
|
const ret = DocContentRefs.__wrap(arg0);
|
|
3103
3201
|
return ret;
|
|
3104
3202
|
};
|
|
3105
3203
|
|
|
3106
|
-
|
|
3204
|
+
exports.__wbg_document_new = function(arg0) {
|
|
3107
3205
|
const ret = Document.__wrap(arg0);
|
|
3108
3206
|
return ret;
|
|
3109
3207
|
};
|
|
3110
3208
|
|
|
3111
|
-
|
|
3209
|
+
exports.__wbg_document_unwrap = function(arg0) {
|
|
3112
3210
|
const ret = Document.__unwrap(arg0);
|
|
3113
3211
|
return ret;
|
|
3114
3212
|
};
|
|
3115
3213
|
|
|
3116
|
-
|
|
3214
|
+
exports.__wbg_encryptedcontentwithupdate_new = function(arg0) {
|
|
3117
3215
|
const ret = EncryptedContentWithUpdate.__wrap(arg0);
|
|
3118
3216
|
return ret;
|
|
3119
3217
|
};
|
|
3120
3218
|
|
|
3121
|
-
|
|
3219
|
+
exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
3122
3220
|
let deferred0_0;
|
|
3123
3221
|
let deferred0_1;
|
|
3124
3222
|
try {
|
|
@@ -3130,51 +3228,51 @@ module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
|
3130
3228
|
}
|
|
3131
3229
|
};
|
|
3132
3230
|
|
|
3133
|
-
|
|
3231
|
+
exports.__wbg_event_new = function(arg0) {
|
|
3134
3232
|
const ret = Event.__wrap(arg0);
|
|
3135
3233
|
return ret;
|
|
3136
3234
|
};
|
|
3137
3235
|
|
|
3138
|
-
|
|
3236
|
+
exports.__wbg_exportKey_4a1163511775473d = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3139
3237
|
const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
|
|
3140
3238
|
return ret;
|
|
3141
3239
|
}, arguments) };
|
|
3142
3240
|
|
|
3143
|
-
|
|
3241
|
+
exports.__wbg_generateKey_b8902ccb0e50ff4e = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3144
3242
|
const ret = arg0.generateKey(getStringFromWasm0(arg1, arg2), arg3 !== 0, arg4);
|
|
3145
3243
|
return ret;
|
|
3146
3244
|
}, arguments) };
|
|
3147
3245
|
|
|
3148
|
-
|
|
3246
|
+
exports.__wbg_generatedocerror_new = function(arg0) {
|
|
3149
3247
|
const ret = GenerateDocError.__wrap(arg0);
|
|
3150
3248
|
return ret;
|
|
3151
3249
|
};
|
|
3152
3250
|
|
|
3153
|
-
|
|
3251
|
+
exports.__wbg_generatewebcryptoerror_new = function(arg0) {
|
|
3154
3252
|
const ret = GenerateWebCryptoError.__wrap(arg0);
|
|
3155
3253
|
return ret;
|
|
3156
3254
|
};
|
|
3157
3255
|
|
|
3158
|
-
|
|
3256
|
+
exports.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
3159
3257
|
arg0.getRandomValues(arg1);
|
|
3160
3258
|
}, arguments) };
|
|
3161
3259
|
|
|
3162
|
-
|
|
3260
|
+
exports.__wbg_getprivatekey_2b060a8a8c19d828 = function(arg0) {
|
|
3163
3261
|
const ret = arg0.privateKey;
|
|
3164
3262
|
return ret;
|
|
3165
3263
|
};
|
|
3166
3264
|
|
|
3167
|
-
|
|
3265
|
+
exports.__wbg_getpublickey_ad4c2474164b2d9a = function(arg0) {
|
|
3168
3266
|
const ret = arg0.publicKey;
|
|
3169
3267
|
return ret;
|
|
3170
3268
|
};
|
|
3171
3269
|
|
|
3172
|
-
|
|
3270
|
+
exports.__wbg_group_new = function(arg0) {
|
|
3173
3271
|
const ret = Group.__wrap(arg0);
|
|
3174
3272
|
return ret;
|
|
3175
3273
|
};
|
|
3176
3274
|
|
|
3177
|
-
|
|
3275
|
+
exports.__wbg_instanceof_Window_12d20d558ef92592 = function(arg0) {
|
|
3178
3276
|
let result;
|
|
3179
3277
|
try {
|
|
3180
3278
|
result = arg0 instanceof Window;
|
|
@@ -3185,52 +3283,42 @@ module.exports.__wbg_instanceof_Window_7f29e5c72acbfd60 = function(arg0) {
|
|
|
3185
3283
|
return ret;
|
|
3186
3284
|
};
|
|
3187
3285
|
|
|
3188
|
-
|
|
3286
|
+
exports.__wbg_jsdecrypterror_new = function(arg0) {
|
|
3189
3287
|
const ret = JsDecryptError.__wrap(arg0);
|
|
3190
3288
|
return ret;
|
|
3191
3289
|
};
|
|
3192
3290
|
|
|
3193
|
-
|
|
3291
|
+
exports.__wbg_jsencrypterror_new = function(arg0) {
|
|
3194
3292
|
const ret = JsEncryptError.__wrap(arg0);
|
|
3195
3293
|
return ret;
|
|
3196
3294
|
};
|
|
3197
3295
|
|
|
3198
|
-
|
|
3296
|
+
exports.__wbg_jsreceiveprekeyoperror_new = function(arg0) {
|
|
3199
3297
|
const ret = JsReceivePreKeyOpError.__wrap(arg0);
|
|
3200
3298
|
return ret;
|
|
3201
3299
|
};
|
|
3202
3300
|
|
|
3203
|
-
|
|
3301
|
+
exports.__wbg_jsreceivestaticeventerror_new = function(arg0) {
|
|
3204
3302
|
const ret = JsReceiveStaticEventError.__wrap(arg0);
|
|
3205
3303
|
return ret;
|
|
3206
3304
|
};
|
|
3207
3305
|
|
|
3208
|
-
|
|
3306
|
+
exports.__wbg_keyhive_new = function(arg0) {
|
|
3209
3307
|
const ret = Keyhive.__wrap(arg0);
|
|
3210
3308
|
return ret;
|
|
3211
3309
|
};
|
|
3212
3310
|
|
|
3213
|
-
|
|
3311
|
+
exports.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
|
|
3214
3312
|
const ret = arg0.length;
|
|
3215
3313
|
return ret;
|
|
3216
3314
|
};
|
|
3217
3315
|
|
|
3218
|
-
|
|
3316
|
+
exports.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
3219
3317
|
const ret = arg0.msCrypto;
|
|
3220
3318
|
return ret;
|
|
3221
3319
|
};
|
|
3222
3320
|
|
|
3223
|
-
|
|
3224
|
-
const ret = new Error();
|
|
3225
|
-
return ret;
|
|
3226
|
-
};
|
|
3227
|
-
|
|
3228
|
-
module.exports.__wbg_new_9190433fb67ed635 = function(arg0) {
|
|
3229
|
-
const ret = new Uint8Array(arg0);
|
|
3230
|
-
return ret;
|
|
3231
|
-
};
|
|
3232
|
-
|
|
3233
|
-
module.exports.__wbg_new_d5e3800b120e37e1 = function(arg0, arg1) {
|
|
3321
|
+
exports.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) {
|
|
3234
3322
|
try {
|
|
3235
3323
|
var state0 = {a: arg0, b: arg1};
|
|
3236
3324
|
var cb0 = (arg0, arg1) => {
|
|
@@ -3249,109 +3337,119 @@ module.exports.__wbg_new_d5e3800b120e37e1 = function(arg0, arg1) {
|
|
|
3249
3337
|
}
|
|
3250
3338
|
};
|
|
3251
3339
|
|
|
3252
|
-
|
|
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) {
|
|
3253
3351
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3254
3352
|
return ret;
|
|
3255
3353
|
};
|
|
3256
3354
|
|
|
3257
|
-
|
|
3355
|
+
exports.__wbg_newwithlength_a167dcc7aaa3ba77 = function(arg0) {
|
|
3258
3356
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
3259
3357
|
return ret;
|
|
3260
3358
|
};
|
|
3261
3359
|
|
|
3262
|
-
|
|
3360
|
+
exports.__wbg_node_905d3e251edff8a2 = function(arg0) {
|
|
3263
3361
|
const ret = arg0.node;
|
|
3264
3362
|
return ret;
|
|
3265
3363
|
};
|
|
3266
3364
|
|
|
3267
|
-
|
|
3365
|
+
exports.__wbg_peer_unwrap = function(arg0) {
|
|
3268
3366
|
const ret = Peer.__unwrap(arg0);
|
|
3269
3367
|
return ret;
|
|
3270
3368
|
};
|
|
3271
3369
|
|
|
3272
|
-
|
|
3370
|
+
exports.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
|
|
3273
3371
|
const ret = arg0.process;
|
|
3274
3372
|
return ret;
|
|
3275
3373
|
};
|
|
3276
3374
|
|
|
3277
|
-
|
|
3375
|
+
exports.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
|
|
3278
3376
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
3279
3377
|
};
|
|
3280
3378
|
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
return ret;
|
|
3379
|
+
exports.__wbg_queueMicrotask_25d0739ac89e8c88 = function(arg0) {
|
|
3380
|
+
queueMicrotask(arg0);
|
|
3284
3381
|
};
|
|
3285
3382
|
|
|
3286
|
-
|
|
3287
|
-
queueMicrotask
|
|
3383
|
+
exports.__wbg_queueMicrotask_4488407636f5bf24 = function(arg0) {
|
|
3384
|
+
const ret = arg0.queueMicrotask;
|
|
3385
|
+
return ret;
|
|
3288
3386
|
};
|
|
3289
3387
|
|
|
3290
|
-
|
|
3388
|
+
exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
3291
3389
|
arg0.randomFillSync(arg1);
|
|
3292
3390
|
}, arguments) };
|
|
3293
3391
|
|
|
3294
|
-
|
|
3392
|
+
exports.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
|
|
3295
3393
|
const ret = module.require;
|
|
3296
3394
|
return ret;
|
|
3297
3395
|
}, arguments) };
|
|
3298
3396
|
|
|
3299
|
-
|
|
3397
|
+
exports.__wbg_resolve_4055c623acdd6a1b = function(arg0) {
|
|
3300
3398
|
const ret = Promise.resolve(arg0);
|
|
3301
3399
|
return ret;
|
|
3302
3400
|
};
|
|
3303
3401
|
|
|
3304
|
-
|
|
3402
|
+
exports.__wbg_revokemembererror_new = function(arg0) {
|
|
3305
3403
|
const ret = RevokeMemberError.__wrap(arg0);
|
|
3306
3404
|
return ret;
|
|
3307
3405
|
};
|
|
3308
3406
|
|
|
3309
|
-
|
|
3407
|
+
exports.__wbg_serializationerror_new = function(arg0) {
|
|
3310
3408
|
const ret = SerializationError.__wrap(arg0);
|
|
3311
3409
|
return ret;
|
|
3312
3410
|
};
|
|
3313
3411
|
|
|
3314
|
-
|
|
3412
|
+
exports.__wbg_sharekey_new = function(arg0) {
|
|
3315
3413
|
const ret = ShareKey.__wrap(arg0);
|
|
3316
3414
|
return ret;
|
|
3317
3415
|
};
|
|
3318
3416
|
|
|
3319
|
-
|
|
3417
|
+
exports.__wbg_sign_8891059f121b31b5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3320
3418
|
const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
3321
3419
|
return ret;
|
|
3322
3420
|
}, arguments) };
|
|
3323
3421
|
|
|
3324
|
-
|
|
3422
|
+
exports.__wbg_signed_new = function(arg0) {
|
|
3325
3423
|
const ret = Signed.__wrap(arg0);
|
|
3326
3424
|
return ret;
|
|
3327
3425
|
};
|
|
3328
3426
|
|
|
3329
|
-
|
|
3427
|
+
exports.__wbg_signeddelegation_new = function(arg0) {
|
|
3330
3428
|
const ret = SignedDelegation.__wrap(arg0);
|
|
3331
3429
|
return ret;
|
|
3332
3430
|
};
|
|
3333
3431
|
|
|
3334
|
-
|
|
3432
|
+
exports.__wbg_signedrevocation_new = function(arg0) {
|
|
3335
3433
|
const ret = SignedRevocation.__wrap(arg0);
|
|
3336
3434
|
return ret;
|
|
3337
3435
|
};
|
|
3338
3436
|
|
|
3339
|
-
|
|
3437
|
+
exports.__wbg_signer_new = function(arg0) {
|
|
3340
3438
|
const ret = Signer.__wrap(arg0);
|
|
3341
3439
|
return ret;
|
|
3342
3440
|
};
|
|
3343
3441
|
|
|
3344
|
-
|
|
3442
|
+
exports.__wbg_signingerror_new = function(arg0) {
|
|
3345
3443
|
const ret = SigningError.__wrap(arg0);
|
|
3346
3444
|
return ret;
|
|
3347
3445
|
};
|
|
3348
3446
|
|
|
3349
|
-
|
|
3447
|
+
exports.__wbg_simplecapability_new = function(arg0) {
|
|
3350
3448
|
const ret = SimpleCapability.__wrap(arg0);
|
|
3351
3449
|
return ret;
|
|
3352
3450
|
};
|
|
3353
3451
|
|
|
3354
|
-
|
|
3452
|
+
exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
3355
3453
|
const ret = arg1.stack;
|
|
3356
3454
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3357
3455
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -3359,62 +3457,62 @@ module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
|
3359
3457
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3360
3458
|
};
|
|
3361
3459
|
|
|
3362
|
-
|
|
3460
|
+
exports.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() {
|
|
3363
3461
|
const ret = typeof global === 'undefined' ? null : global;
|
|
3364
3462
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3365
3463
|
};
|
|
3366
3464
|
|
|
3367
|
-
|
|
3465
|
+
exports.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() {
|
|
3368
3466
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
3369
3467
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3370
3468
|
};
|
|
3371
3469
|
|
|
3372
|
-
|
|
3470
|
+
exports.__wbg_static_accessor_SELF_995b214ae681ff99 = function() {
|
|
3373
3471
|
const ret = typeof self === 'undefined' ? null : self;
|
|
3374
3472
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3375
3473
|
};
|
|
3376
3474
|
|
|
3377
|
-
|
|
3475
|
+
exports.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() {
|
|
3378
3476
|
const ret = typeof window === 'undefined' ? null : window;
|
|
3379
3477
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3380
3478
|
};
|
|
3381
3479
|
|
|
3382
|
-
|
|
3480
|
+
exports.__wbg_subarray_70fd07feefe14294 = function(arg0, arg1, arg2) {
|
|
3383
3481
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3384
3482
|
return ret;
|
|
3385
3483
|
};
|
|
3386
3484
|
|
|
3387
|
-
|
|
3485
|
+
exports.__wbg_subtle_dd66747d3e9a93d4 = function(arg0) {
|
|
3388
3486
|
const ret = arg0.subtle;
|
|
3389
3487
|
return ret;
|
|
3390
3488
|
};
|
|
3391
3489
|
|
|
3392
|
-
|
|
3490
|
+
exports.__wbg_summary_new = function(arg0) {
|
|
3393
3491
|
const ret = Summary.__wrap(arg0);
|
|
3394
3492
|
return ret;
|
|
3395
3493
|
};
|
|
3396
3494
|
|
|
3397
|
-
|
|
3495
|
+
exports.__wbg_then_b33a773d723afa3e = function(arg0, arg1, arg2) {
|
|
3398
3496
|
const ret = arg0.then(arg1, arg2);
|
|
3399
3497
|
return ret;
|
|
3400
3498
|
};
|
|
3401
3499
|
|
|
3402
|
-
|
|
3500
|
+
exports.__wbg_then_e22500defe16819f = function(arg0, arg1) {
|
|
3403
3501
|
const ret = arg0.then(arg1);
|
|
3404
3502
|
return ret;
|
|
3405
3503
|
};
|
|
3406
3504
|
|
|
3407
|
-
|
|
3505
|
+
exports.__wbg_tryfromarchiveerror_new = function(arg0) {
|
|
3408
3506
|
const ret = TryFromArchiveError.__wrap(arg0);
|
|
3409
3507
|
return ret;
|
|
3410
3508
|
};
|
|
3411
3509
|
|
|
3412
|
-
|
|
3510
|
+
exports.__wbg_versions_c01dfd4722a88165 = function(arg0) {
|
|
3413
3511
|
const ret = arg0.versions;
|
|
3414
3512
|
return ret;
|
|
3415
3513
|
};
|
|
3416
3514
|
|
|
3417
|
-
|
|
3515
|
+
exports.__wbg_wbindgencbdrop_eb10308566512b88 = function(arg0) {
|
|
3418
3516
|
const obj = arg0.original;
|
|
3419
3517
|
if (obj.cnt-- == 1) {
|
|
3420
3518
|
obj.a = 0;
|
|
@@ -3424,7 +3522,7 @@ module.exports.__wbg_wbindgencbdrop_a85ed476c6a370b9 = function(arg0) {
|
|
|
3424
3522
|
return ret;
|
|
3425
3523
|
};
|
|
3426
3524
|
|
|
3427
|
-
|
|
3525
|
+
exports.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
|
|
3428
3526
|
const ret = debugString(arg1);
|
|
3429
3527
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3430
3528
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -3432,44 +3530,44 @@ module.exports.__wbg_wbindgendebugstring_bb652b1bc2061b6d = function(arg0, arg1)
|
|
|
3432
3530
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3433
3531
|
};
|
|
3434
3532
|
|
|
3435
|
-
|
|
3533
|
+
exports.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
|
|
3436
3534
|
const ret = typeof(arg0) === 'function';
|
|
3437
3535
|
return ret;
|
|
3438
3536
|
};
|
|
3439
3537
|
|
|
3440
|
-
|
|
3538
|
+
exports.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
|
|
3441
3539
|
const val = arg0;
|
|
3442
3540
|
const ret = typeof(val) === 'object' && val !== null;
|
|
3443
3541
|
return ret;
|
|
3444
3542
|
};
|
|
3445
3543
|
|
|
3446
|
-
|
|
3544
|
+
exports.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
|
|
3447
3545
|
const ret = typeof(arg0) === 'string';
|
|
3448
3546
|
return ret;
|
|
3449
3547
|
};
|
|
3450
3548
|
|
|
3451
|
-
|
|
3549
|
+
exports.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) {
|
|
3452
3550
|
const ret = arg0 === undefined;
|
|
3453
3551
|
return ret;
|
|
3454
3552
|
};
|
|
3455
3553
|
|
|
3456
|
-
|
|
3554
|
+
exports.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
|
|
3457
3555
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
3458
3556
|
};
|
|
3459
3557
|
|
|
3460
|
-
|
|
3558
|
+
exports.__wbindgen_cast_133053e9d0cd85aa = function(arg0, arg1) {
|
|
3461
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`.
|
|
3462
3560
|
const ret = makeMutClosure(arg0, arg1, 422, __wbg_adapter_8);
|
|
3463
3561
|
return ret;
|
|
3464
3562
|
};
|
|
3465
3563
|
|
|
3466
|
-
|
|
3564
|
+
exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
3467
3565
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
3468
3566
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
3469
3567
|
return ret;
|
|
3470
3568
|
};
|
|
3471
3569
|
|
|
3472
|
-
|
|
3570
|
+
exports.__wbindgen_cast_25a0a844437d0e92 = function(arg0, arg1) {
|
|
3473
3571
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3474
3572
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3475
3573
|
// Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
|
|
@@ -3477,7 +3575,7 @@ module.exports.__wbindgen_cast_25a0a844437d0e92 = function(arg0, arg1) {
|
|
|
3477
3575
|
return ret;
|
|
3478
3576
|
};
|
|
3479
3577
|
|
|
3480
|
-
|
|
3578
|
+
exports.__wbindgen_cast_ae91babfc5c19b28 = function(arg0, arg1) {
|
|
3481
3579
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3482
3580
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
3483
3581
|
// Cast intrinsic for `Vector(NamedExternref("SignedRevocation")) -> Externref`.
|
|
@@ -3485,13 +3583,13 @@ module.exports.__wbindgen_cast_ae91babfc5c19b28 = function(arg0, arg1) {
|
|
|
3485
3583
|
return ret;
|
|
3486
3584
|
};
|
|
3487
3585
|
|
|
3488
|
-
|
|
3586
|
+
exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
3489
3587
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
3490
3588
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
3491
3589
|
return ret;
|
|
3492
3590
|
};
|
|
3493
3591
|
|
|
3494
|
-
|
|
3592
|
+
exports.__wbindgen_init_externref_table = function() {
|
|
3495
3593
|
const table = wasm.__wbindgen_export_2;
|
|
3496
3594
|
const offset = table.grow(4);
|
|
3497
3595
|
table.set(0, undefined);
|
|
@@ -3502,13 +3600,10 @@ module.exports.__wbindgen_init_externref_table = function() {
|
|
|
3502
3600
|
;
|
|
3503
3601
|
};
|
|
3504
3602
|
|
|
3505
|
-
const
|
|
3506
|
-
const
|
|
3507
|
-
|
|
3508
|
-
const
|
|
3509
|
-
const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
|
|
3510
|
-
wasm = wasmInstance.exports;
|
|
3511
|
-
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;
|
|
3512
3607
|
|
|
3513
3608
|
wasm.__wbindgen_start();
|
|
3514
3609
|
|