@spacesprotocol/libveritas 0.0.0-dev.20260328162122 → 0.0.0-dev.20260330202221
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 +23 -23
- package/libveritas.js +84 -77
- package/libveritas_bg.wasm +0 -0
- package/package.json +1 -1
package/libveritas.d.ts
CHANGED
|
@@ -43,6 +43,13 @@ export class Message {
|
|
|
43
43
|
* Decode a message from borsh bytes.
|
|
44
44
|
*/
|
|
45
45
|
constructor(bytes: Uint8Array);
|
|
46
|
+
/**
|
|
47
|
+
* Set the signature on an unsigned record set.
|
|
48
|
+
*
|
|
49
|
+
* `signer` is the canonical signer name from the unsigned record.
|
|
50
|
+
* `signature` is the 64-byte Schnorr signature.
|
|
51
|
+
*/
|
|
52
|
+
setSignature(signer: string, signature: Uint8Array): void;
|
|
46
53
|
/**
|
|
47
54
|
* Serialize the message to borsh bytes.
|
|
48
55
|
*/
|
|
@@ -78,13 +85,13 @@ export class MessageBuilder {
|
|
|
78
85
|
*/
|
|
79
86
|
addChain(chain_bytes: Uint8Array): void;
|
|
80
87
|
/**
|
|
81
|
-
* Add a .spacecert chain with records.
|
|
88
|
+
* Add a .spacecert chain with records (sip7 wire bytes).
|
|
82
89
|
*/
|
|
83
|
-
addHandle(chain_bytes: Uint8Array, records_bytes: Uint8Array): void;
|
|
90
|
+
addHandle(chain_bytes: Uint8Array, records_bytes: Uint8Array, rev: boolean): void;
|
|
84
91
|
/**
|
|
85
|
-
* Add records for a handle.
|
|
92
|
+
* Add records for a handle (sip7 wire bytes).
|
|
86
93
|
*/
|
|
87
|
-
addRecords(handle: string, records_bytes: Uint8Array): void;
|
|
94
|
+
addRecords(handle: string, records_bytes: Uint8Array, rev: boolean): void;
|
|
88
95
|
/**
|
|
89
96
|
* Add a full data update (records + optional delegate records).
|
|
90
97
|
*/
|
|
@@ -93,8 +100,12 @@ export class MessageBuilder {
|
|
|
93
100
|
* Build the message from a borsh-encoded ChainProof.
|
|
94
101
|
*
|
|
95
102
|
* Consumes the builder — cannot be called twice.
|
|
103
|
+
*
|
|
104
|
+
* Returns `{ message, unsigned }` where `unsigned` is an array of
|
|
105
|
+
* `{ handle, signer, signingId }` for each record set that needs signing.
|
|
106
|
+
* After signing, call `message.setSignature(signer, sig)` for each.
|
|
96
107
|
*/
|
|
97
|
-
build(chain_proof: Uint8Array):
|
|
108
|
+
build(chain_proof: Uint8Array): any;
|
|
98
109
|
/**
|
|
99
110
|
* Returns the chain proof request as a JS object.
|
|
100
111
|
*
|
|
@@ -145,8 +156,8 @@ export class Record {
|
|
|
145
156
|
[Symbol.dispose](): void;
|
|
146
157
|
static blob(key: string, value: Uint8Array): any;
|
|
147
158
|
static seq(version: bigint): any;
|
|
148
|
-
static
|
|
149
|
-
static
|
|
159
|
+
static sig(signer: string, rev: string, sig: Uint8Array): any;
|
|
160
|
+
static txt(key: string, value: any): any;
|
|
150
161
|
static unknown(rtype: number, rdata: Uint8Array): any;
|
|
151
162
|
}
|
|
152
163
|
|
|
@@ -250,17 +261,6 @@ export class Veritas {
|
|
|
250
261
|
*/
|
|
251
262
|
export function createCertificateChain(subject: string, cert_bytes_list: Uint8Array[]): Uint8Array;
|
|
252
263
|
|
|
253
|
-
/**
|
|
254
|
-
* Create borsh-encoded OffchainRecords from a RecordSet and 64-byte Schnorr signature.
|
|
255
|
-
*
|
|
256
|
-
* ```js
|
|
257
|
-
* const rs = RecordSet.pack([Record.seq(0), Record.txt("btc", "bc1qtest")]);
|
|
258
|
-
* const sig = await wallet.signSchnorr(rs.signingId());
|
|
259
|
-
* const bytes = createOffchainRecords(rs, sig);
|
|
260
|
-
* ```
|
|
261
|
-
*/
|
|
262
|
-
export function createOffchainRecords(record_set: RecordSet, signature: Uint8Array): Uint8Array;
|
|
263
|
-
|
|
264
264
|
/**
|
|
265
265
|
* Decode stored certificate bytes to a JS object.
|
|
266
266
|
*/
|
|
@@ -316,7 +316,6 @@ export interface InitOutput {
|
|
|
316
316
|
readonly anchors_computeTrustSet: (a: number) => [number, number, number];
|
|
317
317
|
readonly anchors_from_json: (a: number, b: number) => [number, number, number];
|
|
318
318
|
readonly createCertificateChain: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
319
|
-
readonly createOffchainRecords: (a: number, b: number, c: number) => [number, number, number, number];
|
|
320
319
|
readonly decodeCertificate: (a: number, b: number) => [number, number, number];
|
|
321
320
|
readonly decodeZone: (a: number, b: number) => [number, number, number];
|
|
322
321
|
readonly hashSignableMessage: (a: number, b: number) => [number, number];
|
|
@@ -325,12 +324,13 @@ export interface InitOutput {
|
|
|
325
324
|
readonly lookup_new: (a: number, b: number) => [number, number, number];
|
|
326
325
|
readonly lookup_start: (a: number) => [number, number];
|
|
327
326
|
readonly message_from_bytes: (a: number, b: number) => [number, number, number];
|
|
327
|
+
readonly message_setSignature: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
328
328
|
readonly message_toBytes: (a: number) => [number, number];
|
|
329
329
|
readonly message_update: (a: number, b: any) => [number, number];
|
|
330
330
|
readonly messagebuilder_addCert: (a: number, b: number, c: number) => [number, number];
|
|
331
331
|
readonly messagebuilder_addChain: (a: number, b: number, c: number) => [number, number];
|
|
332
|
-
readonly messagebuilder_addHandle: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
333
|
-
readonly messagebuilder_addRecords: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
332
|
+
readonly messagebuilder_addHandle: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
333
|
+
readonly messagebuilder_addRecords: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
334
334
|
readonly messagebuilder_addUpdate: (a: number, b: any) => [number, number];
|
|
335
335
|
readonly messagebuilder_build: (a: number, b: number, c: number) => [number, number, number];
|
|
336
336
|
readonly messagebuilder_chainProofRequest: (a: number) => [number, number, number];
|
|
@@ -340,8 +340,8 @@ export interface InitOutput {
|
|
|
340
340
|
readonly querycontext_new: () => number;
|
|
341
341
|
readonly record_blob: (a: number, b: number, c: number, d: number) => any;
|
|
342
342
|
readonly record_seq: (a: bigint) => any;
|
|
343
|
-
readonly
|
|
344
|
-
readonly
|
|
343
|
+
readonly record_sig: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
344
|
+
readonly record_txt: (a: number, b: number, c: any) => any;
|
|
345
345
|
readonly record_unknown: (a: number, b: number, c: number) => any;
|
|
346
346
|
readonly recordset_isEmpty: (a: number) => number;
|
|
347
347
|
readonly recordset_new: (a: number, b: number) => number;
|
package/libveritas.js
CHANGED
|
@@ -143,6 +143,24 @@ export class Message {
|
|
|
143
143
|
MessageFinalization.register(this, this.__wbg_ptr, this);
|
|
144
144
|
return this;
|
|
145
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* Set the signature on an unsigned record set.
|
|
148
|
+
*
|
|
149
|
+
* `signer` is the canonical signer name from the unsigned record.
|
|
150
|
+
* `signature` is the 64-byte Schnorr signature.
|
|
151
|
+
* @param {string} signer
|
|
152
|
+
* @param {Uint8Array} signature
|
|
153
|
+
*/
|
|
154
|
+
setSignature(signer, signature) {
|
|
155
|
+
const ptr0 = passStringToWasm0(signer, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
156
|
+
const len0 = WASM_VECTOR_LEN;
|
|
157
|
+
const ptr1 = passArray8ToWasm0(signature, wasm.__wbindgen_malloc);
|
|
158
|
+
const len1 = WASM_VECTOR_LEN;
|
|
159
|
+
const ret = wasm.message_setSignature(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
160
|
+
if (ret[1]) {
|
|
161
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
146
164
|
/**
|
|
147
165
|
* Serialize the message to borsh bytes.
|
|
148
166
|
* @returns {Uint8Array}
|
|
@@ -215,31 +233,33 @@ export class MessageBuilder {
|
|
|
215
233
|
}
|
|
216
234
|
}
|
|
217
235
|
/**
|
|
218
|
-
* Add a .spacecert chain with records.
|
|
236
|
+
* Add a .spacecert chain with records (sip7 wire bytes).
|
|
219
237
|
* @param {Uint8Array} chain_bytes
|
|
220
238
|
* @param {Uint8Array} records_bytes
|
|
239
|
+
* @param {boolean} rev
|
|
221
240
|
*/
|
|
222
|
-
addHandle(chain_bytes, records_bytes) {
|
|
241
|
+
addHandle(chain_bytes, records_bytes, rev) {
|
|
223
242
|
const ptr0 = passArray8ToWasm0(chain_bytes, wasm.__wbindgen_malloc);
|
|
224
243
|
const len0 = WASM_VECTOR_LEN;
|
|
225
244
|
const ptr1 = passArray8ToWasm0(records_bytes, wasm.__wbindgen_malloc);
|
|
226
245
|
const len1 = WASM_VECTOR_LEN;
|
|
227
|
-
const ret = wasm.messagebuilder_addHandle(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
246
|
+
const ret = wasm.messagebuilder_addHandle(this.__wbg_ptr, ptr0, len0, ptr1, len1, rev);
|
|
228
247
|
if (ret[1]) {
|
|
229
248
|
throw takeFromExternrefTable0(ret[0]);
|
|
230
249
|
}
|
|
231
250
|
}
|
|
232
251
|
/**
|
|
233
|
-
* Add records for a handle.
|
|
252
|
+
* Add records for a handle (sip7 wire bytes).
|
|
234
253
|
* @param {string} handle
|
|
235
254
|
* @param {Uint8Array} records_bytes
|
|
255
|
+
* @param {boolean} rev
|
|
236
256
|
*/
|
|
237
|
-
addRecords(handle, records_bytes) {
|
|
257
|
+
addRecords(handle, records_bytes, rev) {
|
|
238
258
|
const ptr0 = passStringToWasm0(handle, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
239
259
|
const len0 = WASM_VECTOR_LEN;
|
|
240
260
|
const ptr1 = passArray8ToWasm0(records_bytes, wasm.__wbindgen_malloc);
|
|
241
261
|
const len1 = WASM_VECTOR_LEN;
|
|
242
|
-
const ret = wasm.messagebuilder_addRecords(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
262
|
+
const ret = wasm.messagebuilder_addRecords(this.__wbg_ptr, ptr0, len0, ptr1, len1, rev);
|
|
243
263
|
if (ret[1]) {
|
|
244
264
|
throw takeFromExternrefTable0(ret[0]);
|
|
245
265
|
}
|
|
@@ -258,8 +278,12 @@ export class MessageBuilder {
|
|
|
258
278
|
* Build the message from a borsh-encoded ChainProof.
|
|
259
279
|
*
|
|
260
280
|
* Consumes the builder — cannot be called twice.
|
|
281
|
+
*
|
|
282
|
+
* Returns `{ message, unsigned }` where `unsigned` is an array of
|
|
283
|
+
* `{ handle, signer, signingId }` for each record set that needs signing.
|
|
284
|
+
* After signing, call `message.setSignature(signer, sig)` for each.
|
|
261
285
|
* @param {Uint8Array} chain_proof
|
|
262
|
-
* @returns {
|
|
286
|
+
* @returns {any}
|
|
263
287
|
*/
|
|
264
288
|
build(chain_proof) {
|
|
265
289
|
const ptr0 = passArray8ToWasm0(chain_proof, wasm.__wbindgen_malloc);
|
|
@@ -268,7 +292,7 @@ export class MessageBuilder {
|
|
|
268
292
|
if (ret[2]) {
|
|
269
293
|
throw takeFromExternrefTable0(ret[1]);
|
|
270
294
|
}
|
|
271
|
-
return
|
|
295
|
+
return takeFromExternrefTable0(ret[0]);
|
|
272
296
|
}
|
|
273
297
|
/**
|
|
274
298
|
* Returns the chain proof request as a JS object.
|
|
@@ -390,16 +414,19 @@ export class Record {
|
|
|
390
414
|
return ret;
|
|
391
415
|
}
|
|
392
416
|
/**
|
|
393
|
-
* @param {string}
|
|
394
|
-
* @param {string}
|
|
417
|
+
* @param {string} signer
|
|
418
|
+
* @param {string} rev
|
|
419
|
+
* @param {Uint8Array} sig
|
|
395
420
|
* @returns {any}
|
|
396
421
|
*/
|
|
397
|
-
static
|
|
398
|
-
const ptr0 = passStringToWasm0(
|
|
422
|
+
static sig(signer, rev, sig) {
|
|
423
|
+
const ptr0 = passStringToWasm0(signer, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
399
424
|
const len0 = WASM_VECTOR_LEN;
|
|
400
|
-
const ptr1 = passStringToWasm0(
|
|
425
|
+
const ptr1 = passStringToWasm0(rev, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
401
426
|
const len1 = WASM_VECTOR_LEN;
|
|
402
|
-
const
|
|
427
|
+
const ptr2 = passArray8ToWasm0(sig, wasm.__wbindgen_malloc);
|
|
428
|
+
const len2 = WASM_VECTOR_LEN;
|
|
429
|
+
const ret = wasm.record_sig(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
403
430
|
return ret;
|
|
404
431
|
}
|
|
405
432
|
/**
|
|
@@ -407,10 +434,10 @@ export class Record {
|
|
|
407
434
|
* @param {any} value
|
|
408
435
|
* @returns {any}
|
|
409
436
|
*/
|
|
410
|
-
static
|
|
437
|
+
static txt(key, value) {
|
|
411
438
|
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
412
439
|
const len0 = WASM_VECTOR_LEN;
|
|
413
|
-
const ret = wasm.
|
|
440
|
+
const ret = wasm.record_txt(ptr0, len0, value);
|
|
414
441
|
return ret;
|
|
415
442
|
}
|
|
416
443
|
/**
|
|
@@ -748,31 +775,6 @@ export function createCertificateChain(subject, cert_bytes_list) {
|
|
|
748
775
|
return v3;
|
|
749
776
|
}
|
|
750
777
|
|
|
751
|
-
/**
|
|
752
|
-
* Create borsh-encoded OffchainRecords from a RecordSet and 64-byte Schnorr signature.
|
|
753
|
-
*
|
|
754
|
-
* ```js
|
|
755
|
-
* const rs = RecordSet.pack([Record.seq(0), Record.txt("btc", "bc1qtest")]);
|
|
756
|
-
* const sig = await wallet.signSchnorr(rs.signingId());
|
|
757
|
-
* const bytes = createOffchainRecords(rs, sig);
|
|
758
|
-
* ```
|
|
759
|
-
* @param {RecordSet} record_set
|
|
760
|
-
* @param {Uint8Array} signature
|
|
761
|
-
* @returns {Uint8Array}
|
|
762
|
-
*/
|
|
763
|
-
export function createOffchainRecords(record_set, signature) {
|
|
764
|
-
_assertClass(record_set, RecordSet);
|
|
765
|
-
const ptr0 = passArray8ToWasm0(signature, wasm.__wbindgen_malloc);
|
|
766
|
-
const len0 = WASM_VECTOR_LEN;
|
|
767
|
-
const ret = wasm.createOffchainRecords(record_set.__wbg_ptr, ptr0, len0);
|
|
768
|
-
if (ret[3]) {
|
|
769
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
770
|
-
}
|
|
771
|
-
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
772
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
773
|
-
return v2;
|
|
774
|
-
}
|
|
775
|
-
|
|
776
778
|
/**
|
|
777
779
|
* Decode stored certificate bytes to a JS object.
|
|
778
780
|
* @param {Uint8Array} bytes
|
|
@@ -888,50 +890,55 @@ export function zoneToBytes(zone) {
|
|
|
888
890
|
function __wbg_get_imports() {
|
|
889
891
|
const import0 = {
|
|
890
892
|
__proto__: null,
|
|
891
|
-
|
|
893
|
+
__wbg_Error_55538483de6e3abe: function(arg0, arg1) {
|
|
892
894
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
893
895
|
return ret;
|
|
894
896
|
},
|
|
895
|
-
|
|
897
|
+
__wbg___wbindgen_bigint_get_as_i64_a738e80c0fe6f6a7: function(arg0, arg1) {
|
|
896
898
|
const v = arg1;
|
|
897
899
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
898
900
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
899
901
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
900
902
|
},
|
|
901
|
-
|
|
903
|
+
__wbg___wbindgen_boolean_get_fe2a24fdfdb4064f: function(arg0) {
|
|
904
|
+
const v = arg0;
|
|
905
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
906
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
907
|
+
},
|
|
908
|
+
__wbg___wbindgen_debug_string_d89627202d0155b7: function(arg0, arg1) {
|
|
902
909
|
const ret = debugString(arg1);
|
|
903
910
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
904
911
|
const len1 = WASM_VECTOR_LEN;
|
|
905
912
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
906
913
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
907
914
|
},
|
|
908
|
-
|
|
915
|
+
__wbg___wbindgen_is_bigint_ca270ac12ef71091: function(arg0) {
|
|
909
916
|
const ret = typeof(arg0) === 'bigint';
|
|
910
917
|
return ret;
|
|
911
918
|
},
|
|
912
|
-
|
|
919
|
+
__wbg___wbindgen_is_null_8d90524c9e0af183: function(arg0) {
|
|
913
920
|
const ret = arg0 === null;
|
|
914
921
|
return ret;
|
|
915
922
|
},
|
|
916
|
-
|
|
923
|
+
__wbg___wbindgen_is_string_624d5244bb2bc87c: function(arg0) {
|
|
917
924
|
const ret = typeof(arg0) === 'string';
|
|
918
925
|
return ret;
|
|
919
926
|
},
|
|
920
|
-
|
|
927
|
+
__wbg___wbindgen_is_undefined_87a3a837f331fef5: function(arg0) {
|
|
921
928
|
const ret = arg0 === undefined;
|
|
922
929
|
return ret;
|
|
923
930
|
},
|
|
924
|
-
|
|
931
|
+
__wbg___wbindgen_jsval_eq_eedd705f9f2a4f35: function(arg0, arg1) {
|
|
925
932
|
const ret = arg0 === arg1;
|
|
926
933
|
return ret;
|
|
927
934
|
},
|
|
928
|
-
|
|
935
|
+
__wbg___wbindgen_number_get_769f3676dc20c1d7: function(arg0, arg1) {
|
|
929
936
|
const obj = arg1;
|
|
930
937
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
931
938
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
932
939
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
933
940
|
},
|
|
934
|
-
|
|
941
|
+
__wbg___wbindgen_string_get_f1161390414f9b59: function(arg0, arg1) {
|
|
935
942
|
const obj = arg1;
|
|
936
943
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
937
944
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -939,72 +946,72 @@ function __wbg_get_imports() {
|
|
|
939
946
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
940
947
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
941
948
|
},
|
|
942
|
-
|
|
949
|
+
__wbg___wbindgen_throw_5549492daedad139: function(arg0, arg1) {
|
|
943
950
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
944
951
|
},
|
|
945
|
-
|
|
952
|
+
__wbg_from_45cebbf5e49a6ac6: function(arg0) {
|
|
946
953
|
const ret = Array.from(arg0);
|
|
947
954
|
return ret;
|
|
948
955
|
},
|
|
949
|
-
|
|
950
|
-
const ret = Reflect.get(arg0, arg1);
|
|
951
|
-
return ret;
|
|
952
|
-
}, arguments); },
|
|
953
|
-
__wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
|
|
956
|
+
__wbg_get_94f5fc088edd3138: function(arg0, arg1) {
|
|
954
957
|
const ret = arg0[arg1 >>> 0];
|
|
955
958
|
return ret;
|
|
956
959
|
},
|
|
957
|
-
|
|
960
|
+
__wbg_get_ff5f1fb220233477: function() { return handleError(function (arg0, arg1) {
|
|
961
|
+
const ret = Reflect.get(arg0, arg1);
|
|
962
|
+
return ret;
|
|
963
|
+
}, arguments); },
|
|
964
|
+
__wbg_isArray_867202cf8f195ed8: function(arg0) {
|
|
958
965
|
const ret = Array.isArray(arg0);
|
|
959
966
|
return ret;
|
|
960
967
|
},
|
|
961
|
-
|
|
968
|
+
__wbg_length_e6e1633fbea6cfa9: function(arg0) {
|
|
962
969
|
const ret = arg0.length;
|
|
963
970
|
return ret;
|
|
964
971
|
},
|
|
965
|
-
|
|
972
|
+
__wbg_length_fae3e439140f48a4: function(arg0) {
|
|
966
973
|
const ret = arg0.length;
|
|
967
974
|
return ret;
|
|
968
975
|
},
|
|
969
|
-
|
|
976
|
+
__wbg_message_new: function(arg0) {
|
|
977
|
+
const ret = Message.__wrap(arg0);
|
|
978
|
+
return ret;
|
|
979
|
+
},
|
|
980
|
+
__wbg_new_4370be21fa2b2f80: function() {
|
|
970
981
|
const ret = new Array();
|
|
971
982
|
return ret;
|
|
972
983
|
},
|
|
973
|
-
|
|
984
|
+
__wbg_new_48e1d86cfd30c8e7: function() {
|
|
974
985
|
const ret = new Object();
|
|
975
986
|
return ret;
|
|
976
987
|
},
|
|
977
|
-
|
|
988
|
+
__wbg_new_from_slice_0bc58e36f82a1b50: function(arg0, arg1) {
|
|
978
989
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
979
990
|
return ret;
|
|
980
991
|
},
|
|
981
|
-
|
|
992
|
+
__wbg_new_with_length_0f3108b57e05ed7c: function(arg0) {
|
|
982
993
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
983
994
|
return ret;
|
|
984
995
|
},
|
|
985
|
-
|
|
986
|
-
const ret = Array.of(arg0);
|
|
987
|
-
return ret;
|
|
988
|
-
},
|
|
989
|
-
__wbg_parse_e9eddd2a82c706eb: function() { return handleError(function (arg0, arg1) {
|
|
996
|
+
__wbg_parse_e5703fd52211e688: function() { return handleError(function (arg0, arg1) {
|
|
990
997
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
991
998
|
return ret;
|
|
992
999
|
}, arguments); },
|
|
993
|
-
|
|
1000
|
+
__wbg_prototypesetcall_3875d54d12ef2eec: function(arg0, arg1, arg2) {
|
|
994
1001
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
995
1002
|
},
|
|
996
|
-
|
|
1003
|
+
__wbg_push_d0006a37f9fcda6d: function(arg0, arg1) {
|
|
997
1004
|
const ret = arg0.push(arg1);
|
|
998
1005
|
return ret;
|
|
999
1006
|
},
|
|
1000
|
-
|
|
1007
|
+
__wbg_set_295bad3b5ead4e99: function(arg0, arg1, arg2) {
|
|
1008
|
+
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
1009
|
+
},
|
|
1010
|
+
__wbg_set_991082a7a49971cf: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1001
1011
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1002
1012
|
return ret;
|
|
1003
1013
|
}, arguments); },
|
|
1004
|
-
|
|
1005
|
-
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
1006
|
-
},
|
|
1007
|
-
__wbg_stringify_5ae93966a84901ac: function() { return handleError(function (arg0) {
|
|
1014
|
+
__wbg_stringify_b67e2c8c60b93f69: function() { return handleError(function (arg0) {
|
|
1008
1015
|
const ret = JSON.stringify(arg0);
|
|
1009
1016
|
return ret;
|
|
1010
1017
|
}, arguments); },
|
package/libveritas_bg.wasm
CHANGED
|
Binary file
|