tkms 0.15.0-0 → 0.15.0-1
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/kms_lib.d.ts +12 -12
- package/kms_lib.js +69 -65
- package/kms_lib_bg.wasm +0 -0
- package/package.json +1 -1
package/kms_lib.d.ts
CHANGED
|
@@ -97,10 +97,6 @@ export class TypedCiphertext {
|
|
|
97
97
|
* CiphertextFormat::default() is used if unspecified.
|
|
98
98
|
*/
|
|
99
99
|
ciphertext_format: number;
|
|
100
|
-
/**
|
|
101
|
-
* The actual ciphertext to decrypt, taken directly from fhevm.
|
|
102
|
-
*/
|
|
103
|
-
ciphertext: Uint8Array;
|
|
104
100
|
/**
|
|
105
101
|
* The external handle of the ciphertext (the handle used in the copro).
|
|
106
102
|
*/
|
|
@@ -110,6 +106,10 @@ export class TypedCiphertext {
|
|
|
110
106
|
* <https://github.com/zama-ai/tfhe-rs/blob/main/tfhe/src/high_level_api/mod.rs>
|
|
111
107
|
*/
|
|
112
108
|
fhe_type: number;
|
|
109
|
+
/**
|
|
110
|
+
* The actual ciphertext to decrypt, taken directly from fhevm.
|
|
111
|
+
*/
|
|
112
|
+
ciphertext: Uint8Array;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
export class TypedPlaintext {
|
|
@@ -461,9 +461,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
461
461
|
|
|
462
462
|
export interface InitOutput {
|
|
463
463
|
readonly memory: WebAssembly.Memory;
|
|
464
|
-
readonly __wbg_ciphertexthandle_free: (a: number, b: number) => void;
|
|
465
|
-
readonly __wbg_parseduserdecryptionrequest_free: (a: number, b: number) => void;
|
|
466
|
-
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
467
464
|
readonly __wbg_privateenckeymlkem512_free: (a: number, b: number) => void;
|
|
468
465
|
readonly __wbg_publicenckeymlkem512_free: (a: number, b: number) => void;
|
|
469
466
|
readonly __wbg_serveridaddr_free: (a: number, b: number) => void;
|
|
@@ -489,17 +486,21 @@ export interface InitOutput {
|
|
|
489
486
|
readonly u8vec_to_public_sig_key: (a: number, b: number) => [number, number, number];
|
|
490
487
|
readonly __wbg_privatesigkey_free: (a: number, b: number) => void;
|
|
491
488
|
readonly __wbg_publicsigkey_free: (a: number, b: number) => void;
|
|
489
|
+
readonly __wbg_ciphertexthandle_free: (a: number, b: number) => void;
|
|
490
|
+
readonly __wbg_parseduserdecryptionrequest_free: (a: number, b: number) => void;
|
|
491
|
+
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
492
492
|
readonly __wbg_eip712domainmsg_free: (a: number, b: number) => void;
|
|
493
493
|
readonly __wbg_get_eip712domainmsg_chain_id: (a: number) => [number, number];
|
|
494
494
|
readonly __wbg_get_eip712domainmsg_name: (a: number) => [number, number];
|
|
495
495
|
readonly __wbg_get_eip712domainmsg_salt: (a: number) => [number, number];
|
|
496
496
|
readonly __wbg_get_eip712domainmsg_verifying_contract: (a: number) => [number, number];
|
|
497
497
|
readonly __wbg_get_eip712domainmsg_version: (a: number) => [number, number];
|
|
498
|
-
readonly __wbg_get_typedciphertext_ciphertext: (a: number) => [number, number];
|
|
499
498
|
readonly __wbg_get_typedciphertext_ciphertext_format: (a: number) => number;
|
|
500
499
|
readonly __wbg_get_typedciphertext_external_handle: (a: number) => [number, number];
|
|
501
500
|
readonly __wbg_get_typedciphertext_fhe_type: (a: number) => number;
|
|
502
501
|
readonly __wbg_get_typedplaintext_fhe_type: (a: number) => number;
|
|
502
|
+
readonly __wbg_get_typedsigncryptedciphertext_external_handle: (a: number) => [number, number];
|
|
503
|
+
readonly __wbg_get_typedsigncryptedciphertext_fhe_type: (a: number) => number;
|
|
503
504
|
readonly __wbg_get_userdecryptionrequest_context_id: (a: number) => number;
|
|
504
505
|
readonly __wbg_get_userdecryptionrequest_domain: (a: number) => number;
|
|
505
506
|
readonly __wbg_get_userdecryptionrequest_epoch_id: (a: number) => number;
|
|
@@ -522,6 +523,7 @@ export interface InitOutput {
|
|
|
522
523
|
readonly __wbg_set_typedciphertext_ciphertext_format: (a: number, b: number) => void;
|
|
523
524
|
readonly __wbg_set_typedciphertext_fhe_type: (a: number, b: number) => void;
|
|
524
525
|
readonly __wbg_set_typedplaintext_fhe_type: (a: number, b: number) => void;
|
|
526
|
+
readonly __wbg_set_typedsigncryptedciphertext_fhe_type: (a: number, b: number) => void;
|
|
525
527
|
readonly __wbg_set_userdecryptionrequest_context_id: (a: number, b: number) => void;
|
|
526
528
|
readonly __wbg_set_userdecryptionrequest_domain: (a: number, b: number) => void;
|
|
527
529
|
readonly __wbg_set_userdecryptionrequest_epoch_id: (a: number, b: number) => void;
|
|
@@ -544,13 +546,10 @@ export interface InitOutput {
|
|
|
544
546
|
readonly __wbg_get_requestid_request_id: (a: number) => [number, number];
|
|
545
547
|
readonly __wbg_get_userdecryptionrequest_client_address: (a: number) => [number, number];
|
|
546
548
|
readonly __wbg_get_typedsignature_scheme: (a: number) => number;
|
|
547
|
-
readonly __wbg_get_typedsigncryptedciphertext_fhe_type: (a: number) => number;
|
|
548
549
|
readonly __wbg_get_typedsigncryptedciphertext_packing_factor: (a: number) => number;
|
|
549
550
|
readonly __wbg_set_typedsignature_scheme: (a: number, b: number) => void;
|
|
550
|
-
readonly __wbg_set_typedsigncryptedciphertext_fhe_type: (a: number, b: number) => void;
|
|
551
551
|
readonly __wbg_set_typedsigncryptedciphertext_packing_factor: (a: number, b: number) => void;
|
|
552
552
|
readonly __wbg_set_requestid_request_id: (a: number, b: number, c: number) => void;
|
|
553
|
-
readonly __wbg_set_typedciphertext_ciphertext: (a: number, b: number, c: number) => void;
|
|
554
553
|
readonly __wbg_set_typedciphertext_external_handle: (a: number, b: number, c: number) => void;
|
|
555
554
|
readonly __wbg_set_typedplaintext_bytes: (a: number, b: number, c: number) => void;
|
|
556
555
|
readonly __wbg_set_typedsignature_signature: (a: number, b: number, c: number) => void;
|
|
@@ -566,7 +565,6 @@ export interface InitOutput {
|
|
|
566
565
|
readonly __wbg_set_userdecryptionresponsepayload_verification_key: (a: number, b: number, c: number) => void;
|
|
567
566
|
readonly __wbg_get_typedplaintext_bytes: (a: number) => [number, number];
|
|
568
567
|
readonly __wbg_get_typedsignature_signature: (a: number) => [number, number];
|
|
569
|
-
readonly __wbg_get_typedsigncryptedciphertext_external_handle: (a: number) => [number, number];
|
|
570
568
|
readonly __wbg_get_typedsigncryptedciphertext_signcrypted_ciphertext: (a: number) => [number, number];
|
|
571
569
|
readonly __wbg_get_userdecryptionrequest_enc_key: (a: number) => [number, number];
|
|
572
570
|
readonly __wbg_get_userdecryptionresponse_external_signature: (a: number) => [number, number];
|
|
@@ -574,6 +572,8 @@ export interface InitOutput {
|
|
|
574
572
|
readonly __wbg_get_userdecryptionresponse_signature: (a: number) => [number, number];
|
|
575
573
|
readonly __wbg_get_userdecryptionresponsepayload_digest: (a: number) => [number, number];
|
|
576
574
|
readonly __wbg_get_userdecryptionresponsepayload_verification_key: (a: number) => [number, number];
|
|
575
|
+
readonly typedciphertext_ciphertext: (a: number) => [number, number];
|
|
576
|
+
readonly typedciphertext_set_ciphertext: (a: number, b: number, c: number) => void;
|
|
577
577
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
578
578
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
579
579
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/kms_lib.js
CHANGED
|
@@ -375,16 +375,6 @@ export class TypedCiphertext {
|
|
|
375
375
|
const ret = wasm.__wbg_get_typedciphertext_ciphertext_format(this.__wbg_ptr);
|
|
376
376
|
return ret;
|
|
377
377
|
}
|
|
378
|
-
/**
|
|
379
|
-
* The actual ciphertext to decrypt, taken directly from fhevm.
|
|
380
|
-
* @returns {Uint8Array}
|
|
381
|
-
*/
|
|
382
|
-
get ciphertext() {
|
|
383
|
-
const ret = wasm.__wbg_get_typedciphertext_ciphertext(this.__wbg_ptr);
|
|
384
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
385
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
386
|
-
return v1;
|
|
387
|
-
}
|
|
388
378
|
/**
|
|
389
379
|
* The external handle of the ciphertext (the handle used in the copro).
|
|
390
380
|
* @returns {Uint8Array}
|
|
@@ -412,15 +402,6 @@ export class TypedCiphertext {
|
|
|
412
402
|
set ciphertext_format(arg0) {
|
|
413
403
|
wasm.__wbg_set_typedciphertext_ciphertext_format(this.__wbg_ptr, arg0);
|
|
414
404
|
}
|
|
415
|
-
/**
|
|
416
|
-
* The actual ciphertext to decrypt, taken directly from fhevm.
|
|
417
|
-
* @param {Uint8Array} arg0
|
|
418
|
-
*/
|
|
419
|
-
set ciphertext(arg0) {
|
|
420
|
-
const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
421
|
-
const len0 = WASM_VECTOR_LEN;
|
|
422
|
-
wasm.__wbg_set_typedciphertext_ciphertext(this.__wbg_ptr, ptr0, len0);
|
|
423
|
-
}
|
|
424
405
|
/**
|
|
425
406
|
* The external handle of the ciphertext (the handle used in the copro).
|
|
426
407
|
* @param {Uint8Array} arg0
|
|
@@ -438,6 +419,25 @@ export class TypedCiphertext {
|
|
|
438
419
|
set fhe_type(arg0) {
|
|
439
420
|
wasm.__wbg_set_typedciphertext_fhe_type(this.__wbg_ptr, arg0);
|
|
440
421
|
}
|
|
422
|
+
/**
|
|
423
|
+
* The actual ciphertext to decrypt, taken directly from fhevm.
|
|
424
|
+
* @returns {Uint8Array}
|
|
425
|
+
*/
|
|
426
|
+
get ciphertext() {
|
|
427
|
+
const ret = wasm.typedciphertext_ciphertext(this.__wbg_ptr);
|
|
428
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
429
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
430
|
+
return v1;
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* Replaces the ciphertext bytes.
|
|
434
|
+
* @param {Uint8Array} ciphertext
|
|
435
|
+
*/
|
|
436
|
+
set ciphertext(ciphertext) {
|
|
437
|
+
const ptr0 = passArray8ToWasm0(ciphertext, wasm.__wbindgen_malloc);
|
|
438
|
+
const len0 = WASM_VECTOR_LEN;
|
|
439
|
+
wasm.typedciphertext_set_ciphertext(this.__wbg_ptr, ptr0, len0);
|
|
440
|
+
}
|
|
441
441
|
}
|
|
442
442
|
if (Symbol.dispose) TypedCiphertext.prototype[Symbol.dispose] = TypedCiphertext.prototype.free;
|
|
443
443
|
|
|
@@ -774,7 +774,7 @@ export class UserDecryptionRequest {
|
|
|
774
774
|
*/
|
|
775
775
|
get typed_ciphertexts() {
|
|
776
776
|
const ret = wasm.__wbg_get_userdecryptionrequest_typed_ciphertexts(this.__wbg_ptr);
|
|
777
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1])
|
|
777
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
778
778
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
779
779
|
return v1;
|
|
780
780
|
}
|
|
@@ -961,7 +961,7 @@ export class UserDecryptionResponse {
|
|
|
961
961
|
*/
|
|
962
962
|
get signatures() {
|
|
963
963
|
const ret = wasm.__wbg_get_userdecryptionresponse_signatures(this.__wbg_ptr);
|
|
964
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1])
|
|
964
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
965
965
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
966
966
|
return v1;
|
|
967
967
|
}
|
|
@@ -1083,7 +1083,7 @@ export class UserDecryptionResponsePayload {
|
|
|
1083
1083
|
*/
|
|
1084
1084
|
get signcrypted_ciphertexts() {
|
|
1085
1085
|
const ret = wasm.__wbg_get_userdecryptionresponsepayload_signcrypted_ciphertexts(this.__wbg_ptr);
|
|
1086
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1])
|
|
1086
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
1087
1087
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1088
1088
|
return v1;
|
|
1089
1089
|
}
|
|
@@ -1185,7 +1185,7 @@ export function get_client_secret_key(client) {
|
|
|
1185
1185
|
export function get_server_addrs(client) {
|
|
1186
1186
|
_assertClass(client, Client);
|
|
1187
1187
|
const ret = wasm.get_server_addrs(client.__wbg_ptr);
|
|
1188
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1])
|
|
1188
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
1189
1189
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1190
1190
|
return v1;
|
|
1191
1191
|
}
|
|
@@ -1434,7 +1434,7 @@ export function process_user_decryption_resp_from_js(client, request, eip712_dom
|
|
|
1434
1434
|
if (ret[3]) {
|
|
1435
1435
|
throw takeFromExternrefTable0(ret[2]);
|
|
1436
1436
|
}
|
|
1437
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1])
|
|
1437
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
1438
1438
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1439
1439
|
return v1;
|
|
1440
1440
|
}
|
|
@@ -1509,11 +1509,11 @@ export function u8vec_to_public_sig_key(v) {
|
|
|
1509
1509
|
function __wbg_get_imports() {
|
|
1510
1510
|
const import0 = {
|
|
1511
1511
|
__proto__: null,
|
|
1512
|
-
|
|
1512
|
+
__wbg_Error_408e67f47ca7b58b: function(arg0, arg1) {
|
|
1513
1513
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
1514
1514
|
return ret;
|
|
1515
1515
|
},
|
|
1516
|
-
|
|
1516
|
+
__wbg_Number_3890faa6d3ff057d: function(arg0) {
|
|
1517
1517
|
const ret = Number(arg0);
|
|
1518
1518
|
return ret;
|
|
1519
1519
|
},
|
|
@@ -1524,54 +1524,54 @@ function __wbg_get_imports() {
|
|
|
1524
1524
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1525
1525
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1526
1526
|
},
|
|
1527
|
-
|
|
1527
|
+
__wbg___wbindgen_boolean_get_c9c83ebd41b34df3: function(arg0) {
|
|
1528
1528
|
const v = arg0;
|
|
1529
1529
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
1530
1530
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1531
1531
|
},
|
|
1532
|
-
|
|
1532
|
+
__wbg___wbindgen_debug_string_a57024b9c6e4a48b: function(arg0, arg1) {
|
|
1533
1533
|
const ret = debugString(arg1);
|
|
1534
1534
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1535
1535
|
const len1 = WASM_VECTOR_LEN;
|
|
1536
1536
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1537
1537
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1538
1538
|
},
|
|
1539
|
-
|
|
1539
|
+
__wbg___wbindgen_in_ac983077f137f2e6: function(arg0, arg1) {
|
|
1540
1540
|
const ret = arg0 in arg1;
|
|
1541
1541
|
return ret;
|
|
1542
1542
|
},
|
|
1543
|
-
|
|
1543
|
+
__wbg___wbindgen_is_function_5e4570eb24ffa122: function(arg0) {
|
|
1544
1544
|
const ret = typeof(arg0) === 'function';
|
|
1545
1545
|
return ret;
|
|
1546
1546
|
},
|
|
1547
|
-
|
|
1547
|
+
__wbg___wbindgen_is_null_7d13f41e1a2d5140: function(arg0) {
|
|
1548
1548
|
const ret = arg0 === null;
|
|
1549
1549
|
return ret;
|
|
1550
1550
|
},
|
|
1551
|
-
|
|
1551
|
+
__wbg___wbindgen_is_object_a2790eb24c211ea0: function(arg0) {
|
|
1552
1552
|
const val = arg0;
|
|
1553
1553
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1554
1554
|
return ret;
|
|
1555
1555
|
},
|
|
1556
|
-
|
|
1556
|
+
__wbg___wbindgen_is_string_e6f02f0ea5f20a32: function(arg0) {
|
|
1557
1557
|
const ret = typeof(arg0) === 'string';
|
|
1558
1558
|
return ret;
|
|
1559
1559
|
},
|
|
1560
|
-
|
|
1560
|
+
__wbg___wbindgen_is_undefined_6cff064c44e0d823: function(arg0) {
|
|
1561
1561
|
const ret = arg0 === undefined;
|
|
1562
1562
|
return ret;
|
|
1563
1563
|
},
|
|
1564
|
-
|
|
1564
|
+
__wbg___wbindgen_jsval_loose_eq_acf2776254a8d832: function(arg0, arg1) {
|
|
1565
1565
|
const ret = arg0 == arg1;
|
|
1566
1566
|
return ret;
|
|
1567
1567
|
},
|
|
1568
|
-
|
|
1568
|
+
__wbg___wbindgen_number_get_136b9679cab35cfb: function(arg0, arg1) {
|
|
1569
1569
|
const obj = arg1;
|
|
1570
1570
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1571
1571
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1572
1572
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1573
1573
|
},
|
|
1574
|
-
|
|
1574
|
+
__wbg___wbindgen_string_get_d154f1e671052120: function(arg0, arg1) {
|
|
1575
1575
|
const obj = arg1;
|
|
1576
1576
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1577
1577
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1579,26 +1579,26 @@ function __wbg_get_imports() {
|
|
|
1579
1579
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1580
1580
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1581
1581
|
},
|
|
1582
|
-
|
|
1582
|
+
__wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
|
|
1583
1583
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1584
1584
|
},
|
|
1585
|
-
|
|
1586
|
-
const ret = arg0.call(arg1
|
|
1585
|
+
__wbg_call_1c5886ab9c57d1c7: function() { return handleError(function (arg0, arg1) {
|
|
1586
|
+
const ret = arg0.call(arg1);
|
|
1587
1587
|
return ret;
|
|
1588
1588
|
}, arguments); },
|
|
1589
|
-
|
|
1590
|
-
const ret = arg0.call(arg1);
|
|
1589
|
+
__wbg_call_35dba3c747ad7521: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1590
|
+
const ret = arg0.call(arg1, arg2);
|
|
1591
1591
|
return ret;
|
|
1592
1592
|
}, arguments); },
|
|
1593
1593
|
__wbg_crypto_38df2bab126b63dc: function(arg0) {
|
|
1594
1594
|
const ret = arg0.crypto;
|
|
1595
1595
|
return ret;
|
|
1596
1596
|
},
|
|
1597
|
-
|
|
1597
|
+
__wbg_done_669171204c3dcae2: function(arg0) {
|
|
1598
1598
|
const ret = arg0.done;
|
|
1599
1599
|
return ret;
|
|
1600
1600
|
},
|
|
1601
|
-
|
|
1601
|
+
__wbg_error_757e9472f8410341: function(arg0, arg1) {
|
|
1602
1602
|
let deferred0_0;
|
|
1603
1603
|
let deferred0_1;
|
|
1604
1604
|
try {
|
|
@@ -1612,11 +1612,11 @@ function __wbg_get_imports() {
|
|
|
1612
1612
|
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
1613
1613
|
arg0.getRandomValues(arg1);
|
|
1614
1614
|
}, arguments); },
|
|
1615
|
-
|
|
1615
|
+
__wbg_get_d173c0308df22d37: function() { return handleError(function (arg0, arg1) {
|
|
1616
1616
|
const ret = Reflect.get(arg0, arg1);
|
|
1617
1617
|
return ret;
|
|
1618
1618
|
}, arguments); },
|
|
1619
|
-
|
|
1619
|
+
__wbg_get_unchecked_e20b893aeafc3fca: function(arg0, arg1) {
|
|
1620
1620
|
const ret = arg0[arg1 >>> 0];
|
|
1621
1621
|
return ret;
|
|
1622
1622
|
},
|
|
@@ -1624,7 +1624,7 @@ function __wbg_get_imports() {
|
|
|
1624
1624
|
const ret = arg0[arg1];
|
|
1625
1625
|
return ret;
|
|
1626
1626
|
},
|
|
1627
|
-
|
|
1627
|
+
__wbg_instanceof_ArrayBuffer_993d02d2d254cad1: function(arg0) {
|
|
1628
1628
|
let result;
|
|
1629
1629
|
try {
|
|
1630
1630
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1634,7 +1634,7 @@ function __wbg_get_imports() {
|
|
|
1634
1634
|
const ret = result;
|
|
1635
1635
|
return ret;
|
|
1636
1636
|
},
|
|
1637
|
-
|
|
1637
|
+
__wbg_instanceof_Uint8Array_f935dbb0aa7cdeed: function(arg0) {
|
|
1638
1638
|
let result;
|
|
1639
1639
|
try {
|
|
1640
1640
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1644,23 +1644,23 @@ function __wbg_get_imports() {
|
|
|
1644
1644
|
const ret = result;
|
|
1645
1645
|
return ret;
|
|
1646
1646
|
},
|
|
1647
|
-
|
|
1647
|
+
__wbg_isArray_6339f732981044bf: function(arg0) {
|
|
1648
1648
|
const ret = Array.isArray(arg0);
|
|
1649
1649
|
return ret;
|
|
1650
1650
|
},
|
|
1651
|
-
|
|
1651
|
+
__wbg_isSafeInteger_f3d6cd19ccfe4512: function(arg0) {
|
|
1652
1652
|
const ret = Number.isSafeInteger(arg0);
|
|
1653
1653
|
return ret;
|
|
1654
1654
|
},
|
|
1655
|
-
|
|
1655
|
+
__wbg_iterator_5cebbb86e33c6dd6: function() {
|
|
1656
1656
|
const ret = Symbol.iterator;
|
|
1657
1657
|
return ret;
|
|
1658
1658
|
},
|
|
1659
|
-
|
|
1659
|
+
__wbg_length_36bd29c6848c2144: function(arg0) {
|
|
1660
1660
|
const ret = arg0.length;
|
|
1661
1661
|
return ret;
|
|
1662
1662
|
},
|
|
1663
|
-
|
|
1663
|
+
__wbg_length_ecfa2c63d3d0d82c: function(arg0) {
|
|
1664
1664
|
const ret = arg0.length;
|
|
1665
1665
|
return ret;
|
|
1666
1666
|
},
|
|
@@ -1672,19 +1672,19 @@ function __wbg_get_imports() {
|
|
|
1672
1672
|
const ret = new Error();
|
|
1673
1673
|
return ret;
|
|
1674
1674
|
},
|
|
1675
|
-
|
|
1675
|
+
__wbg_new_77cc4f4f472aeb81: function(arg0) {
|
|
1676
1676
|
const ret = new Uint8Array(arg0);
|
|
1677
1677
|
return ret;
|
|
1678
1678
|
},
|
|
1679
|
-
|
|
1679
|
+
__wbg_new_with_length_3ffc1c56427c525c: function(arg0) {
|
|
1680
1680
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1681
1681
|
return ret;
|
|
1682
1682
|
},
|
|
1683
|
-
|
|
1683
|
+
__wbg_next_42cf16ee0dafc9e2: function() { return handleError(function (arg0) {
|
|
1684
1684
|
const ret = arg0.next();
|
|
1685
1685
|
return ret;
|
|
1686
1686
|
}, arguments); },
|
|
1687
|
-
|
|
1687
|
+
__wbg_next_8f26b64fa5e9f64b: function(arg0) {
|
|
1688
1688
|
const ret = arg0.next;
|
|
1689
1689
|
return ret;
|
|
1690
1690
|
},
|
|
@@ -1696,7 +1696,7 @@ function __wbg_get_imports() {
|
|
|
1696
1696
|
const ret = arg0.process;
|
|
1697
1697
|
return ret;
|
|
1698
1698
|
},
|
|
1699
|
-
|
|
1699
|
+
__wbg_prototypesetcall_de8e0d9553586985: function(arg0, arg1, arg2) {
|
|
1700
1700
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1701
1701
|
},
|
|
1702
1702
|
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
@@ -1721,23 +1721,23 @@ function __wbg_get_imports() {
|
|
|
1721
1721
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1722
1722
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1723
1723
|
},
|
|
1724
|
-
|
|
1724
|
+
__wbg_static_accessor_GLOBAL_THIS_466428f93b4eaa76: function() {
|
|
1725
1725
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1726
1726
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1727
1727
|
},
|
|
1728
|
-
|
|
1728
|
+
__wbg_static_accessor_GLOBAL_c7aea38d4de089bc: function() {
|
|
1729
1729
|
const ret = typeof global === 'undefined' ? null : global;
|
|
1730
1730
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1731
1731
|
},
|
|
1732
|
-
|
|
1732
|
+
__wbg_static_accessor_SELF_42d4fae05e59267a: function() {
|
|
1733
1733
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1734
1734
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1735
1735
|
},
|
|
1736
|
-
|
|
1736
|
+
__wbg_static_accessor_WINDOW_e0db14a0eba6a812: function() {
|
|
1737
1737
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1738
1738
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1739
1739
|
},
|
|
1740
|
-
|
|
1740
|
+
__wbg_subarray_a4cc58201c7359fd: function(arg0, arg1, arg2) {
|
|
1741
1741
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1742
1742
|
return ret;
|
|
1743
1743
|
},
|
|
@@ -1769,7 +1769,7 @@ function __wbg_get_imports() {
|
|
|
1769
1769
|
const ret = TypedSigncryptedCiphertext.__unwrap(arg0);
|
|
1770
1770
|
return ret;
|
|
1771
1771
|
},
|
|
1772
|
-
|
|
1772
|
+
__wbg_value_1e2369fab29b420e: function(arg0) {
|
|
1773
1773
|
const ret = arg0.value;
|
|
1774
1774
|
return ret;
|
|
1775
1775
|
},
|
|
@@ -2113,11 +2113,15 @@ function __wbg_finalize_init(instance, module) {
|
|
|
2113
2113
|
|
|
2114
2114
|
async function __wbg_load(module, imports) {
|
|
2115
2115
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
2116
|
+
if (!module.ok) {
|
|
2117
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2116
2120
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
2117
2121
|
try {
|
|
2118
2122
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
2119
2123
|
} catch (e) {
|
|
2120
|
-
const validResponse =
|
|
2124
|
+
const validResponse = expectedResponseType(module.type);
|
|
2121
2125
|
|
|
2122
2126
|
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
2123
2127
|
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
package/kms_lib_bg.wasm
CHANGED
|
Binary file
|