@spacesprotocol/libveritas 0.0.0-dev.20260322225540 → 0.0.0-dev.20260323124800
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 +2 -7
- package/libveritas.js +12 -21
- package/libveritas_bg.wasm +0 -0
- package/package.json +1 -1
package/libveritas.d.ts
CHANGED
|
@@ -221,14 +221,9 @@ export class VerifiedMessage {
|
|
|
221
221
|
free(): void;
|
|
222
222
|
[Symbol.dispose](): void;
|
|
223
223
|
/**
|
|
224
|
-
*
|
|
225
|
-
* Returns null if the handle was not verified.
|
|
224
|
+
* All certificates as serialized byte arrays.
|
|
226
225
|
*/
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* All certificates as a JS array.
|
|
230
|
-
*/
|
|
231
|
-
certificates(): any;
|
|
226
|
+
certificates(): Uint8Array[];
|
|
232
227
|
/**
|
|
233
228
|
* Get the verified message for rebroadcasting or updating.
|
|
234
229
|
*/
|
package/libveritas.js
CHANGED
|
@@ -609,30 +609,14 @@ class VerifiedMessage {
|
|
|
609
609
|
wasm.__wbg_verifiedmessage_free(ptr, 0);
|
|
610
610
|
}
|
|
611
611
|
/**
|
|
612
|
-
*
|
|
613
|
-
*
|
|
614
|
-
* @param {string} handle
|
|
615
|
-
* @returns {any}
|
|
616
|
-
*/
|
|
617
|
-
certificate(handle) {
|
|
618
|
-
const ptr0 = passStringToWasm0(handle, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
619
|
-
const len0 = WASM_VECTOR_LEN;
|
|
620
|
-
const ret = wasm.verifiedmessage_certificate(this.__wbg_ptr, ptr0, len0);
|
|
621
|
-
if (ret[2]) {
|
|
622
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
623
|
-
}
|
|
624
|
-
return takeFromExternrefTable0(ret[0]);
|
|
625
|
-
}
|
|
626
|
-
/**
|
|
627
|
-
* All certificates as a JS array.
|
|
628
|
-
* @returns {any}
|
|
612
|
+
* All certificates as serialized byte arrays.
|
|
613
|
+
* @returns {Uint8Array[]}
|
|
629
614
|
*/
|
|
630
615
|
certificates() {
|
|
631
616
|
const ret = wasm.verifiedmessage_certificates(this.__wbg_ptr);
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
return takeFromExternrefTable0(ret[0]);
|
|
617
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
618
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
619
|
+
return v1;
|
|
636
620
|
}
|
|
637
621
|
/**
|
|
638
622
|
* Get the verified message for rebroadcasting or updating.
|
|
@@ -986,6 +970,10 @@ function __wbg_get_imports() {
|
|
|
986
970
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
987
971
|
return ret;
|
|
988
972
|
},
|
|
973
|
+
__wbg_new_with_length_825018a1616e9e55: function(arg0) {
|
|
974
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
975
|
+
return ret;
|
|
976
|
+
},
|
|
989
977
|
__wbg_parse_e9eddd2a82c706eb: function() { return handleError(function (arg0, arg1) {
|
|
990
978
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
991
979
|
return ret;
|
|
@@ -1001,6 +989,9 @@ function __wbg_get_imports() {
|
|
|
1001
989
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1002
990
|
return ret;
|
|
1003
991
|
}, arguments); },
|
|
992
|
+
__wbg_set_8c0b3ffcf05d61c2: function(arg0, arg1, arg2) {
|
|
993
|
+
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
994
|
+
},
|
|
1004
995
|
__wbg_stringify_5ae93966a84901ac: function() { return handleError(function (arg0) {
|
|
1005
996
|
const ret = JSON.stringify(arg0);
|
|
1006
997
|
return ret;
|
package/libveritas_bg.wasm
CHANGED
|
Binary file
|