@spacesprotocol/libveritas 0.0.0-dev.20260317233723 → 0.0.0-dev.20260318032333
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 -0
- package/libveritas.js +9 -0
- package/libveritas_bg.wasm +0 -0
- package/package.json +1 -1
package/libveritas.d.ts
CHANGED
|
@@ -189,6 +189,7 @@ export class VerifiedMessage {
|
|
|
189
189
|
export class Veritas {
|
|
190
190
|
free(): void;
|
|
191
191
|
[Symbol.dispose](): void;
|
|
192
|
+
computeAnchorSetHash(): Uint8Array;
|
|
192
193
|
is_finalized(commitment_height: number): boolean;
|
|
193
194
|
constructor(anchors: any);
|
|
194
195
|
newest_anchor(): number;
|
package/libveritas.js
CHANGED
|
@@ -490,6 +490,15 @@ class Veritas {
|
|
|
490
490
|
const ptr = this.__destroy_into_raw();
|
|
491
491
|
wasm.__wbg_veritas_free(ptr, 0);
|
|
492
492
|
}
|
|
493
|
+
/**
|
|
494
|
+
* @returns {Uint8Array}
|
|
495
|
+
*/
|
|
496
|
+
computeAnchorSetHash() {
|
|
497
|
+
const ret = wasm.veritas_computeAnchorSetHash(this.__wbg_ptr);
|
|
498
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
499
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
500
|
+
return v1;
|
|
501
|
+
}
|
|
493
502
|
/**
|
|
494
503
|
* @param {number} commitment_height
|
|
495
504
|
* @returns {boolean}
|
package/libveritas_bg.wasm
CHANGED
|
Binary file
|