@spacesprotocol/libveritas 0.0.0-dev.20260328162122 → 0.0.0-dev.20260331155020
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 +25 -23
- package/libveritas.js +93 -75
- 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
|
*
|
|
@@ -143,10 +154,11 @@ export class Record {
|
|
|
143
154
|
private constructor();
|
|
144
155
|
free(): void;
|
|
145
156
|
[Symbol.dispose](): void;
|
|
157
|
+
static addr(key: string, value: any): any;
|
|
146
158
|
static blob(key: string, value: Uint8Array): any;
|
|
147
159
|
static seq(version: bigint): any;
|
|
148
|
-
static
|
|
149
|
-
static
|
|
160
|
+
static sig(signer: string, rev: string, sig: Uint8Array): any;
|
|
161
|
+
static txt(key: string, value: any): any;
|
|
150
162
|
static unknown(rtype: number, rdata: Uint8Array): any;
|
|
151
163
|
}
|
|
152
164
|
|
|
@@ -250,17 +262,6 @@ export class Veritas {
|
|
|
250
262
|
*/
|
|
251
263
|
export function createCertificateChain(subject: string, cert_bytes_list: Uint8Array[]): Uint8Array;
|
|
252
264
|
|
|
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
265
|
/**
|
|
265
266
|
* Decode stored certificate bytes to a JS object.
|
|
266
267
|
*/
|
|
@@ -316,7 +317,6 @@ export interface InitOutput {
|
|
|
316
317
|
readonly anchors_computeTrustSet: (a: number) => [number, number, number];
|
|
317
318
|
readonly anchors_from_json: (a: number, b: number) => [number, number, number];
|
|
318
319
|
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
320
|
readonly decodeCertificate: (a: number, b: number) => [number, number, number];
|
|
321
321
|
readonly decodeZone: (a: number, b: number) => [number, number, number];
|
|
322
322
|
readonly hashSignableMessage: (a: number, b: number) => [number, number];
|
|
@@ -325,12 +325,13 @@ export interface InitOutput {
|
|
|
325
325
|
readonly lookup_new: (a: number, b: number) => [number, number, number];
|
|
326
326
|
readonly lookup_start: (a: number) => [number, number];
|
|
327
327
|
readonly message_from_bytes: (a: number, b: number) => [number, number, number];
|
|
328
|
+
readonly message_setSignature: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
328
329
|
readonly message_toBytes: (a: number) => [number, number];
|
|
329
330
|
readonly message_update: (a: number, b: any) => [number, number];
|
|
330
331
|
readonly messagebuilder_addCert: (a: number, b: number, c: number) => [number, number];
|
|
331
332
|
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];
|
|
333
|
+
readonly messagebuilder_addHandle: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
334
|
+
readonly messagebuilder_addRecords: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
334
335
|
readonly messagebuilder_addUpdate: (a: number, b: any) => [number, number];
|
|
335
336
|
readonly messagebuilder_build: (a: number, b: number, c: number) => [number, number, number];
|
|
336
337
|
readonly messagebuilder_chainProofRequest: (a: number) => [number, number, number];
|
|
@@ -338,10 +339,11 @@ export interface InitOutput {
|
|
|
338
339
|
readonly querycontext_addRequest: (a: number, b: number, c: number) => [number, number];
|
|
339
340
|
readonly querycontext_addZone: (a: number, b: number, c: number) => [number, number];
|
|
340
341
|
readonly querycontext_new: () => number;
|
|
342
|
+
readonly record_addr: (a: number, b: number, c: any) => any;
|
|
341
343
|
readonly record_blob: (a: number, b: number, c: number, d: number) => any;
|
|
342
344
|
readonly record_seq: (a: bigint) => any;
|
|
343
|
-
readonly
|
|
344
|
-
readonly
|
|
345
|
+
readonly record_sig: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
346
|
+
readonly record_txt: (a: number, b: number, c: any) => any;
|
|
345
347
|
readonly record_unknown: (a: number, b: number, c: number) => any;
|
|
346
348
|
readonly recordset_isEmpty: (a: number) => number;
|
|
347
349
|
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.
|
|
@@ -368,6 +392,17 @@ export class Record {
|
|
|
368
392
|
const ptr = this.__destroy_into_raw();
|
|
369
393
|
wasm.__wbg_record_free(ptr, 0);
|
|
370
394
|
}
|
|
395
|
+
/**
|
|
396
|
+
* @param {string} key
|
|
397
|
+
* @param {any} value
|
|
398
|
+
* @returns {any}
|
|
399
|
+
*/
|
|
400
|
+
static addr(key, value) {
|
|
401
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
402
|
+
const len0 = WASM_VECTOR_LEN;
|
|
403
|
+
const ret = wasm.record_addr(ptr0, len0, value);
|
|
404
|
+
return ret;
|
|
405
|
+
}
|
|
371
406
|
/**
|
|
372
407
|
* @param {string} key
|
|
373
408
|
* @param {Uint8Array} value
|
|
@@ -390,16 +425,19 @@ export class Record {
|
|
|
390
425
|
return ret;
|
|
391
426
|
}
|
|
392
427
|
/**
|
|
393
|
-
* @param {string}
|
|
394
|
-
* @param {string}
|
|
428
|
+
* @param {string} signer
|
|
429
|
+
* @param {string} rev
|
|
430
|
+
* @param {Uint8Array} sig
|
|
395
431
|
* @returns {any}
|
|
396
432
|
*/
|
|
397
|
-
static
|
|
398
|
-
const ptr0 = passStringToWasm0(
|
|
433
|
+
static sig(signer, rev, sig) {
|
|
434
|
+
const ptr0 = passStringToWasm0(signer, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
399
435
|
const len0 = WASM_VECTOR_LEN;
|
|
400
|
-
const ptr1 = passStringToWasm0(
|
|
436
|
+
const ptr1 = passStringToWasm0(rev, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
401
437
|
const len1 = WASM_VECTOR_LEN;
|
|
402
|
-
const
|
|
438
|
+
const ptr2 = passArray8ToWasm0(sig, wasm.__wbindgen_malloc);
|
|
439
|
+
const len2 = WASM_VECTOR_LEN;
|
|
440
|
+
const ret = wasm.record_sig(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
403
441
|
return ret;
|
|
404
442
|
}
|
|
405
443
|
/**
|
|
@@ -407,10 +445,10 @@ export class Record {
|
|
|
407
445
|
* @param {any} value
|
|
408
446
|
* @returns {any}
|
|
409
447
|
*/
|
|
410
|
-
static
|
|
448
|
+
static txt(key, value) {
|
|
411
449
|
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
412
450
|
const len0 = WASM_VECTOR_LEN;
|
|
413
|
-
const ret = wasm.
|
|
451
|
+
const ret = wasm.record_txt(ptr0, len0, value);
|
|
414
452
|
return ret;
|
|
415
453
|
}
|
|
416
454
|
/**
|
|
@@ -748,31 +786,6 @@ export function createCertificateChain(subject, cert_bytes_list) {
|
|
|
748
786
|
return v3;
|
|
749
787
|
}
|
|
750
788
|
|
|
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
789
|
/**
|
|
777
790
|
* Decode stored certificate bytes to a JS object.
|
|
778
791
|
* @param {Uint8Array} bytes
|
|
@@ -888,50 +901,55 @@ export function zoneToBytes(zone) {
|
|
|
888
901
|
function __wbg_get_imports() {
|
|
889
902
|
const import0 = {
|
|
890
903
|
__proto__: null,
|
|
891
|
-
|
|
904
|
+
__wbg_Error_7c536b7a8123d334: function(arg0, arg1) {
|
|
892
905
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
893
906
|
return ret;
|
|
894
907
|
},
|
|
895
|
-
|
|
908
|
+
__wbg___wbindgen_bigint_get_as_i64_3d66614a210167c9: function(arg0, arg1) {
|
|
896
909
|
const v = arg1;
|
|
897
910
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
898
911
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
899
912
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
900
913
|
},
|
|
901
|
-
|
|
914
|
+
__wbg___wbindgen_boolean_get_6abe7d340f528f63: function(arg0) {
|
|
915
|
+
const v = arg0;
|
|
916
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
917
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
918
|
+
},
|
|
919
|
+
__wbg___wbindgen_debug_string_8baecc377ad92880: function(arg0, arg1) {
|
|
902
920
|
const ret = debugString(arg1);
|
|
903
921
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
904
922
|
const len1 = WASM_VECTOR_LEN;
|
|
905
923
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
906
924
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
907
925
|
},
|
|
908
|
-
|
|
926
|
+
__wbg___wbindgen_is_bigint_4393a1b8e13fdf64: function(arg0) {
|
|
909
927
|
const ret = typeof(arg0) === 'bigint';
|
|
910
928
|
return ret;
|
|
911
929
|
},
|
|
912
|
-
|
|
930
|
+
__wbg___wbindgen_is_null_77356bc8da6bb199: function(arg0) {
|
|
913
931
|
const ret = arg0 === null;
|
|
914
932
|
return ret;
|
|
915
933
|
},
|
|
916
|
-
|
|
934
|
+
__wbg___wbindgen_is_string_3db04af369717583: function(arg0) {
|
|
917
935
|
const ret = typeof(arg0) === 'string';
|
|
918
936
|
return ret;
|
|
919
937
|
},
|
|
920
|
-
|
|
938
|
+
__wbg___wbindgen_is_undefined_5957b329897cc39c: function(arg0) {
|
|
921
939
|
const ret = arg0 === undefined;
|
|
922
940
|
return ret;
|
|
923
941
|
},
|
|
924
|
-
|
|
942
|
+
__wbg___wbindgen_jsval_eq_8d2fb89b36afbec9: function(arg0, arg1) {
|
|
925
943
|
const ret = arg0 === arg1;
|
|
926
944
|
return ret;
|
|
927
945
|
},
|
|
928
|
-
|
|
946
|
+
__wbg___wbindgen_number_get_4fcba947d278ad7c: function(arg0, arg1) {
|
|
929
947
|
const obj = arg1;
|
|
930
948
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
931
949
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
932
950
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
933
951
|
},
|
|
934
|
-
|
|
952
|
+
__wbg___wbindgen_string_get_ae6081df8158aa73: function(arg0, arg1) {
|
|
935
953
|
const obj = arg1;
|
|
936
954
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
937
955
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -939,72 +957,72 @@ function __wbg_get_imports() {
|
|
|
939
957
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
940
958
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
941
959
|
},
|
|
942
|
-
|
|
960
|
+
__wbg___wbindgen_throw_bd5a70920abf0236: function(arg0, arg1) {
|
|
943
961
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
944
962
|
},
|
|
945
|
-
|
|
963
|
+
__wbg_from_7bbac5c419024362: function(arg0) {
|
|
946
964
|
const ret = Array.from(arg0);
|
|
947
965
|
return ret;
|
|
948
966
|
},
|
|
949
|
-
|
|
950
|
-
const ret = Reflect.get(arg0, arg1);
|
|
951
|
-
return ret;
|
|
952
|
-
}, arguments); },
|
|
953
|
-
__wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
|
|
967
|
+
__wbg_get_8944f33c9c7f4f6c: function(arg0, arg1) {
|
|
954
968
|
const ret = arg0[arg1 >>> 0];
|
|
955
969
|
return ret;
|
|
956
970
|
},
|
|
957
|
-
|
|
971
|
+
__wbg_get_d8a3d51a73d14c8a: function() { return handleError(function (arg0, arg1) {
|
|
972
|
+
const ret = Reflect.get(arg0, arg1);
|
|
973
|
+
return ret;
|
|
974
|
+
}, arguments); },
|
|
975
|
+
__wbg_isArray_8dc932f4b6997756: function(arg0) {
|
|
958
976
|
const ret = Array.isArray(arg0);
|
|
959
977
|
return ret;
|
|
960
978
|
},
|
|
961
|
-
|
|
979
|
+
__wbg_length_090b6aa6235450ba: function(arg0) {
|
|
962
980
|
const ret = arg0.length;
|
|
963
981
|
return ret;
|
|
964
982
|
},
|
|
965
|
-
|
|
983
|
+
__wbg_length_713cc1160ce7b5b9: function(arg0) {
|
|
966
984
|
const ret = arg0.length;
|
|
967
985
|
return ret;
|
|
968
986
|
},
|
|
969
|
-
|
|
987
|
+
__wbg_message_new: function(arg0) {
|
|
988
|
+
const ret = Message.__wrap(arg0);
|
|
989
|
+
return ret;
|
|
990
|
+
},
|
|
991
|
+
__wbg_new_480195ddf7042529: function() {
|
|
970
992
|
const ret = new Array();
|
|
971
993
|
return ret;
|
|
972
994
|
},
|
|
973
|
-
|
|
995
|
+
__wbg_new_e4597c3f125a2038: function() {
|
|
974
996
|
const ret = new Object();
|
|
975
997
|
return ret;
|
|
976
998
|
},
|
|
977
|
-
|
|
999
|
+
__wbg_new_from_slice_2733a138cec5cdcf: function(arg0, arg1) {
|
|
978
1000
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
979
1001
|
return ret;
|
|
980
1002
|
},
|
|
981
|
-
|
|
1003
|
+
__wbg_new_with_length_a90559ebda3954f8: function(arg0) {
|
|
982
1004
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
983
1005
|
return ret;
|
|
984
1006
|
},
|
|
985
|
-
|
|
986
|
-
const ret = Array.of(arg0);
|
|
987
|
-
return ret;
|
|
988
|
-
},
|
|
989
|
-
__wbg_parse_e9eddd2a82c706eb: function() { return handleError(function (arg0, arg1) {
|
|
1007
|
+
__wbg_parse_2175931f70ae0fe2: function() { return handleError(function (arg0, arg1) {
|
|
990
1008
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
991
1009
|
return ret;
|
|
992
1010
|
}, arguments); },
|
|
993
|
-
|
|
1011
|
+
__wbg_prototypesetcall_7dca54d31cb9d2dc: function(arg0, arg1, arg2) {
|
|
994
1012
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
995
1013
|
},
|
|
996
|
-
|
|
1014
|
+
__wbg_push_bb0def92a641d074: function(arg0, arg1) {
|
|
997
1015
|
const ret = arg0.push(arg1);
|
|
998
1016
|
return ret;
|
|
999
1017
|
},
|
|
1000
|
-
|
|
1018
|
+
__wbg_set_05b085c909633819: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1001
1019
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1002
1020
|
return ret;
|
|
1003
1021
|
}, arguments); },
|
|
1004
|
-
|
|
1022
|
+
__wbg_set_dd6f99ffb0ba908d: function(arg0, arg1, arg2) {
|
|
1005
1023
|
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
1006
1024
|
},
|
|
1007
|
-
|
|
1025
|
+
__wbg_stringify_c3d7897996042de9: function() { return handleError(function (arg0) {
|
|
1008
1026
|
const ret = JSON.stringify(arg0);
|
|
1009
1027
|
return ret;
|
|
1010
1028
|
}, arguments); },
|
package/libveritas_bg.wasm
CHANGED
|
Binary file
|