@spacesprotocol/libveritas 0.1.4 → 0.3.0
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/libveritas.d.ts +1 -6
- package/libveritas.js +52 -73
- package/libveritas_bg.wasm +0 -0
- package/package.json +1 -1
package/libveritas.d.ts
CHANGED
|
@@ -267,10 +267,6 @@ export class VerifiedMessage {
|
|
|
267
267
|
* Get the verified message as bytes.
|
|
268
268
|
*/
|
|
269
269
|
messageBytes(): Uint8Array;
|
|
270
|
-
/**
|
|
271
|
-
* The root id this message was verified against.
|
|
272
|
-
*/
|
|
273
|
-
rootId(): Uint8Array;
|
|
274
270
|
/**
|
|
275
271
|
* All verified zones as plain JS objects.
|
|
276
272
|
*/
|
|
@@ -405,7 +401,6 @@ export interface InitOutput {
|
|
|
405
401
|
readonly verifiedmessage_certificates: (a: number, b: number) => void;
|
|
406
402
|
readonly verifiedmessage_message: (a: number) => number;
|
|
407
403
|
readonly verifiedmessage_messageBytes: (a: number, b: number) => void;
|
|
408
|
-
readonly verifiedmessage_rootId: (a: number, b: number) => void;
|
|
409
404
|
readonly verifiedmessage_zones: (a: number, b: number) => void;
|
|
410
405
|
readonly verifySchnorr: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
411
406
|
readonly verifySpacesMessage: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
@@ -464,10 +459,10 @@ export interface InitOutput {
|
|
|
464
459
|
readonly rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
465
460
|
readonly rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
|
|
466
461
|
readonly rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
|
|
467
|
-
readonly VERIFY_DEV_MODE: () => number;
|
|
468
462
|
readonly sys_read_words: (a: number, b: number, c: number) => number;
|
|
469
463
|
readonly sys_panic: (a: number, b: number) => void;
|
|
470
464
|
readonly sys_verify_integrity2: (a: number, b: number) => void;
|
|
465
|
+
readonly VERIFY_DEV_MODE: () => number;
|
|
471
466
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
472
467
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
473
468
|
readonly __wbindgen_export3: (a: number) => void;
|
package/libveritas.js
CHANGED
|
@@ -44,7 +44,7 @@ export class Anchors {
|
|
|
44
44
|
if (r2) {
|
|
45
45
|
throw takeObject(r1);
|
|
46
46
|
}
|
|
47
|
-
this.__wbg_ptr = r0
|
|
47
|
+
this.__wbg_ptr = r0;
|
|
48
48
|
AnchorsFinalization.register(this, this.__wbg_ptr, this);
|
|
49
49
|
return this;
|
|
50
50
|
} finally {
|
|
@@ -128,7 +128,7 @@ export class Lookup {
|
|
|
128
128
|
if (r2) {
|
|
129
129
|
throw takeObject(r1);
|
|
130
130
|
}
|
|
131
|
-
this.__wbg_ptr = r0
|
|
131
|
+
this.__wbg_ptr = r0;
|
|
132
132
|
LookupFinalization.register(this, this.__wbg_ptr, this);
|
|
133
133
|
return this;
|
|
134
134
|
} finally {
|
|
@@ -160,7 +160,6 @@ if (Symbol.dispose) Lookup.prototype[Symbol.dispose] = Lookup.prototype.free;
|
|
|
160
160
|
*/
|
|
161
161
|
export class Message {
|
|
162
162
|
static __wrap(ptr) {
|
|
163
|
-
ptr = ptr >>> 0;
|
|
164
163
|
const obj = Object.create(Message.prototype);
|
|
165
164
|
obj.__wbg_ptr = ptr;
|
|
166
165
|
MessageFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -192,7 +191,7 @@ export class Message {
|
|
|
192
191
|
if (r2) {
|
|
193
192
|
throw takeObject(r1);
|
|
194
193
|
}
|
|
195
|
-
this.__wbg_ptr = r0
|
|
194
|
+
this.__wbg_ptr = r0;
|
|
196
195
|
MessageFinalization.register(this, this.__wbg_ptr, this);
|
|
197
196
|
return this;
|
|
198
197
|
} finally {
|
|
@@ -460,7 +459,7 @@ export class MessageBuilder {
|
|
|
460
459
|
*/
|
|
461
460
|
constructor() {
|
|
462
461
|
const ret = wasm.messagebuilder_new();
|
|
463
|
-
this.__wbg_ptr = ret
|
|
462
|
+
this.__wbg_ptr = ret;
|
|
464
463
|
MessageBuilderFinalization.register(this, this.__wbg_ptr, this);
|
|
465
464
|
return this;
|
|
466
465
|
}
|
|
@@ -519,7 +518,7 @@ export class QueryContext {
|
|
|
519
518
|
}
|
|
520
519
|
constructor() {
|
|
521
520
|
const ret = wasm.querycontext_new();
|
|
522
|
-
this.__wbg_ptr = ret
|
|
521
|
+
this.__wbg_ptr = ret;
|
|
523
522
|
QueryContextFinalization.register(this, this.__wbg_ptr, this);
|
|
524
523
|
return this;
|
|
525
524
|
}
|
|
@@ -637,7 +636,6 @@ if (Symbol.dispose) Record.prototype[Symbol.dispose] = Record.prototype.free;
|
|
|
637
636
|
*/
|
|
638
637
|
export class RecordSet {
|
|
639
638
|
static __wrap(ptr) {
|
|
640
|
-
ptr = ptr >>> 0;
|
|
641
639
|
const obj = Object.create(RecordSet.prototype);
|
|
642
640
|
obj.__wbg_ptr = ptr;
|
|
643
641
|
RecordSetFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -668,7 +666,7 @@ export class RecordSet {
|
|
|
668
666
|
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_export);
|
|
669
667
|
const len0 = WASM_VECTOR_LEN;
|
|
670
668
|
const ret = wasm.recordset_new(ptr0, len0);
|
|
671
|
-
this.__wbg_ptr = ret
|
|
669
|
+
this.__wbg_ptr = ret;
|
|
672
670
|
RecordSetFinalization.register(this, this.__wbg_ptr, this);
|
|
673
671
|
return this;
|
|
674
672
|
}
|
|
@@ -761,7 +759,6 @@ export function SIG_PRIMARY_ZONE() {
|
|
|
761
759
|
*/
|
|
762
760
|
export class UnsignedRecordSet {
|
|
763
761
|
static __wrap(ptr) {
|
|
764
|
-
ptr = ptr >>> 0;
|
|
765
762
|
const obj = Object.create(UnsignedRecordSet.prototype);
|
|
766
763
|
obj.__wbg_ptr = ptr;
|
|
767
764
|
UnsignedRecordSetFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -926,7 +923,6 @@ export function VERIFY_ENABLE_SNARK() {
|
|
|
926
923
|
*/
|
|
927
924
|
export class VerifiedMessage {
|
|
928
925
|
static __wrap(ptr) {
|
|
929
|
-
ptr = ptr >>> 0;
|
|
930
926
|
const obj = Object.create(VerifiedMessage.prototype);
|
|
931
927
|
obj.__wbg_ptr = ptr;
|
|
932
928
|
VerifiedMessageFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -984,23 +980,6 @@ export class VerifiedMessage {
|
|
|
984
980
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
985
981
|
}
|
|
986
982
|
}
|
|
987
|
-
/**
|
|
988
|
-
* The root id this message was verified against.
|
|
989
|
-
* @returns {Uint8Array}
|
|
990
|
-
*/
|
|
991
|
-
rootId() {
|
|
992
|
-
try {
|
|
993
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
994
|
-
wasm.verifiedmessage_rootId(retptr, this.__wbg_ptr);
|
|
995
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
996
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
997
|
-
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
998
|
-
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
999
|
-
return v1;
|
|
1000
|
-
} finally {
|
|
1001
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
983
|
/**
|
|
1005
984
|
* All verified zones as plain JS objects.
|
|
1006
985
|
* @returns {any}
|
|
@@ -1074,7 +1053,7 @@ export class Veritas {
|
|
|
1074
1053
|
if (r2) {
|
|
1075
1054
|
throw takeObject(r1);
|
|
1076
1055
|
}
|
|
1077
|
-
this.__wbg_ptr = r0
|
|
1056
|
+
this.__wbg_ptr = r0;
|
|
1078
1057
|
VeritasFinalization.register(this, this.__wbg_ptr, this);
|
|
1079
1058
|
return this;
|
|
1080
1059
|
} finally {
|
|
@@ -1364,50 +1343,50 @@ export function zoneToBytes(zone) {
|
|
|
1364
1343
|
function __wbg_get_imports() {
|
|
1365
1344
|
const import0 = {
|
|
1366
1345
|
__proto__: null,
|
|
1367
|
-
|
|
1346
|
+
__wbg_Error_92b29b0548f8b746: function(arg0, arg1) {
|
|
1368
1347
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
1369
1348
|
return addHeapObject(ret);
|
|
1370
1349
|
},
|
|
1371
|
-
|
|
1350
|
+
__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f: function(arg0, arg1) {
|
|
1372
1351
|
const v = getObject(arg1);
|
|
1373
1352
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1374
1353
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1375
1354
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1376
1355
|
},
|
|
1377
|
-
|
|
1356
|
+
__wbg___wbindgen_debug_string_c25d447a39f5578f: function(arg0, arg1) {
|
|
1378
1357
|
const ret = debugString(getObject(arg1));
|
|
1379
1358
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1380
1359
|
const len1 = WASM_VECTOR_LEN;
|
|
1381
1360
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1382
1361
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1383
1362
|
},
|
|
1384
|
-
|
|
1363
|
+
__wbg___wbindgen_is_bigint_2f76dc55065b4273: function(arg0) {
|
|
1385
1364
|
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
1386
1365
|
return ret;
|
|
1387
1366
|
},
|
|
1388
|
-
|
|
1367
|
+
__wbg___wbindgen_is_null_ea9085d691f535d3: function(arg0) {
|
|
1389
1368
|
const ret = getObject(arg0) === null;
|
|
1390
1369
|
return ret;
|
|
1391
1370
|
},
|
|
1392
|
-
|
|
1371
|
+
__wbg___wbindgen_is_string_ea5e6cc2e4141dfe: function(arg0) {
|
|
1393
1372
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
1394
1373
|
return ret;
|
|
1395
1374
|
},
|
|
1396
|
-
|
|
1375
|
+
__wbg___wbindgen_is_undefined_c05833b95a3cf397: function(arg0) {
|
|
1397
1376
|
const ret = getObject(arg0) === undefined;
|
|
1398
1377
|
return ret;
|
|
1399
1378
|
},
|
|
1400
|
-
|
|
1379
|
+
__wbg___wbindgen_jsval_eq_e659fcf7b0e32763: function(arg0, arg1) {
|
|
1401
1380
|
const ret = getObject(arg0) === getObject(arg1);
|
|
1402
1381
|
return ret;
|
|
1403
1382
|
},
|
|
1404
|
-
|
|
1383
|
+
__wbg___wbindgen_number_get_394265ed1e1b84ee: function(arg0, arg1) {
|
|
1405
1384
|
const obj = getObject(arg1);
|
|
1406
1385
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1407
1386
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1408
1387
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1409
1388
|
},
|
|
1410
|
-
|
|
1389
|
+
__wbg___wbindgen_string_get_b0ca35b86a603356: function(arg0, arg1) {
|
|
1411
1390
|
const obj = getObject(arg1);
|
|
1412
1391
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1413
1392
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -1415,30 +1394,30 @@ function __wbg_get_imports() {
|
|
|
1415
1394
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1416
1395
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1417
1396
|
},
|
|
1418
|
-
|
|
1397
|
+
__wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
|
|
1419
1398
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1420
1399
|
},
|
|
1421
|
-
|
|
1400
|
+
__wbg_from_13e323c65fc8f464: function(arg0) {
|
|
1422
1401
|
const ret = Array.from(getObject(arg0));
|
|
1423
1402
|
return addHeapObject(ret);
|
|
1424
1403
|
},
|
|
1425
|
-
|
|
1426
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
1427
|
-
return addHeapObject(ret);
|
|
1428
|
-
}, arguments); },
|
|
1429
|
-
__wbg_get_8360291721e2339f: function(arg0, arg1) {
|
|
1404
|
+
__wbg_get_507a50627bffa49b: function(arg0, arg1) {
|
|
1430
1405
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
1431
1406
|
return addHeapObject(ret);
|
|
1432
1407
|
},
|
|
1433
|
-
|
|
1408
|
+
__wbg_get_78f252d074a84d0b: function() { return handleError(function (arg0, arg1) {
|
|
1409
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
1410
|
+
return addHeapObject(ret);
|
|
1411
|
+
}, arguments); },
|
|
1412
|
+
__wbg_isArray_0677c962b281d01a: function(arg0) {
|
|
1434
1413
|
const ret = Array.isArray(getObject(arg0));
|
|
1435
1414
|
return ret;
|
|
1436
1415
|
},
|
|
1437
|
-
|
|
1416
|
+
__wbg_length_1f0964f4a5e2c6d8: function(arg0) {
|
|
1438
1417
|
const ret = getObject(arg0).length;
|
|
1439
1418
|
return ret;
|
|
1440
1419
|
},
|
|
1441
|
-
|
|
1420
|
+
__wbg_length_370319915dc99107: function(arg0) {
|
|
1442
1421
|
const ret = getObject(arg0).length;
|
|
1443
1422
|
return ret;
|
|
1444
1423
|
},
|
|
@@ -1446,41 +1425,41 @@ function __wbg_get_imports() {
|
|
|
1446
1425
|
const ret = Message.__wrap(arg0);
|
|
1447
1426
|
return addHeapObject(ret);
|
|
1448
1427
|
},
|
|
1449
|
-
|
|
1428
|
+
__wbg_new_32b398fb48b6d94a: function() {
|
|
1450
1429
|
const ret = new Array();
|
|
1451
1430
|
return addHeapObject(ret);
|
|
1452
1431
|
},
|
|
1453
|
-
|
|
1432
|
+
__wbg_new_da52cf8fe3429cb2: function() {
|
|
1454
1433
|
const ret = new Object();
|
|
1455
1434
|
return addHeapObject(ret);
|
|
1456
1435
|
},
|
|
1457
|
-
|
|
1436
|
+
__wbg_new_from_slice_77cdfb7977362f3c: function(arg0, arg1) {
|
|
1458
1437
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1459
1438
|
return addHeapObject(ret);
|
|
1460
1439
|
},
|
|
1461
|
-
|
|
1440
|
+
__wbg_new_with_length_e6785c33c8e4cce8: function(arg0) {
|
|
1462
1441
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1463
1442
|
return addHeapObject(ret);
|
|
1464
1443
|
},
|
|
1465
|
-
|
|
1444
|
+
__wbg_parse_1c0d8a8656d7e016: function() { return handleError(function (arg0, arg1) {
|
|
1466
1445
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
1467
1446
|
return addHeapObject(ret);
|
|
1468
1447
|
}, arguments); },
|
|
1469
|
-
|
|
1448
|
+
__wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {
|
|
1470
1449
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
1471
1450
|
},
|
|
1472
|
-
|
|
1451
|
+
__wbg_push_d2ae3af0c1217ae6: function(arg0, arg1) {
|
|
1473
1452
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
1474
1453
|
return ret;
|
|
1475
1454
|
},
|
|
1476
|
-
|
|
1455
|
+
__wbg_set_4d7dd76f3dae2926: function(arg0, arg1, arg2) {
|
|
1456
|
+
getObject(arg0).set(getArrayU8FromWasm0(arg1, arg2));
|
|
1457
|
+
},
|
|
1458
|
+
__wbg_set_8535240470bf2500: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1477
1459
|
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
1478
1460
|
return ret;
|
|
1479
1461
|
}, arguments); },
|
|
1480
|
-
|
|
1481
|
-
getObject(arg0).set(getArrayU8FromWasm0(arg1, arg2));
|
|
1482
|
-
},
|
|
1483
|
-
__wbg_stringify_91082ed7a5a5769e: function() { return handleError(function (arg0) {
|
|
1462
|
+
__wbg_stringify_b54333f60f1e4dad: function() { return handleError(function (arg0) {
|
|
1484
1463
|
const ret = JSON.stringify(getObject(arg0));
|
|
1485
1464
|
return addHeapObject(ret);
|
|
1486
1465
|
}, arguments); },
|
|
@@ -1515,34 +1494,34 @@ function __wbg_get_imports() {
|
|
|
1515
1494
|
|
|
1516
1495
|
const AnchorsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1517
1496
|
? { register: () => {}, unregister: () => {} }
|
|
1518
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_anchors_free(ptr
|
|
1497
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_anchors_free(ptr, 1));
|
|
1519
1498
|
const LookupFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1520
1499
|
? { register: () => {}, unregister: () => {} }
|
|
1521
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_lookup_free(ptr
|
|
1500
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_lookup_free(ptr, 1));
|
|
1522
1501
|
const MessageFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1523
1502
|
? { register: () => {}, unregister: () => {} }
|
|
1524
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_message_free(ptr
|
|
1503
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_message_free(ptr, 1));
|
|
1525
1504
|
const MessageBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1526
1505
|
? { register: () => {}, unregister: () => {} }
|
|
1527
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_messagebuilder_free(ptr
|
|
1506
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_messagebuilder_free(ptr, 1));
|
|
1528
1507
|
const QueryContextFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1529
1508
|
? { register: () => {}, unregister: () => {} }
|
|
1530
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_querycontext_free(ptr
|
|
1509
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_querycontext_free(ptr, 1));
|
|
1531
1510
|
const RecordFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1532
1511
|
? { register: () => {}, unregister: () => {} }
|
|
1533
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_record_free(ptr
|
|
1512
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_record_free(ptr, 1));
|
|
1534
1513
|
const RecordSetFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1535
1514
|
? { register: () => {}, unregister: () => {} }
|
|
1536
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_recordset_free(ptr
|
|
1515
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_recordset_free(ptr, 1));
|
|
1537
1516
|
const UnsignedRecordSetFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1538
1517
|
? { register: () => {}, unregister: () => {} }
|
|
1539
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_unsignedrecordset_free(ptr
|
|
1518
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_unsignedrecordset_free(ptr, 1));
|
|
1540
1519
|
const VerifiedMessageFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1541
1520
|
? { register: () => {}, unregister: () => {} }
|
|
1542
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_verifiedmessage_free(ptr
|
|
1521
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_verifiedmessage_free(ptr, 1));
|
|
1543
1522
|
const VeritasFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1544
1523
|
? { register: () => {}, unregister: () => {} }
|
|
1545
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_veritas_free(ptr
|
|
1524
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_veritas_free(ptr, 1));
|
|
1546
1525
|
|
|
1547
1526
|
function addHeapObject(obj) {
|
|
1548
1527
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
@@ -1654,8 +1633,7 @@ function getDataViewMemory0() {
|
|
|
1654
1633
|
}
|
|
1655
1634
|
|
|
1656
1635
|
function getStringFromWasm0(ptr, len) {
|
|
1657
|
-
|
|
1658
|
-
return decodeText(ptr, len);
|
|
1636
|
+
return decodeText(ptr >>> 0, len);
|
|
1659
1637
|
}
|
|
1660
1638
|
|
|
1661
1639
|
let cachedUint8ArrayMemory0 = null;
|
|
@@ -1774,8 +1752,9 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
1774
1752
|
|
|
1775
1753
|
let WASM_VECTOR_LEN = 0;
|
|
1776
1754
|
|
|
1777
|
-
let wasmModule, wasm;
|
|
1755
|
+
let wasmModule, wasmInstance, wasm;
|
|
1778
1756
|
function __wbg_finalize_init(instance, module) {
|
|
1757
|
+
wasmInstance = instance;
|
|
1779
1758
|
wasm = instance.exports;
|
|
1780
1759
|
wasmModule = module;
|
|
1781
1760
|
cachedDataViewMemory0 = null;
|
package/libveritas_bg.wasm
CHANGED
|
Binary file
|