@spacesprotocol/libveritas 0.0.0-dev.20260318034313 → 0.0.0-dev.20260318234945

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 CHANGED
@@ -1,6 +1,13 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
 
4
+ export class Anchors {
5
+ free(): void;
6
+ [Symbol.dispose](): void;
7
+ computeAnchorSetHash(): Uint8Array;
8
+ constructor(json: string);
9
+ }
10
+
4
11
  /**
5
12
  * A message containing chain proofs and handle data.
6
13
  */
@@ -181,9 +188,9 @@ export class VerifiedMessage {
181
188
  */
182
189
  message_bytes(): Uint8Array;
183
190
  /**
184
- * All verified zones.
191
+ * All verified zones as plain JS objects.
185
192
  */
186
- zones(): Zone[];
193
+ zones(): any;
187
194
  }
188
195
 
189
196
  export class Veritas {
@@ -191,7 +198,7 @@ export class Veritas {
191
198
  [Symbol.dispose](): void;
192
199
  computeAnchorSetHash(): Uint8Array;
193
200
  is_finalized(commitment_height: number): boolean;
194
- constructor(anchors: any);
201
+ constructor(anchors: Anchors);
195
202
  newest_anchor(): number;
196
203
  oldest_anchor(): number;
197
204
  sovereignty_for(commitment_height: number): string;
@@ -199,34 +206,18 @@ export class Veritas {
199
206
  * Verify a message against a query context.
200
207
  */
201
208
  verify_message(ctx: QueryContext, msg: Message): VerifiedMessage;
202
- static withDevMode(anchors: any): Veritas;
203
- }
204
-
205
- export class Zone {
206
- private constructor();
207
- free(): void;
208
- [Symbol.dispose](): void;
209
- alias(): string | undefined;
210
- anchor(): number;
211
- handle(): string;
212
- is_better_than(other: Zone): boolean;
213
- sovereignty(): string;
214
- to_bytes(): Uint8Array;
215
- /**
216
- * Returns the full zone as a JS object.
217
- */
218
- to_json(): any;
209
+ static withDevMode(anchors: Anchors): Veritas;
219
210
  }
220
211
 
221
212
  /**
222
- * Decode stored certificate bytes to a JS object.
213
+ * Decode stored zone bytes to a plain JS object.
223
214
  */
224
- export function decode_certificate(bytes: Uint8Array): any;
215
+ export function decodeZone(bytes: Uint8Array): any;
225
216
 
226
217
  /**
227
- * Decode stored zone bytes to a Zone object.
218
+ * Decode stored certificate bytes to a JS object.
228
219
  */
229
- export function decode_zone(bytes: Uint8Array): Zone;
220
+ export function decode_certificate(bytes: Uint8Array): any;
230
221
 
231
222
  /**
232
223
  * Hash a message with the Spaces signed-message prefix (SHA256).
@@ -243,3 +234,13 @@ export function verify_schnorr(msg_hash: Uint8Array, signature: Uint8Array, pubk
243
234
  * Verify a Schnorr signature over a message using the Spaces signed-message prefix.
244
235
  */
245
236
  export function verify_spaces_message(msg: Uint8Array, signature: Uint8Array, pubkey: Uint8Array): void;
237
+
238
+ /**
239
+ * Compare two zones — returns true if `a` is fresher/better than `b`.
240
+ */
241
+ export function zoneIsBetterThan(a: any, b: any): boolean;
242
+
243
+ /**
244
+ * Serialize a zone JS object to borsh bytes for storage.
245
+ */
246
+ export function zoneToBytes(zone: any): Uint8Array;
package/libveritas.js CHANGED
@@ -1,5 +1,43 @@
1
1
  /* @ts-self-types="./libveritas.d.ts" */
2
2
 
3
+ class Anchors {
4
+ __destroy_into_raw() {
5
+ const ptr = this.__wbg_ptr;
6
+ this.__wbg_ptr = 0;
7
+ AnchorsFinalization.unregister(this);
8
+ return ptr;
9
+ }
10
+ free() {
11
+ const ptr = this.__destroy_into_raw();
12
+ wasm.__wbg_anchors_free(ptr, 0);
13
+ }
14
+ /**
15
+ * @returns {Uint8Array}
16
+ */
17
+ computeAnchorSetHash() {
18
+ const ret = wasm.anchors_computeAnchorSetHash(this.__wbg_ptr);
19
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
20
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
21
+ return v1;
22
+ }
23
+ /**
24
+ * @param {string} json
25
+ */
26
+ constructor(json) {
27
+ const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
28
+ const len0 = WASM_VECTOR_LEN;
29
+ const ret = wasm.anchors_from_json(ptr0, len0);
30
+ if (ret[2]) {
31
+ throw takeFromExternrefTable0(ret[1]);
32
+ }
33
+ this.__wbg_ptr = ret[0] >>> 0;
34
+ AnchorsFinalization.register(this, this.__wbg_ptr, this);
35
+ return this;
36
+ }
37
+ }
38
+ if (Symbol.dispose) Anchors.prototype[Symbol.dispose] = Anchors.prototype.free;
39
+ exports.Anchors = Anchors;
40
+
3
41
  /**
4
42
  * A message containing chain proofs and handle data.
5
43
  */
@@ -459,14 +497,15 @@ class VerifiedMessage {
459
497
  return v1;
460
498
  }
461
499
  /**
462
- * All verified zones.
463
- * @returns {Zone[]}
500
+ * All verified zones as plain JS objects.
501
+ * @returns {any}
464
502
  */
465
503
  zones() {
466
504
  const ret = wasm.verifiedmessage_zones(this.__wbg_ptr);
467
- var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
468
- wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
469
- return v1;
505
+ if (ret[2]) {
506
+ throw takeFromExternrefTable0(ret[1]);
507
+ }
508
+ return takeFromExternrefTable0(ret[0]);
470
509
  }
471
510
  }
472
511
  if (Symbol.dispose) VerifiedMessage.prototype[Symbol.dispose] = VerifiedMessage.prototype.free;
@@ -508,10 +547,11 @@ class Veritas {
508
547
  return ret !== 0;
509
548
  }
510
549
  /**
511
- * @param {any} anchors
550
+ * @param {Anchors} anchors
512
551
  */
513
552
  constructor(anchors) {
514
- const ret = wasm.veritas_new(anchors);
553
+ _assertClass(anchors, Anchors);
554
+ const ret = wasm.veritas_new(anchors.__wbg_ptr);
515
555
  if (ret[2]) {
516
556
  throw takeFromExternrefTable0(ret[1]);
517
557
  }
@@ -565,11 +605,12 @@ class Veritas {
565
605
  return VerifiedMessage.__wrap(ret[0]);
566
606
  }
567
607
  /**
568
- * @param {any} anchors
608
+ * @param {Anchors} anchors
569
609
  * @returns {Veritas}
570
610
  */
571
611
  static withDevMode(anchors) {
572
- const ret = wasm.veritas_withDevMode(anchors);
612
+ _assertClass(anchors, Anchors);
613
+ const ret = wasm.veritas_withDevMode(anchors.__wbg_ptr);
573
614
  if (ret[2]) {
574
615
  throw takeFromExternrefTable0(ret[1]);
575
616
  }
@@ -579,140 +620,37 @@ class Veritas {
579
620
  if (Symbol.dispose) Veritas.prototype[Symbol.dispose] = Veritas.prototype.free;
580
621
  exports.Veritas = Veritas;
581
622
 
582
- class Zone {
583
- static __wrap(ptr) {
584
- ptr = ptr >>> 0;
585
- const obj = Object.create(Zone.prototype);
586
- obj.__wbg_ptr = ptr;
587
- ZoneFinalization.register(obj, obj.__wbg_ptr, obj);
588
- return obj;
589
- }
590
- __destroy_into_raw() {
591
- const ptr = this.__wbg_ptr;
592
- this.__wbg_ptr = 0;
593
- ZoneFinalization.unregister(this);
594
- return ptr;
595
- }
596
- free() {
597
- const ptr = this.__destroy_into_raw();
598
- wasm.__wbg_zone_free(ptr, 0);
599
- }
600
- /**
601
- * @returns {string | undefined}
602
- */
603
- alias() {
604
- const ret = wasm.zone_alias(this.__wbg_ptr);
605
- let v1;
606
- if (ret[0] !== 0) {
607
- v1 = getStringFromWasm0(ret[0], ret[1]).slice();
608
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
609
- }
610
- return v1;
611
- }
612
- /**
613
- * @returns {number}
614
- */
615
- anchor() {
616
- const ret = wasm.zone_anchor(this.__wbg_ptr);
617
- return ret >>> 0;
618
- }
619
- /**
620
- * @returns {string}
621
- */
622
- handle() {
623
- let deferred1_0;
624
- let deferred1_1;
625
- try {
626
- const ret = wasm.zone_handle(this.__wbg_ptr);
627
- deferred1_0 = ret[0];
628
- deferred1_1 = ret[1];
629
- return getStringFromWasm0(ret[0], ret[1]);
630
- } finally {
631
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
632
- }
633
- }
634
- /**
635
- * @param {Zone} other
636
- * @returns {boolean}
637
- */
638
- is_better_than(other) {
639
- _assertClass(other, Zone);
640
- const ret = wasm.zone_is_better_than(this.__wbg_ptr, other.__wbg_ptr);
641
- if (ret[2]) {
642
- throw takeFromExternrefTable0(ret[1]);
643
- }
644
- return ret[0] !== 0;
645
- }
646
- /**
647
- * @returns {string}
648
- */
649
- sovereignty() {
650
- let deferred1_0;
651
- let deferred1_1;
652
- try {
653
- const ret = wasm.zone_sovereignty(this.__wbg_ptr);
654
- deferred1_0 = ret[0];
655
- deferred1_1 = ret[1];
656
- return getStringFromWasm0(ret[0], ret[1]);
657
- } finally {
658
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
659
- }
660
- }
661
- /**
662
- * @returns {Uint8Array}
663
- */
664
- to_bytes() {
665
- const ret = wasm.zone_to_bytes(this.__wbg_ptr);
666
- var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
667
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
668
- return v1;
669
- }
670
- /**
671
- * Returns the full zone as a JS object.
672
- * @returns {any}
673
- */
674
- to_json() {
675
- const ret = wasm.zone_to_json(this.__wbg_ptr);
676
- if (ret[2]) {
677
- throw takeFromExternrefTable0(ret[1]);
678
- }
679
- return takeFromExternrefTable0(ret[0]);
680
- }
681
- }
682
- if (Symbol.dispose) Zone.prototype[Symbol.dispose] = Zone.prototype.free;
683
- exports.Zone = Zone;
684
-
685
623
  /**
686
- * Decode stored certificate bytes to a JS object.
624
+ * Decode stored zone bytes to a plain JS object.
687
625
  * @param {Uint8Array} bytes
688
626
  * @returns {any}
689
627
  */
690
- function decode_certificate(bytes) {
628
+ function decodeZone(bytes) {
691
629
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
692
630
  const len0 = WASM_VECTOR_LEN;
693
- const ret = wasm.decode_certificate(ptr0, len0);
631
+ const ret = wasm.decodeZone(ptr0, len0);
694
632
  if (ret[2]) {
695
633
  throw takeFromExternrefTable0(ret[1]);
696
634
  }
697
635
  return takeFromExternrefTable0(ret[0]);
698
636
  }
699
- exports.decode_certificate = decode_certificate;
637
+ exports.decodeZone = decodeZone;
700
638
 
701
639
  /**
702
- * Decode stored zone bytes to a Zone object.
640
+ * Decode stored certificate bytes to a JS object.
703
641
  * @param {Uint8Array} bytes
704
- * @returns {Zone}
642
+ * @returns {any}
705
643
  */
706
- function decode_zone(bytes) {
644
+ function decode_certificate(bytes) {
707
645
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
708
646
  const len0 = WASM_VECTOR_LEN;
709
- const ret = wasm.decode_zone(ptr0, len0);
647
+ const ret = wasm.decode_certificate(ptr0, len0);
710
648
  if (ret[2]) {
711
649
  throw takeFromExternrefTable0(ret[1]);
712
650
  }
713
- return Zone.__wrap(ret[0]);
651
+ return takeFromExternrefTable0(ret[0]);
714
652
  }
715
- exports.decode_zone = decode_zone;
653
+ exports.decode_certificate = decode_certificate;
716
654
 
717
655
  /**
718
656
  * Hash a message with the Spaces signed-message prefix (SHA256).
@@ -770,6 +708,37 @@ function verify_spaces_message(msg, signature, pubkey) {
770
708
  }
771
709
  exports.verify_spaces_message = verify_spaces_message;
772
710
 
711
+ /**
712
+ * Compare two zones — returns true if `a` is fresher/better than `b`.
713
+ * @param {any} a
714
+ * @param {any} b
715
+ * @returns {boolean}
716
+ */
717
+ function zoneIsBetterThan(a, b) {
718
+ const ret = wasm.zoneIsBetterThan(a, b);
719
+ if (ret[2]) {
720
+ throw takeFromExternrefTable0(ret[1]);
721
+ }
722
+ return ret[0] !== 0;
723
+ }
724
+ exports.zoneIsBetterThan = zoneIsBetterThan;
725
+
726
+ /**
727
+ * Serialize a zone JS object to borsh bytes for storage.
728
+ * @param {any} zone
729
+ * @returns {Uint8Array}
730
+ */
731
+ function zoneToBytes(zone) {
732
+ const ret = wasm.zoneToBytes(zone);
733
+ if (ret[3]) {
734
+ throw takeFromExternrefTable0(ret[2]);
735
+ }
736
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
737
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
738
+ return v1;
739
+ }
740
+ exports.zoneToBytes = zoneToBytes;
741
+
773
742
  function __wbg_get_imports() {
774
743
  const import0 = {
775
744
  __proto__: null,
@@ -777,22 +746,6 @@ function __wbg_get_imports() {
777
746
  const ret = Error(getStringFromWasm0(arg0, arg1));
778
747
  return ret;
779
748
  },
780
- __wbg_Number_a5a435bd7bbec835: function(arg0) {
781
- const ret = Number(arg0);
782
- return ret;
783
- },
784
- __wbg_String_8564e559799eccda: function(arg0, arg1) {
785
- const ret = String(arg1);
786
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
787
- const len1 = WASM_VECTOR_LEN;
788
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
789
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
790
- },
791
- __wbg___wbindgen_boolean_get_c0f3f60bac5a78d1: function(arg0) {
792
- const v = arg0;
793
- const ret = typeof(v) === 'boolean' ? v : undefined;
794
- return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
795
- },
796
749
  __wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
797
750
  const ret = debugString(arg1);
798
751
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -800,31 +753,14 @@ function __wbg_get_imports() {
800
753
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
801
754
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
802
755
  },
803
- __wbg___wbindgen_in_41dbb8413020e076: function(arg0, arg1) {
804
- const ret = arg0 in arg1;
805
- return ret;
806
- },
807
- __wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
808
- const ret = typeof(arg0) === 'function';
809
- return ret;
810
- },
811
756
  __wbg___wbindgen_is_null_0b605fc6b167c56f: function(arg0) {
812
757
  const ret = arg0 === null;
813
758
  return ret;
814
759
  },
815
- __wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
816
- const val = arg0;
817
- const ret = typeof(val) === 'object' && val !== null;
818
- return ret;
819
- },
820
760
  __wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
821
761
  const ret = arg0 === undefined;
822
762
  return ret;
823
763
  },
824
- __wbg___wbindgen_jsval_loose_eq_5bcc3bed3c69e72b: function(arg0, arg1) {
825
- const ret = arg0 == arg1;
826
- return ret;
827
- },
828
764
  __wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg0, arg1) {
829
765
  const obj = arg1;
830
766
  const ret = typeof(obj) === 'number' ? obj : undefined;
@@ -842,22 +778,10 @@ function __wbg_get_imports() {
842
778
  __wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
843
779
  throw new Error(getStringFromWasm0(arg0, arg1));
844
780
  },
845
- __wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
846
- const ret = arg0.call(arg1);
847
- return ret;
848
- }, arguments); },
849
- __wbg_done_08ce71ee07e3bd17: function(arg0) {
850
- const ret = arg0.done;
851
- return ret;
852
- },
853
781
  __wbg_from_4bdf88943703fd48: function(arg0) {
854
782
  const ret = Array.from(arg0);
855
783
  return ret;
856
784
  },
857
- __wbg_get_326e41e095fb2575: function() { return handleError(function (arg0, arg1) {
858
- const ret = Reflect.get(arg0, arg1);
859
- return ret;
860
- }, arguments); },
861
785
  __wbg_get_3ef1eba1850ade27: function() { return handleError(function (arg0, arg1) {
862
786
  const ret = Reflect.get(arg0, arg1);
863
787
  return ret;
@@ -866,46 +790,6 @@ function __wbg_get_imports() {
866
790
  const ret = arg0[arg1 >>> 0];
867
791
  return ret;
868
792
  },
869
- __wbg_get_unchecked_329cfe50afab7352: function(arg0, arg1) {
870
- const ret = arg0[arg1 >>> 0];
871
- return ret;
872
- },
873
- __wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
874
- const ret = arg0[arg1];
875
- return ret;
876
- },
877
- __wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
878
- let result;
879
- try {
880
- result = arg0 instanceof ArrayBuffer;
881
- } catch (_) {
882
- result = false;
883
- }
884
- const ret = result;
885
- return ret;
886
- },
887
- __wbg_instanceof_Uint8Array_740438561a5b956d: function(arg0) {
888
- let result;
889
- try {
890
- result = arg0 instanceof Uint8Array;
891
- } catch (_) {
892
- result = false;
893
- }
894
- const ret = result;
895
- return ret;
896
- },
897
- __wbg_isArray_33b91feb269ff46e: function(arg0) {
898
- const ret = Array.isArray(arg0);
899
- return ret;
900
- },
901
- __wbg_isSafeInteger_ecd6a7f9c3e053cd: function(arg0) {
902
- const ret = Number.isSafeInteger(arg0);
903
- return ret;
904
- },
905
- __wbg_iterator_d8f549ec8fb061b1: function() {
906
- const ret = Symbol.iterator;
907
- return ret;
908
- },
909
793
  __wbg_length_b3416cf66a5452c8: function(arg0) {
910
794
  const ret = arg0.length;
911
795
  return ret;
@@ -914,10 +798,6 @@ function __wbg_get_imports() {
914
798
  const ret = arg0.length;
915
799
  return ret;
916
800
  },
917
- __wbg_new_5f486cdf45a04d78: function(arg0) {
918
- const ret = new Uint8Array(arg0);
919
- return ret;
920
- },
921
801
  __wbg_new_a70fbab9066b301f: function() {
922
802
  const ret = new Array();
923
803
  return ret;
@@ -930,14 +810,6 @@ function __wbg_get_imports() {
930
810
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
931
811
  return ret;
932
812
  },
933
- __wbg_next_11b99ee6237339e3: function() { return handleError(function (arg0) {
934
- const ret = arg0.next();
935
- return ret;
936
- }, arguments); },
937
- __wbg_next_e01a967809d1aa68: function(arg0) {
938
- const ret = arg0.next;
939
- return ret;
940
- },
941
813
  __wbg_parse_e9eddd2a82c706eb: function() { return handleError(function (arg0, arg1) {
942
814
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
943
815
  return ret;
@@ -953,14 +825,10 @@ function __wbg_get_imports() {
953
825
  const ret = Reflect.set(arg0, arg1, arg2);
954
826
  return ret;
955
827
  }, arguments); },
956
- __wbg_value_21fc78aab0322612: function(arg0) {
957
- const ret = arg0.value;
958
- return ret;
959
- },
960
- __wbg_zone_new: function(arg0) {
961
- const ret = Zone.__wrap(arg0);
828
+ __wbg_stringify_5ae93966a84901ac: function() { return handleError(function (arg0) {
829
+ const ret = JSON.stringify(arg0);
962
830
  return ret;
963
- },
831
+ }, arguments); },
964
832
  __wbindgen_cast_0000000000000001: function(arg0) {
965
833
  // Cast intrinsic for `F64 -> Externref`.
966
834
  const ret = arg0;
@@ -992,6 +860,9 @@ function __wbg_get_imports() {
992
860
  };
993
861
  }
994
862
 
863
+ const AnchorsFinalization = (typeof FinalizationRegistry === 'undefined')
864
+ ? { register: () => {}, unregister: () => {} }
865
+ : new FinalizationRegistry(ptr => wasm.__wbg_anchors_free(ptr >>> 0, 1));
995
866
  const MessageFinalization = (typeof FinalizationRegistry === 'undefined')
996
867
  ? { register: () => {}, unregister: () => {} }
997
868
  : new FinalizationRegistry(ptr => wasm.__wbg_message_free(ptr >>> 0, 1));
@@ -1016,9 +887,6 @@ const VerifiedMessageFinalization = (typeof FinalizationRegistry === 'undefined'
1016
887
  const VeritasFinalization = (typeof FinalizationRegistry === 'undefined')
1017
888
  ? { register: () => {}, unregister: () => {} }
1018
889
  : new FinalizationRegistry(ptr => wasm.__wbg_veritas_free(ptr >>> 0, 1));
1019
- const ZoneFinalization = (typeof FinalizationRegistry === 'undefined')
1020
- ? { register: () => {}, unregister: () => {} }
1021
- : new FinalizationRegistry(ptr => wasm.__wbg_zone_free(ptr >>> 0, 1));
1022
890
 
1023
891
  function addToExternrefTable0(obj) {
1024
892
  const idx = wasm.__externref_table_alloc();
@@ -1097,17 +965,6 @@ function debugString(val) {
1097
965
  return className;
1098
966
  }
1099
967
 
1100
- function getArrayJsValueFromWasm0(ptr, len) {
1101
- ptr = ptr >>> 0;
1102
- const mem = getDataViewMemory0();
1103
- const result = [];
1104
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
1105
- result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
1106
- }
1107
- wasm.__externref_drop_slice(ptr, len);
1108
- return result;
1109
- }
1110
-
1111
968
  function getArrayU8FromWasm0(ptr, len) {
1112
969
  ptr = ptr >>> 0;
1113
970
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spacesprotocol/libveritas",
3
- "version": "0.0.0-dev.20260318034313",
3
+ "version": "0.0.0-dev.20260318234945",
4
4
  "files": [
5
5
  "libveritas_bg.wasm",
6
6
  "libveritas.js",