@seams/wallet 0.30.0 → 0.33.0

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.
Files changed (100) hide show
  1. package/README.md +7 -7
  2. package/THIRD_PARTY_NOTICES.md +1 -127
  3. package/dist/.build-inputs.sha256 +1 -1
  4. package/dist/esm/SeamsWeb/walletIframe/host/ui/auth-menu/AuthMenuFooter.js +38 -10
  5. package/dist/esm/SeamsWeb/walletIframe/host/ui/auth-menu/AuthMenuSurface.js +23 -67
  6. package/dist/esm/SeamsWeb/walletIframe/host/ui/auth-menu/RecoveryOptions.js +60 -0
  7. package/dist/esm/SeamsWeb/walletIframe/host/ui/auth-menu/mountAuthMenuSurface.js +6 -0
  8. package/dist/esm/SeamsWeb/walletIframe/shared/authMenuPresentation.js +28 -0
  9. package/dist/esm/SeamsWeb/walletIframe/shared/messages.js +21 -10
  10. package/dist/esm/SeamsWeb/walletIframe/shared/walletAlternatives.js +4 -14
  11. package/dist/esm/core/ui/walletIcon.js +11 -3
  12. package/dist/esm/externalNear/controller.js +3 -2
  13. package/dist/esm/externalNear/meteor.js +1 -1
  14. package/dist/esm/externalNear/meteorRequest.js +8 -2
  15. package/dist/esm/react/components/HostedSeamsAuthMenu/shell.js +17 -1
  16. package/dist/esm/sdk/{host-Csu5L7VF.js → host-BsVFOugh.js} +1 -1
  17. package/dist/esm/sdk/ownerNearOperation-BsIdSH0C.js +1 -0
  18. package/dist/esm/sdk/registration-Coh0_Nva.js +1 -0
  19. package/dist/esm/sdk/router_ab_ed25519_yao_client_bg.wasm +0 -0
  20. package/dist/esm/sdk/runtime-auth-CJCU2yJi.js +1 -0
  21. package/dist/esm/sdk/{runtime-device-link-DQe0aqRi.js → runtime-device-link-C0oXLSnz.js} +1 -1
  22. package/dist/esm/sdk/{runtime-ecdsa-tempo-DKkeMMpm.js → runtime-ecdsa-tempo-BC8u9NuI.js} +1 -1
  23. package/dist/esm/sdk/{runtime-email-otp-CzTe7r9I.js → runtime-email-otp-Cl4iu0z7.js} +1 -1
  24. package/dist/esm/sdk/{runtime-export-BiyLbdCe.js → runtime-export-BdhfErGJ.js} +1 -1
  25. package/dist/esm/sdk/{runtime-near-Kk0n1FSf.js → runtime-near-CT2ALBct.js} +1 -1
  26. package/dist/esm/sdk/{runtime-preferences-B-A3hddU.js → runtime-preferences-fN2G9tct.js} +1 -1
  27. package/dist/esm/sdk/{runtime-recovery-C9p1TU1w.js → runtime-recovery-n-TGLkwz.js} +1 -1
  28. package/dist/esm/sdk/{runtimeContext-ChuvOC0h.js → runtimeContext-DI28d8Qu.js} +1 -1
  29. package/dist/esm/sdk/wallet-iframe-host-ecdsa.js +1 -1
  30. package/dist/esm/sdk/wallet-iframe-host-full.js +1 -1
  31. package/dist/esm/sdk/wallet-iframe-host-near.js +1 -1
  32. package/dist/esm/sdk/wallet-iframe-host-runtime.js +1 -1
  33. package/dist/esm/sdk/wallet-service.css +2 -0
  34. package/dist/esm/sdk/wallet-ui.css +1 -1
  35. package/dist/esm/wasm/near_signer/pkg/wasm_signer_worker_bg.wasm +0 -0
  36. package/dist/esm/wasm/router_ab_ecdsa_client/pkg/router_ab_ecdsa_client_bg.wasm +0 -0
  37. package/dist/esm/wasm/router_ab_ed25519_yao_client/pkg/router_ab_ed25519_yao_client.d.ts +212 -233
  38. package/dist/esm/wasm/router_ab_ed25519_yao_client/pkg/router_ab_ed25519_yao_client.js +675 -694
  39. package/dist/esm/wasm/router_ab_ed25519_yao_client/pkg/router_ab_ed25519_yao_client_bg.wasm +0 -0
  40. package/dist/public/headers.manifest.json +1 -1
  41. package/dist/public/sdk/{host-Csu5L7VF.js → host-BsVFOugh.js} +1 -1
  42. package/dist/public/sdk/ownerNearOperation-BsIdSH0C.js +1 -0
  43. package/dist/public/sdk/registration-Coh0_Nva.js +1 -0
  44. package/dist/public/sdk/router_ab_ed25519_yao_client_bg.wasm +0 -0
  45. package/dist/public/sdk/runtime-auth-CJCU2yJi.js +1 -0
  46. package/dist/public/sdk/{runtime-device-link-DQe0aqRi.js → runtime-device-link-C0oXLSnz.js} +1 -1
  47. package/dist/public/sdk/{runtime-ecdsa-tempo-DKkeMMpm.js → runtime-ecdsa-tempo-BC8u9NuI.js} +1 -1
  48. package/dist/public/sdk/{runtime-email-otp-CzTe7r9I.js → runtime-email-otp-Cl4iu0z7.js} +1 -1
  49. package/dist/public/sdk/{runtime-export-BiyLbdCe.js → runtime-export-BdhfErGJ.js} +1 -1
  50. package/dist/public/sdk/{runtime-near-Kk0n1FSf.js → runtime-near-CT2ALBct.js} +1 -1
  51. package/dist/public/sdk/{runtime-preferences-B-A3hddU.js → runtime-preferences-fN2G9tct.js} +1 -1
  52. package/dist/public/sdk/{runtime-recovery-C9p1TU1w.js → runtime-recovery-n-TGLkwz.js} +1 -1
  53. package/dist/public/sdk/{runtimeContext-ChuvOC0h.js → runtimeContext-DI28d8Qu.js} +1 -1
  54. package/dist/public/sdk/wallet-iframe-host-ecdsa.js +1 -1
  55. package/dist/public/sdk/wallet-iframe-host-full.js +1 -1
  56. package/dist/public/sdk/wallet-iframe-host-near.js +1 -1
  57. package/dist/public/sdk/wallet-iframe-host-runtime.js +1 -1
  58. package/dist/public/sdk/wallet-service.css +2 -0
  59. package/dist/public/sdk/wallet-ui.css +1 -1
  60. package/dist/public/sdk/workers/device-linking-key.worker.js +454 -947
  61. package/dist/public/sdk/workers/email-otp.worker.js +588 -820
  62. package/dist/public/sdk/workers/evm_crypto_bg.wasm +0 -0
  63. package/dist/public/sdk/workers/passkey-mpc-export.worker.js +572 -804
  64. package/dist/public/sdk/workers/router_ab_ecdsa_client_bg.wasm +0 -0
  65. package/dist/public/sdk/workers/router_ab_ed25519_yao_client_bg.wasm +0 -0
  66. package/dist/public/sdk/workers/tempo_signer_bg.wasm +0 -0
  67. package/dist/public/sdk/workers/wallet-custody-ceremony.worker.js +524 -971
  68. package/dist/public/sdk/workers/wallet_custody_ceremony_bg.wasm +0 -0
  69. package/dist/public/sdk/workers/wasm_signer_worker_bg.wasm +0 -0
  70. package/dist/public/wallet-assets.manifest.json +29 -29
  71. package/dist/public/wallet-service/index.html +4 -4
  72. package/dist/types/wallet/src/SeamsWeb/walletIframe/host/ui/auth-menu/AuthMenuFooter.d.ts +4 -0
  73. package/dist/types/wallet/src/SeamsWeb/walletIframe/host/ui/auth-menu/AuthMenuSurface.d.ts +3 -1
  74. package/dist/types/wallet/src/SeamsWeb/walletIframe/host/ui/auth-menu/RecoveryOptions.d.ts +11 -0
  75. package/dist/types/wallet/src/SeamsWeb/walletIframe/host/ui/auth-menu/mountAuthMenuSurface.d.ts +3 -0
  76. package/dist/types/wallet/src/SeamsWeb/walletIframe/shared/authMenuPresentation.d.ts +13 -0
  77. package/dist/types/wallet/src/SeamsWeb/walletIframe/shared/messages.d.ts +7 -1
  78. package/dist/types/wallet/src/core/ui/walletIcon.d.ts +1 -0
  79. package/dist/types/wallet/src/externalNear/meteorRequest.d.ts +3 -0
  80. package/dist/types/wallet/src/index.d.ts +1 -1
  81. package/dist/types/wallet/src/react/components/HostedSeamsAuthMenu/public.d.ts +1 -1
  82. package/dist/types/wallet/src/react/components/HostedSeamsAuthMenu/types.d.ts +6 -2
  83. package/dist/types/wallet/src/react/index.d.ts +1 -1
  84. package/dist/workers/device-linking-key.worker.js +454 -947
  85. package/dist/workers/email-otp.worker.js +588 -820
  86. package/dist/workers/evm_crypto_bg.wasm +0 -0
  87. package/dist/workers/passkey-mpc-export.worker.js +572 -804
  88. package/dist/workers/router_ab_ecdsa_client_bg.wasm +0 -0
  89. package/dist/workers/router_ab_ed25519_yao_client_bg.wasm +0 -0
  90. package/dist/workers/tempo_signer_bg.wasm +0 -0
  91. package/dist/workers/wallet-custody-ceremony.worker.js +524 -971
  92. package/dist/workers/wallet_custody_ceremony_bg.wasm +0 -0
  93. package/dist/workers/wasm_signer_worker_bg.wasm +0 -0
  94. package/package.json +17 -17
  95. package/dist/esm/sdk/ownerNearOperation-DCxxHcwX.js +0 -1
  96. package/dist/esm/sdk/registration-C7w_51wE.js +0 -1
  97. package/dist/esm/sdk/runtime-auth-BMT_gIKI.js +0 -1
  98. package/dist/public/sdk/ownerNearOperation-DCxxHcwX.js +0 -1
  99. package/dist/public/sdk/registration-C7w_51wE.js +0 -1
  100. package/dist/public/sdk/runtime-auth-BMT_gIKI.js +0 -1
@@ -1465,236 +1465,255 @@ async function __wbg_init2(module_or_path) {
1465
1465
  var wasm_signer_worker_default = __wbg_init2;
1466
1466
 
1467
1467
  // ../../crates/router-ab-ed25519-yao-client/pkg/router_ab_ed25519_yao_client.js
1468
- class WasmActivatedClientV1 {
1469
- static __wrap(ptr) {
1470
- const obj = Object.create(WasmActivatedClientV1.prototype);
1471
- obj.__wbg_ptr = ptr;
1472
- WasmActivatedClientV1Finalization.register(obj, obj.__wbg_ptr, obj);
1473
- return obj;
1468
+ var wasm3;
1469
+ var WASM_VECTOR_LEN3 = 0;
1470
+ var cachedUint8ArrayMemory03 = null;
1471
+ function getUint8ArrayMemory03() {
1472
+ if (cachedUint8ArrayMemory03 === null || cachedUint8ArrayMemory03.byteLength === 0) {
1473
+ cachedUint8ArrayMemory03 = new Uint8Array(wasm3.memory.buffer);
1474
1474
  }
1475
- __destroy_into_raw() {
1476
- const ptr = this.__wbg_ptr;
1477
- this.__wbg_ptr = 0;
1478
- WasmActivatedClientV1Finalization.unregister(this);
1475
+ return cachedUint8ArrayMemory03;
1476
+ }
1477
+ var cachedTextEncoder3 = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
1478
+ throw Error("TextEncoder not available");
1479
+ } };
1480
+ var encodeString3 = typeof cachedTextEncoder3.encodeInto === "function" ? function(arg, view) {
1481
+ return cachedTextEncoder3.encodeInto(arg, view);
1482
+ } : function(arg, view) {
1483
+ const buf = cachedTextEncoder3.encode(arg);
1484
+ view.set(buf);
1485
+ return {
1486
+ read: arg.length,
1487
+ written: buf.length
1488
+ };
1489
+ };
1490
+ function passStringToWasm03(arg, malloc, realloc) {
1491
+ if (realloc === undefined) {
1492
+ const buf = cachedTextEncoder3.encode(arg);
1493
+ const ptr = malloc(buf.length, 1) >>> 0;
1494
+ getUint8ArrayMemory03().subarray(ptr, ptr + buf.length).set(buf);
1495
+ WASM_VECTOR_LEN3 = buf.length;
1479
1496
  return ptr;
1480
1497
  }
1481
- free() {
1482
- const ptr = this.__destroy_into_raw();
1483
- wasm3.__wbg_wasmactivatedclientv1_free(ptr, 0);
1498
+ let len = arg.length;
1499
+ let ptr = malloc(len, 1) >>> 0;
1500
+ const mem = getUint8ArrayMemory03();
1501
+ let offset = 0;
1502
+ for (;offset < len; offset++) {
1503
+ const code = arg.charCodeAt(offset);
1504
+ if (code > 127)
1505
+ break;
1506
+ mem[ptr + offset] = code;
1484
1507
  }
1485
- create_signing_share(client_participant_id, signing_worker_participant_id, admitted_digest, signing_worker_commitments_json, signing_worker_verifying_share) {
1486
- const ptr0 = passArray8ToWasm03(admitted_digest, wasm3.__wbindgen_malloc);
1487
- const len0 = WASM_VECTOR_LEN3;
1488
- const ptr1 = passStringToWasm03(signing_worker_commitments_json, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1489
- const len1 = WASM_VECTOR_LEN3;
1490
- const ptr2 = passArray8ToWasm03(signing_worker_verifying_share, wasm3.__wbindgen_malloc);
1491
- const len2 = WASM_VECTOR_LEN3;
1492
- const ret = wasm3.wasmactivatedclientv1_create_signing_share(this.__wbg_ptr, client_participant_id, signing_worker_participant_id, ptr0, len0, ptr1, len1, ptr2, len2);
1493
- if (ret[2]) {
1494
- throw takeFromExternrefTable03(ret[1]);
1508
+ if (offset !== len) {
1509
+ if (offset !== 0) {
1510
+ arg = arg.slice(offset);
1495
1511
  }
1496
- return WasmClientSigningShareV1.__wrap(ret[0]);
1512
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
1513
+ const view = getUint8ArrayMemory03().subarray(ptr + offset, ptr + len);
1514
+ const ret = encodeString3(arg, view);
1515
+ offset += ret.written;
1516
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
1497
1517
  }
1498
- static import_linked_material(client_scalar_share, client_participant_id, signing_worker_participant_id, public_receipt_json) {
1499
- const ptr0 = passArray8ToWasm03(client_scalar_share, wasm3.__wbindgen_malloc);
1500
- const len0 = WASM_VECTOR_LEN3;
1501
- const ptr1 = passStringToWasm03(public_receipt_json, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1502
- const len1 = WASM_VECTOR_LEN3;
1503
- const ret = wasm3.wasmactivatedclientv1_import_linked_material(ptr0, len0, client_participant_id, signing_worker_participant_id, ptr1, len1);
1504
- if (ret[2]) {
1505
- throw takeFromExternrefTable03(ret[1]);
1506
- }
1507
- return WasmActivatedClientV1.__wrap(ret[0]);
1518
+ WASM_VECTOR_LEN3 = offset;
1519
+ return ptr;
1520
+ }
1521
+ var cachedDataViewMemory03 = null;
1522
+ function getDataViewMemory03() {
1523
+ if (cachedDataViewMemory03 === null || cachedDataViewMemory03.buffer.detached === true || cachedDataViewMemory03.buffer.detached === undefined && cachedDataViewMemory03.buffer !== wasm3.memory.buffer) {
1524
+ cachedDataViewMemory03 = new DataView(wasm3.memory.buffer);
1508
1525
  }
1509
- static import_local_material(passkey_prf_first, binding, nonce, ciphertext, expected_registered_public_key, expected_state_epoch, client_participant_id, signing_worker_participant_id, signing_worker_verifying_share) {
1510
- const ptr0 = passArray8ToWasm03(passkey_prf_first, wasm3.__wbindgen_malloc);
1511
- const len0 = WASM_VECTOR_LEN3;
1512
- const ptr1 = passArray8ToWasm03(binding, wasm3.__wbindgen_malloc);
1513
- const len1 = WASM_VECTOR_LEN3;
1514
- const ptr2 = passArray8ToWasm03(nonce, wasm3.__wbindgen_malloc);
1515
- const len2 = WASM_VECTOR_LEN3;
1516
- const ptr3 = passArray8ToWasm03(ciphertext, wasm3.__wbindgen_malloc);
1517
- const len3 = WASM_VECTOR_LEN3;
1518
- const ptr4 = passArray8ToWasm03(expected_registered_public_key, wasm3.__wbindgen_malloc);
1519
- const len4 = WASM_VECTOR_LEN3;
1520
- const ptr5 = passArray8ToWasm03(signing_worker_verifying_share, wasm3.__wbindgen_malloc);
1521
- const len5 = WASM_VECTOR_LEN3;
1522
- const ret = wasm3.wasmactivatedclientv1_import_local_material(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, expected_state_epoch, client_participant_id, signing_worker_participant_id, ptr5, len5);
1523
- if (ret[2]) {
1524
- throw takeFromExternrefTable03(ret[1]);
1525
- }
1526
- return WasmActivatedClientV1.__wrap(ret[0]);
1526
+ return cachedDataViewMemory03;
1527
+ }
1528
+ function addToExternrefTable03(obj) {
1529
+ const idx = wasm3.__externref_table_alloc();
1530
+ wasm3.__wbindgen_export_4.set(idx, obj);
1531
+ return idx;
1532
+ }
1533
+ function handleError3(f, args) {
1534
+ try {
1535
+ return f.apply(this, args);
1536
+ } catch (e) {
1537
+ const idx = addToExternrefTable03(e);
1538
+ wasm3.__wbindgen_exn_store(idx);
1527
1539
  }
1528
- registered_public_key() {
1529
- const ret = wasm3.wasmactivatedclientv1_registered_public_key(this.__wbg_ptr);
1530
- var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1531
- wasm3.__wbindgen_free(ret[0], ret[1] * 1, 1);
1532
- return v1;
1540
+ }
1541
+ var cachedTextDecoder3 = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
1542
+ throw Error("TextDecoder not available");
1543
+ } };
1544
+ if (typeof TextDecoder !== "undefined") {
1545
+ cachedTextDecoder3.decode();
1546
+ }
1547
+ function getStringFromWasm03(ptr, len) {
1548
+ ptr = ptr >>> 0;
1549
+ return cachedTextDecoder3.decode(getUint8ArrayMemory03().subarray(ptr, ptr + len));
1550
+ }
1551
+ function isLikeNone3(x) {
1552
+ return x === undefined || x === null;
1553
+ }
1554
+ function debugString2(val) {
1555
+ const type = typeof val;
1556
+ if (type == "number" || type == "boolean" || val == null) {
1557
+ return `${val}`;
1533
1558
  }
1534
- seal_local_material(passkey_prf_first, binding, nonce) {
1535
- const ptr0 = passArray8ToWasm03(passkey_prf_first, wasm3.__wbindgen_malloc);
1536
- const len0 = WASM_VECTOR_LEN3;
1537
- const ptr1 = passArray8ToWasm03(binding, wasm3.__wbindgen_malloc);
1538
- const len1 = WASM_VECTOR_LEN3;
1539
- const ptr2 = passArray8ToWasm03(nonce, wasm3.__wbindgen_malloc);
1540
- const len2 = WASM_VECTOR_LEN3;
1541
- const ret = wasm3.wasmactivatedclientv1_seal_local_material(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
1542
- if (ret[3]) {
1543
- throw takeFromExternrefTable03(ret[2]);
1544
- }
1545
- var v4 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1546
- wasm3.__wbindgen_free(ret[0], ret[1] * 1, 1);
1547
- return v4;
1559
+ if (type == "string") {
1560
+ return `"${val}"`;
1548
1561
  }
1549
- state_epoch() {
1550
- const ret = wasm3.wasmactivatedclientv1_state_epoch(this.__wbg_ptr);
1551
- return BigInt.asUintN(64, ret);
1562
+ if (type == "symbol") {
1563
+ const description = val.description;
1564
+ if (description == null) {
1565
+ return "Symbol";
1566
+ } else {
1567
+ return `Symbol(${description})`;
1568
+ }
1552
1569
  }
1553
- }
1554
- if (Symbol.dispose)
1555
- WasmActivatedClientV1.prototype[Symbol.dispose] = WasmActivatedClientV1.prototype.free;
1556
-
1557
- class WasmClientSigningShareV1 {
1558
- static __wrap(ptr) {
1559
- const obj = Object.create(WasmClientSigningShareV1.prototype);
1560
- obj.__wbg_ptr = ptr;
1561
- WasmClientSigningShareV1Finalization.register(obj, obj.__wbg_ptr, obj);
1562
- return obj;
1570
+ if (type == "function") {
1571
+ const name = val.name;
1572
+ if (typeof name == "string" && name.length > 0) {
1573
+ return `Function(${name})`;
1574
+ } else {
1575
+ return "Function";
1576
+ }
1563
1577
  }
1564
- __destroy_into_raw() {
1565
- const ptr = this.__wbg_ptr;
1566
- this.__wbg_ptr = 0;
1567
- WasmClientSigningShareV1Finalization.unregister(this);
1568
- return ptr;
1578
+ if (Array.isArray(val)) {
1579
+ const length = val.length;
1580
+ let debug = "[";
1581
+ if (length > 0) {
1582
+ debug += debugString2(val[0]);
1583
+ }
1584
+ for (let i = 1;i < length; i++) {
1585
+ debug += ", " + debugString2(val[i]);
1586
+ }
1587
+ debug += "]";
1588
+ return debug;
1569
1589
  }
1570
- free() {
1571
- const ptr = this.__destroy_into_raw();
1572
- wasm3.__wbg_wasmclientsigningsharev1_free(ptr, 0);
1590
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
1591
+ let className;
1592
+ if (builtInMatches && builtInMatches.length > 1) {
1593
+ className = builtInMatches[1];
1594
+ } else {
1595
+ return toString.call(val);
1573
1596
  }
1574
- client_commitments_json() {
1575
- let deferred1_0;
1576
- let deferred1_1;
1597
+ if (className == "Object") {
1577
1598
  try {
1578
- const ret = wasm3.wasmclientsigningsharev1_client_commitments_json(this.__wbg_ptr);
1579
- deferred1_0 = ret[0];
1580
- deferred1_1 = ret[1];
1581
- return getStringFromWasm03(ret[0], ret[1]);
1582
- } finally {
1583
- wasm3.__wbindgen_free(deferred1_0, deferred1_1, 1);
1599
+ return "Object(" + JSON.stringify(val) + ")";
1600
+ } catch (_) {
1601
+ return "Object";
1584
1602
  }
1585
1603
  }
1586
- client_signature_share_b64u() {
1587
- let deferred1_0;
1588
- let deferred1_1;
1589
- try {
1590
- const ret = wasm3.wasmclientsigningsharev1_client_signature_share_b64u(this.__wbg_ptr);
1591
- deferred1_0 = ret[0];
1592
- deferred1_1 = ret[1];
1593
- return getStringFromWasm03(ret[0], ret[1]);
1594
- } finally {
1595
- wasm3.__wbindgen_free(deferred1_0, deferred1_1, 1);
1596
- }
1604
+ if (val instanceof Error) {
1605
+ return `${val.name}: ${val.message}
1606
+ ${val.stack}`;
1597
1607
  }
1598
- client_verifying_share() {
1599
- const ret = wasm3.wasmclientsigningsharev1_client_verifying_share(this.__wbg_ptr);
1600
- var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1601
- wasm3.__wbindgen_free(ret[0], ret[1] * 1, 1);
1602
- return v1;
1608
+ return className;
1609
+ }
1610
+ function passArray8ToWasm03(arg, malloc) {
1611
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
1612
+ getUint8ArrayMemory03().set(arg, ptr / 1);
1613
+ WASM_VECTOR_LEN3 = arg.length;
1614
+ return ptr;
1615
+ }
1616
+ function takeFromExternrefTable03(idx) {
1617
+ const value = wasm3.__wbindgen_export_4.get(idx);
1618
+ wasm3.__externref_table_dealloc(idx);
1619
+ return value;
1620
+ }
1621
+ function ed25519_yao_lane_source_from_wallet_seed_v1(factor_secret, envelope_binding_json, envelope_nonce, envelope_ciphertext, envelope_aad_hash, envelope_ciphertext_digest, application_binding_digest, wallet_key_id, enrollment_id, revocation_epoch, registered_public_key) {
1622
+ const ptr0 = passArray8ToWasm03(factor_secret, wasm3.__wbindgen_malloc);
1623
+ const len0 = WASM_VECTOR_LEN3;
1624
+ const ptr1 = passStringToWasm03(envelope_binding_json, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1625
+ const len1 = WASM_VECTOR_LEN3;
1626
+ const ptr2 = passArray8ToWasm03(envelope_nonce, wasm3.__wbindgen_malloc);
1627
+ const len2 = WASM_VECTOR_LEN3;
1628
+ const ptr3 = passArray8ToWasm03(envelope_ciphertext, wasm3.__wbindgen_malloc);
1629
+ const len3 = WASM_VECTOR_LEN3;
1630
+ const ptr4 = passArray8ToWasm03(envelope_aad_hash, wasm3.__wbindgen_malloc);
1631
+ const len4 = WASM_VECTOR_LEN3;
1632
+ const ptr5 = passArray8ToWasm03(envelope_ciphertext_digest, wasm3.__wbindgen_malloc);
1633
+ const len5 = WASM_VECTOR_LEN3;
1634
+ const ptr6 = passArray8ToWasm03(application_binding_digest, wasm3.__wbindgen_malloc);
1635
+ const len6 = WASM_VECTOR_LEN3;
1636
+ const ptr7 = passStringToWasm03(wallet_key_id, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1637
+ const len7 = WASM_VECTOR_LEN3;
1638
+ const ptr8 = passStringToWasm03(enrollment_id, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1639
+ const len8 = WASM_VECTOR_LEN3;
1640
+ const ptr9 = passArray8ToWasm03(registered_public_key, wasm3.__wbindgen_malloc);
1641
+ const len9 = WASM_VECTOR_LEN3;
1642
+ const ret = wasm3.ed25519_yao_lane_source_from_wallet_seed_v1(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, ptr8, len8, revocation_epoch, ptr9, len9);
1643
+ if (ret[2]) {
1644
+ throw takeFromExternrefTable03(ret[1]);
1645
+ }
1646
+ return WasmEd25519YaoLaneSourceV1.__wrap(ret[0]);
1647
+ }
1648
+ function _assertClass2(instance, klass) {
1649
+ if (!(instance instanceof klass)) {
1650
+ throw new Error(`expected instance of ${klass.name}`);
1603
1651
  }
1604
1652
  }
1605
- if (Symbol.dispose)
1606
- WasmClientSigningShareV1.prototype[Symbol.dispose] = WasmClientSigningShareV1.prototype.free;
1653
+ var WasmActivatedClientV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm3.__wbg_wasmactivatedclientv1_free(ptr >>> 0, 1));
1654
+ var WasmClientSigningShareV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm3.__wbg_wasmclientsigningsharev1_free(ptr >>> 0, 1));
1655
+ var WasmEd25519YaoClientRootExportSessionV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm3.__wbg_wasmed25519yaoclientrootexportsessionv1_free(ptr >>> 0, 1));
1656
+ var WasmEd25519YaoLaneClientV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm3.__wbg_wasmed25519yaolaneclientv1_free(ptr >>> 0, 1));
1657
+ var WasmEd25519YaoLaneSourceV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm3.__wbg_wasmed25519yaolanesourcev1_free(ptr >>> 0, 1));
1607
1658
 
1608
- class WasmEd25519YaoClientRootExportSessionV1 {
1659
+ class WasmEd25519YaoLaneSourceV1 {
1660
+ static __wrap(ptr) {
1661
+ ptr = ptr >>> 0;
1662
+ const obj = Object.create(WasmEd25519YaoLaneSourceV1.prototype);
1663
+ obj.__wbg_ptr = ptr;
1664
+ WasmEd25519YaoLaneSourceV1Finalization.register(obj, obj.__wbg_ptr, obj);
1665
+ return obj;
1666
+ }
1609
1667
  __destroy_into_raw() {
1610
1668
  const ptr = this.__wbg_ptr;
1611
1669
  this.__wbg_ptr = 0;
1612
- WasmEd25519YaoClientRootExportSessionV1Finalization.unregister(this);
1670
+ WasmEd25519YaoLaneSourceV1Finalization.unregister(this);
1613
1671
  return ptr;
1614
1672
  }
1615
1673
  free() {
1616
1674
  const ptr = this.__destroy_into_raw();
1617
- wasm3.__wbg_wasmed25519yaoclientrootexportsessionv1_free(ptr, 0);
1618
- }
1619
- complete(result_json) {
1620
- const ptr0 = passStringToWasm03(result_json, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1621
- const len0 = WASM_VECTOR_LEN3;
1622
- const ret = wasm3.wasmed25519yaoclientrootexportsessionv1_complete(this.__wbg_ptr, ptr0, len0);
1623
- if (ret[2]) {
1624
- throw takeFromExternrefTable03(ret[1]);
1625
- }
1626
- return WasmExportedEd25519SeedV1.__wrap(ret[0]);
1627
- }
1628
- execute_request_json() {
1629
- let deferred1_0;
1630
- let deferred1_1;
1631
- try {
1632
- const ret = wasm3.wasmed25519yaoclientrootexportsessionv1_execute_request_json(this.__wbg_ptr);
1633
- deferred1_0 = ret[0];
1634
- deferred1_1 = ret[1];
1635
- return getStringFromWasm03(ret[0], ret[1]);
1636
- } finally {
1637
- wasm3.__wbindgen_free(deferred1_0, deferred1_1, 1);
1638
- }
1675
+ wasm3.__wbg_wasmed25519yaolanesourcev1_free(ptr, 0);
1639
1676
  }
1640
- constructor(admission_json, application_json, client_participant_id, signing_worker_participant_id, factor_secret, envelope_binding_json, envelope_nonce, envelope_ciphertext, envelope_aad_hash, envelope_ciphertext_digest, recipient_key_material, deriver_a_seal_seed, deriver_b_seal_seed) {
1641
- const ptr0 = passStringToWasm03(admission_json, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1677
+ constructor(factor_secret, envelope_binding_json, envelope_nonce, envelope_ciphertext, envelope_aad_hash, envelope_ciphertext_digest) {
1678
+ const ptr0 = passArray8ToWasm03(factor_secret, wasm3.__wbindgen_malloc);
1642
1679
  const len0 = WASM_VECTOR_LEN3;
1643
- const ptr1 = passStringToWasm03(application_json, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1680
+ const ptr1 = passStringToWasm03(envelope_binding_json, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1644
1681
  const len1 = WASM_VECTOR_LEN3;
1645
- const ptr2 = passArray8ToWasm03(factor_secret, wasm3.__wbindgen_malloc);
1682
+ const ptr2 = passArray8ToWasm03(envelope_nonce, wasm3.__wbindgen_malloc);
1646
1683
  const len2 = WASM_VECTOR_LEN3;
1647
- const ptr3 = passStringToWasm03(envelope_binding_json, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1684
+ const ptr3 = passArray8ToWasm03(envelope_ciphertext, wasm3.__wbindgen_malloc);
1648
1685
  const len3 = WASM_VECTOR_LEN3;
1649
- const ptr4 = passArray8ToWasm03(envelope_nonce, wasm3.__wbindgen_malloc);
1686
+ const ptr4 = passArray8ToWasm03(envelope_aad_hash, wasm3.__wbindgen_malloc);
1650
1687
  const len4 = WASM_VECTOR_LEN3;
1651
- const ptr5 = passArray8ToWasm03(envelope_ciphertext, wasm3.__wbindgen_malloc);
1688
+ const ptr5 = passArray8ToWasm03(envelope_ciphertext_digest, wasm3.__wbindgen_malloc);
1652
1689
  const len5 = WASM_VECTOR_LEN3;
1653
- const ptr6 = passArray8ToWasm03(envelope_aad_hash, wasm3.__wbindgen_malloc);
1654
- const len6 = WASM_VECTOR_LEN3;
1655
- const ptr7 = passArray8ToWasm03(envelope_ciphertext_digest, wasm3.__wbindgen_malloc);
1656
- const len7 = WASM_VECTOR_LEN3;
1657
- const ptr8 = passArray8ToWasm03(recipient_key_material, wasm3.__wbindgen_malloc);
1658
- const len8 = WASM_VECTOR_LEN3;
1659
- const ptr9 = passArray8ToWasm03(deriver_a_seal_seed, wasm3.__wbindgen_malloc);
1660
- const len9 = WASM_VECTOR_LEN3;
1661
- const ptr10 = passArray8ToWasm03(deriver_b_seal_seed, wasm3.__wbindgen_malloc);
1662
- const len10 = WASM_VECTOR_LEN3;
1663
- const ret = wasm3.wasmed25519yaoclientrootexportsessionv1_new(ptr0, len0, ptr1, len1, client_participant_id, signing_worker_participant_id, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, ptr8, len8, ptr9, len9, ptr10, len10);
1690
+ const ret = wasm3.wasmed25519yaolanesourcev1_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5);
1664
1691
  if (ret[2]) {
1665
1692
  throw takeFromExternrefTable03(ret[1]);
1666
1693
  }
1667
- this.__wbg_ptr = ret[0];
1668
- WasmEd25519YaoClientRootExportSessionV1Finalization.register(this, this.__wbg_ptr, this);
1694
+ this.__wbg_ptr = ret[0] >>> 0;
1695
+ WasmEd25519YaoLaneSourceV1Finalization.register(this, this.__wbg_ptr, this);
1669
1696
  return this;
1670
1697
  }
1671
1698
  }
1672
- if (Symbol.dispose)
1673
- WasmEd25519YaoClientRootExportSessionV1.prototype[Symbol.dispose] = WasmEd25519YaoClientRootExportSessionV1.prototype.free;
1699
+ var WasmEd25519YaoSourcePreservingRegistrationSessionV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm3.__wbg_wasmed25519yaosourcepreservingregistrationsessionv1_free(ptr >>> 0, 1));
1674
1700
 
1675
- class WasmEd25519YaoLaneClientV1 {
1701
+ class WasmEd25519YaoSourcePreservingRegistrationSessionV1 {
1676
1702
  __destroy_into_raw() {
1677
1703
  const ptr = this.__wbg_ptr;
1678
1704
  this.__wbg_ptr = 0;
1679
- WasmEd25519YaoLaneClientV1Finalization.unregister(this);
1705
+ WasmEd25519YaoSourcePreservingRegistrationSessionV1Finalization.unregister(this);
1680
1706
  return ptr;
1681
1707
  }
1682
1708
  free() {
1683
1709
  const ptr = this.__destroy_into_raw();
1684
- wasm3.__wbg_wasmed25519yaolaneclientv1_free(ptr, 0);
1685
- }
1686
- complete(result_input) {
1687
- const ret = wasm3.wasmed25519yaolaneclientv1_complete(this.__wbg_ptr, result_input);
1688
- if (ret[2]) {
1689
- throw takeFromExternrefTable03(ret[1]);
1690
- }
1691
- return takeFromExternrefTable03(ret[0]);
1710
+ wasm3.__wbg_wasmed25519yaosourcepreservingregistrationsessionv1_free(ptr, 0);
1692
1711
  }
1693
- execute_request_json() {
1712
+ take_execute_request_json() {
1694
1713
  let deferred2_0;
1695
1714
  let deferred2_1;
1696
1715
  try {
1697
- const ret = wasm3.wasmed25519yaolaneclientv1_execute_request_json(this.__wbg_ptr);
1716
+ const ret = wasm3.wasmed25519yaosourcepreservingregistrationsessionv1_take_execute_request_json(this.__wbg_ptr);
1698
1717
  var ptr1 = ret[0];
1699
1718
  var len1 = ret[1];
1700
1719
  if (ret[3]) {
@@ -1709,86 +1728,7 @@ class WasmEd25519YaoLaneClientV1 {
1709
1728
  wasm3.__wbindgen_free(deferred2_0, deferred2_1, 1);
1710
1729
  }
1711
1730
  }
1712
- constructor() {
1713
- const ret = wasm3.wasmed25519yaolaneclientv1_new();
1714
- this.__wbg_ptr = ret;
1715
- WasmEd25519YaoLaneClientV1Finalization.register(this, this.__wbg_ptr, this);
1716
- return this;
1717
- }
1718
- prepare(job_input, binding_input, application_input, client_participant_id, signing_worker_participant_id, source, deriver_a_input_public_key, deriver_b_input_public_key, deriver_a_seal_seed, deriver_b_seal_seed) {
1719
- _assertClass2(source, WasmEd25519YaoLaneSourceV1);
1720
- const ptr0 = passArray8ToWasm03(deriver_a_input_public_key, wasm3.__wbindgen_malloc);
1721
- const len0 = WASM_VECTOR_LEN3;
1722
- const ptr1 = passArray8ToWasm03(deriver_b_input_public_key, wasm3.__wbindgen_malloc);
1723
- const len1 = WASM_VECTOR_LEN3;
1724
- const ptr2 = passArray8ToWasm03(deriver_a_seal_seed, wasm3.__wbindgen_malloc);
1725
- const len2 = WASM_VECTOR_LEN3;
1726
- const ptr3 = passArray8ToWasm03(deriver_b_seal_seed, wasm3.__wbindgen_malloc);
1727
- const len3 = WASM_VECTOR_LEN3;
1728
- const ret = wasm3.wasmed25519yaolaneclientv1_prepare(this.__wbg_ptr, job_input, binding_input, application_input, client_participant_id, signing_worker_participant_id, source.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
1729
- if (ret[2]) {
1730
- throw takeFromExternrefTable03(ret[1]);
1731
- }
1732
- return takeFromExternrefTable03(ret[0]);
1733
- }
1734
- }
1735
- if (Symbol.dispose)
1736
- WasmEd25519YaoLaneClientV1.prototype[Symbol.dispose] = WasmEd25519YaoLaneClientV1.prototype.free;
1737
-
1738
- class WasmEd25519YaoLaneSourceV1 {
1739
- static __wrap(ptr) {
1740
- const obj = Object.create(WasmEd25519YaoLaneSourceV1.prototype);
1741
- obj.__wbg_ptr = ptr;
1742
- WasmEd25519YaoLaneSourceV1Finalization.register(obj, obj.__wbg_ptr, obj);
1743
- return obj;
1744
- }
1745
- __destroy_into_raw() {
1746
- const ptr = this.__wbg_ptr;
1747
- this.__wbg_ptr = 0;
1748
- WasmEd25519YaoLaneSourceV1Finalization.unregister(this);
1749
- return ptr;
1750
- }
1751
- free() {
1752
- const ptr = this.__destroy_into_raw();
1753
- wasm3.__wbg_wasmed25519yaolanesourcev1_free(ptr, 0);
1754
- }
1755
- constructor(factor_secret, envelope_binding_json, envelope_nonce, envelope_ciphertext, envelope_aad_hash, envelope_ciphertext_digest) {
1756
- const ptr0 = passArray8ToWasm03(factor_secret, wasm3.__wbindgen_malloc);
1757
- const len0 = WASM_VECTOR_LEN3;
1758
- const ptr1 = passStringToWasm03(envelope_binding_json, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1759
- const len1 = WASM_VECTOR_LEN3;
1760
- const ptr2 = passArray8ToWasm03(envelope_nonce, wasm3.__wbindgen_malloc);
1761
- const len2 = WASM_VECTOR_LEN3;
1762
- const ptr3 = passArray8ToWasm03(envelope_ciphertext, wasm3.__wbindgen_malloc);
1763
- const len3 = WASM_VECTOR_LEN3;
1764
- const ptr4 = passArray8ToWasm03(envelope_aad_hash, wasm3.__wbindgen_malloc);
1765
- const len4 = WASM_VECTOR_LEN3;
1766
- const ptr5 = passArray8ToWasm03(envelope_ciphertext_digest, wasm3.__wbindgen_malloc);
1767
- const len5 = WASM_VECTOR_LEN3;
1768
- const ret = wasm3.wasmed25519yaolanesourcev1_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5);
1769
- if (ret[2]) {
1770
- throw takeFromExternrefTable03(ret[1]);
1771
- }
1772
- this.__wbg_ptr = ret[0];
1773
- WasmEd25519YaoLaneSourceV1Finalization.register(this, this.__wbg_ptr, this);
1774
- return this;
1775
- }
1776
- }
1777
- if (Symbol.dispose)
1778
- WasmEd25519YaoLaneSourceV1.prototype[Symbol.dispose] = WasmEd25519YaoLaneSourceV1.prototype.free;
1779
-
1780
- class WasmEd25519YaoSourcePreservingRegistrationSessionV1 {
1781
- __destroy_into_raw() {
1782
- const ptr = this.__wbg_ptr;
1783
- this.__wbg_ptr = 0;
1784
- WasmEd25519YaoSourcePreservingRegistrationSessionV1Finalization.unregister(this);
1785
- return ptr;
1786
- }
1787
- free() {
1788
- const ptr = this.__destroy_into_raw();
1789
- wasm3.__wbg_wasmed25519yaosourcepreservingregistrationsessionv1_free(ptr, 0);
1790
- }
1791
- constructor(admission_input, application_input, client_participant_id, signing_worker_participant_id, source, expected_registered_public_key, target_client_recipient_public_key, deriver_a_seal_seed, deriver_b_seal_seed) {
1731
+ constructor(admission_input, application_input, client_participant_id, signing_worker_participant_id, source, expected_registered_public_key, target_client_recipient_public_key, deriver_a_seal_seed, deriver_b_seal_seed) {
1792
1732
  _assertClass2(source, WasmEd25519YaoLaneSourceV1);
1793
1733
  const ptr0 = passArray8ToWasm03(expected_registered_public_key, wasm3.__wbindgen_malloc);
1794
1734
  const len0 = WASM_VECTOR_LEN3;
@@ -1802,763 +1742,376 @@ class WasmEd25519YaoSourcePreservingRegistrationSessionV1 {
1802
1742
  if (ret[2]) {
1803
1743
  throw takeFromExternrefTable03(ret[1]);
1804
1744
  }
1805
- this.__wbg_ptr = ret[0];
1745
+ this.__wbg_ptr = ret[0] >>> 0;
1806
1746
  WasmEd25519YaoSourcePreservingRegistrationSessionV1Finalization.register(this, this.__wbg_ptr, this);
1807
1747
  return this;
1808
1748
  }
1809
- take_execute_request_json() {
1810
- let deferred2_0;
1811
- let deferred2_1;
1812
- try {
1813
- const ret = wasm3.wasmed25519yaosourcepreservingregistrationsessionv1_take_execute_request_json(this.__wbg_ptr);
1814
- var ptr1 = ret[0];
1815
- var len1 = ret[1];
1816
- if (ret[3]) {
1817
- ptr1 = 0;
1818
- len1 = 0;
1819
- throw takeFromExternrefTable03(ret[2]);
1820
- }
1821
- deferred2_0 = ptr1;
1822
- deferred2_1 = len1;
1823
- return getStringFromWasm03(ptr1, len1);
1824
- } finally {
1825
- wasm3.__wbindgen_free(deferred2_0, deferred2_1, 1);
1826
- }
1827
- }
1828
1749
  }
1829
- if (Symbol.dispose)
1830
- WasmEd25519YaoSourcePreservingRegistrationSessionV1.prototype[Symbol.dispose] = WasmEd25519YaoSourcePreservingRegistrationSessionV1.prototype.free;
1831
-
1832
- class WasmExportedEd25519SeedV1 {
1833
- static __wrap(ptr) {
1834
- const obj = Object.create(WasmExportedEd25519SeedV1.prototype);
1835
- obj.__wbg_ptr = ptr;
1836
- WasmExportedEd25519SeedV1Finalization.register(obj, obj.__wbg_ptr, obj);
1837
- return obj;
1838
- }
1839
- __destroy_into_raw() {
1840
- const ptr = this.__wbg_ptr;
1841
- this.__wbg_ptr = 0;
1842
- WasmExportedEd25519SeedV1Finalization.unregister(this);
1843
- return ptr;
1844
- }
1845
- free() {
1846
- const ptr = this.__destroy_into_raw();
1847
- wasm3.__wbg_wasmexporteded25519seedv1_free(ptr, 0);
1848
- }
1849
- take_export_artifact_json() {
1850
- let deferred2_0;
1851
- let deferred2_1;
1852
- try {
1853
- const ret = wasm3.wasmexporteded25519seedv1_take_export_artifact_json(this.__wbg_ptr);
1854
- var ptr1 = ret[0];
1855
- var len1 = ret[1];
1856
- if (ret[3]) {
1857
- ptr1 = 0;
1858
- len1 = 0;
1859
- throw takeFromExternrefTable03(ret[2]);
1750
+ var WasmExportedEd25519SeedV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm3.__wbg_wasmexporteded25519seedv1_free(ptr >>> 0, 1));
1751
+ var WasmOrdinaryEd25519ActivationClientMaterialV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm3.__wbg_wasmordinaryed25519activationclientmaterialv1_free(ptr >>> 0, 1));
1752
+ var WasmWalletCustodySeedExportSessionV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm3.__wbg_wasmwalletcustodyseedexportsessionv1_free(ptr >>> 0, 1));
1753
+ async function __wbg_load3(module, imports) {
1754
+ if (typeof Response === "function" && module instanceof Response) {
1755
+ if (typeof WebAssembly.instantiateStreaming === "function") {
1756
+ try {
1757
+ return await WebAssembly.instantiateStreaming(module, imports);
1758
+ } catch (e) {
1759
+ if (module.headers.get("Content-Type") != "application/wasm") {
1760
+ 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);
1761
+ } else {
1762
+ throw e;
1763
+ }
1860
1764
  }
1861
- deferred2_0 = ptr1;
1862
- deferred2_1 = len1;
1863
- return getStringFromWasm03(ptr1, len1);
1864
- } finally {
1865
- wasm3.__wbindgen_free(deferred2_0, deferred2_1, 1);
1866
- }
1867
- }
1868
- }
1869
- if (Symbol.dispose)
1870
- WasmExportedEd25519SeedV1.prototype[Symbol.dispose] = WasmExportedEd25519SeedV1.prototype.free;
1871
-
1872
- class WasmOrdinaryEd25519ActivationClientMaterialV1 {
1873
- __destroy_into_raw() {
1874
- const ptr = this.__wbg_ptr;
1875
- this.__wbg_ptr = 0;
1876
- WasmOrdinaryEd25519ActivationClientMaterialV1Finalization.unregister(this);
1877
- return ptr;
1878
- }
1879
- free() {
1880
- const ptr = this.__destroy_into_raw();
1881
- wasm3.__wbg_wasmordinaryed25519activationclientmaterialv1_free(ptr, 0);
1882
- }
1883
- destroy() {
1884
- wasm3.wasmordinaryed25519activationclientmaterialv1_destroy(this.__wbg_ptr);
1885
- }
1886
- constructor(binding_json, deriver_a_client_package_json, deriver_b_client_package_json, recipient_private_key, participant_ids_json, public_receipt_json) {
1887
- const ptr0 = passStringToWasm03(binding_json, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1888
- const len0 = WASM_VECTOR_LEN3;
1889
- const ptr1 = passStringToWasm03(deriver_a_client_package_json, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1890
- const len1 = WASM_VECTOR_LEN3;
1891
- const ptr2 = passStringToWasm03(deriver_b_client_package_json, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1892
- const len2 = WASM_VECTOR_LEN3;
1893
- const ptr3 = passArray8ToWasm03(recipient_private_key, wasm3.__wbindgen_malloc);
1894
- const len3 = WASM_VECTOR_LEN3;
1895
- const ptr4 = passStringToWasm03(participant_ids_json, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1896
- const len4 = WASM_VECTOR_LEN3;
1897
- const ptr5 = passStringToWasm03(public_receipt_json, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1898
- const len5 = WASM_VECTOR_LEN3;
1899
- const ret = wasm3.wasmordinaryed25519activationclientmaterialv1_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5);
1900
- if (ret[2]) {
1901
- throw takeFromExternrefTable03(ret[1]);
1902
1765
  }
1903
- this.__wbg_ptr = ret[0];
1904
- WasmOrdinaryEd25519ActivationClientMaterialV1Finalization.register(this, this.__wbg_ptr, this);
1905
- return this;
1906
- }
1907
- take_client_material() {
1908
- const ret = wasm3.wasmordinaryed25519activationclientmaterialv1_take_client_material(this.__wbg_ptr);
1909
- if (ret[3]) {
1910
- throw takeFromExternrefTable03(ret[2]);
1766
+ const bytes = await module.arrayBuffer();
1767
+ return await WebAssembly.instantiate(bytes, imports);
1768
+ } else {
1769
+ const instance = await WebAssembly.instantiate(module, imports);
1770
+ if (instance instanceof WebAssembly.Instance) {
1771
+ return { instance, module };
1772
+ } else {
1773
+ return instance;
1911
1774
  }
1912
- var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1913
- wasm3.__wbindgen_free(ret[0], ret[1] * 1, 1);
1914
- return v1;
1915
1775
  }
1916
1776
  }
1917
- if (Symbol.dispose)
1918
- WasmOrdinaryEd25519ActivationClientMaterialV1.prototype[Symbol.dispose] = WasmOrdinaryEd25519ActivationClientMaterialV1.prototype.free;
1919
-
1920
- class WasmWalletCustodySeedExportSessionV1 {
1921
- __destroy_into_raw() {
1922
- const ptr = this.__wbg_ptr;
1923
- this.__wbg_ptr = 0;
1924
- WasmWalletCustodySeedExportSessionV1Finalization.unregister(this);
1925
- return ptr;
1926
- }
1927
- free() {
1928
- const ptr = this.__destroy_into_raw();
1929
- wasm3.__wbg_wasmwalletcustodyseedexportsessionv1_free(ptr, 0);
1930
- }
1931
- complete(result_json) {
1932
- const ptr0 = passStringToWasm03(result_json, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1933
- const len0 = WASM_VECTOR_LEN3;
1934
- const ret = wasm3.wasmwalletcustodyseedexportsessionv1_complete(this.__wbg_ptr, ptr0, len0);
1935
- if (ret[2]) {
1936
- throw takeFromExternrefTable03(ret[1]);
1777
+ function __wbg_get_imports3() {
1778
+ const imports = {};
1779
+ imports.wbg = {};
1780
+ imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
1781
+ const ret = String(arg1);
1782
+ const ptr1 = passStringToWasm03(ret, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1783
+ const len1 = WASM_VECTOR_LEN3;
1784
+ getDataViewMemory03().setInt32(arg0 + 4 * 1, len1, true);
1785
+ getDataViewMemory03().setInt32(arg0 + 4 * 0, ptr1, true);
1786
+ };
1787
+ imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
1788
+ const ret = arg0.buffer;
1789
+ return ret;
1790
+ };
1791
+ imports.wbg.__wbg_call_672a4d21634d4a24 = function() {
1792
+ return handleError3(function(arg0, arg1) {
1793
+ const ret = arg0.call(arg1);
1794
+ return ret;
1795
+ }, arguments);
1796
+ };
1797
+ imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() {
1798
+ return handleError3(function(arg0, arg1, arg2) {
1799
+ const ret = arg0.call(arg1, arg2);
1800
+ return ret;
1801
+ }, arguments);
1802
+ };
1803
+ imports.wbg.__wbg_crypto_86f2631e91b51511 = function(arg0) {
1804
+ const ret = arg0.crypto;
1805
+ return ret;
1806
+ };
1807
+ imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
1808
+ const ret = arg0.done;
1809
+ return ret;
1810
+ };
1811
+ imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
1812
+ const ret = Object.entries(arg0);
1813
+ return ret;
1814
+ };
1815
+ imports.wbg.__wbg_getRandomValues_b3f15fcbfabb0f8b = function() {
1816
+ return handleError3(function(arg0, arg1) {
1817
+ arg0.getRandomValues(arg1);
1818
+ }, arguments);
1819
+ };
1820
+ imports.wbg.__wbg_get_67b2ba62fc30de12 = function() {
1821
+ return handleError3(function(arg0, arg1) {
1822
+ const ret = Reflect.get(arg0, arg1);
1823
+ return ret;
1824
+ }, arguments);
1825
+ };
1826
+ imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
1827
+ const ret = arg0[arg1 >>> 0];
1828
+ return ret;
1829
+ };
1830
+ imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
1831
+ const ret = arg0[arg1];
1832
+ return ret;
1833
+ };
1834
+ imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
1835
+ let result;
1836
+ try {
1837
+ result = arg0 instanceof ArrayBuffer;
1838
+ } catch (_) {
1839
+ result = false;
1937
1840
  }
1938
- return WasmExportedEd25519SeedV1.__wrap(ret[0]);
1939
- }
1940
- execute_request_json() {
1941
- let deferred1_0;
1942
- let deferred1_1;
1841
+ const ret = result;
1842
+ return ret;
1843
+ };
1844
+ imports.wbg.__wbg_instanceof_Map_f3469ce2244d2430 = function(arg0) {
1845
+ let result;
1943
1846
  try {
1944
- const ret = wasm3.wasmwalletcustodyseedexportsessionv1_execute_request_json(this.__wbg_ptr);
1945
- deferred1_0 = ret[0];
1946
- deferred1_1 = ret[1];
1947
- return getStringFromWasm03(ret[0], ret[1]);
1948
- } finally {
1949
- wasm3.__wbindgen_free(deferred1_0, deferred1_1, 1);
1847
+ result = arg0 instanceof Map;
1848
+ } catch (_) {
1849
+ result = false;
1950
1850
  }
1951
- }
1952
- constructor(admission_json, application_json, client_participant_id, signing_worker_participant_id, factor_secret, envelope_binding_json, envelope_nonce, envelope_ciphertext, envelope_aad_hash, envelope_ciphertext_digest, recipient_key_material, deriver_a_seal_seed, deriver_b_seal_seed) {
1953
- const ptr0 = passStringToWasm03(admission_json, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1954
- const len0 = WASM_VECTOR_LEN3;
1955
- const ptr1 = passStringToWasm03(application_json, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1956
- const len1 = WASM_VECTOR_LEN3;
1957
- const ptr2 = passArray8ToWasm03(factor_secret, wasm3.__wbindgen_malloc);
1958
- const len2 = WASM_VECTOR_LEN3;
1959
- const ptr3 = passStringToWasm03(envelope_binding_json, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1960
- const len3 = WASM_VECTOR_LEN3;
1961
- const ptr4 = passArray8ToWasm03(envelope_nonce, wasm3.__wbindgen_malloc);
1962
- const len4 = WASM_VECTOR_LEN3;
1963
- const ptr5 = passArray8ToWasm03(envelope_ciphertext, wasm3.__wbindgen_malloc);
1964
- const len5 = WASM_VECTOR_LEN3;
1965
- const ptr6 = passArray8ToWasm03(envelope_aad_hash, wasm3.__wbindgen_malloc);
1966
- const len6 = WASM_VECTOR_LEN3;
1967
- const ptr7 = passArray8ToWasm03(envelope_ciphertext_digest, wasm3.__wbindgen_malloc);
1968
- const len7 = WASM_VECTOR_LEN3;
1969
- const ptr8 = passArray8ToWasm03(recipient_key_material, wasm3.__wbindgen_malloc);
1970
- const len8 = WASM_VECTOR_LEN3;
1971
- const ptr9 = passArray8ToWasm03(deriver_a_seal_seed, wasm3.__wbindgen_malloc);
1972
- const len9 = WASM_VECTOR_LEN3;
1973
- const ptr10 = passArray8ToWasm03(deriver_b_seal_seed, wasm3.__wbindgen_malloc);
1974
- const len10 = WASM_VECTOR_LEN3;
1975
- const ret = wasm3.wasmwalletcustodyseedexportsessionv1_new(ptr0, len0, ptr1, len1, client_participant_id, signing_worker_participant_id, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, ptr8, len8, ptr9, len9, ptr10, len10);
1976
- if (ret[2]) {
1977
- throw takeFromExternrefTable03(ret[1]);
1851
+ const ret = result;
1852
+ return ret;
1853
+ };
1854
+ imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
1855
+ let result;
1856
+ try {
1857
+ result = arg0 instanceof Uint8Array;
1858
+ } catch (_) {
1859
+ result = false;
1978
1860
  }
1979
- this.__wbg_ptr = ret[0];
1980
- WasmWalletCustodySeedExportSessionV1Finalization.register(this, this.__wbg_ptr, this);
1981
- return this;
1982
- }
1983
- }
1984
- if (Symbol.dispose)
1985
- WasmWalletCustodySeedExportSessionV1.prototype[Symbol.dispose] = WasmWalletCustodySeedExportSessionV1.prototype.free;
1986
- function ed25519_yao_lane_source_from_wallet_seed_v1(factor_secret, envelope_binding_json, envelope_nonce, envelope_ciphertext, envelope_aad_hash, envelope_ciphertext_digest, application_binding_digest, wallet_key_id, enrollment_id, revocation_epoch, registered_public_key) {
1987
- const ptr0 = passArray8ToWasm03(factor_secret, wasm3.__wbindgen_malloc);
1988
- const len0 = WASM_VECTOR_LEN3;
1989
- const ptr1 = passStringToWasm03(envelope_binding_json, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
1990
- const len1 = WASM_VECTOR_LEN3;
1991
- const ptr2 = passArray8ToWasm03(envelope_nonce, wasm3.__wbindgen_malloc);
1992
- const len2 = WASM_VECTOR_LEN3;
1993
- const ptr3 = passArray8ToWasm03(envelope_ciphertext, wasm3.__wbindgen_malloc);
1994
- const len3 = WASM_VECTOR_LEN3;
1995
- const ptr4 = passArray8ToWasm03(envelope_aad_hash, wasm3.__wbindgen_malloc);
1996
- const len4 = WASM_VECTOR_LEN3;
1997
- const ptr5 = passArray8ToWasm03(envelope_ciphertext_digest, wasm3.__wbindgen_malloc);
1998
- const len5 = WASM_VECTOR_LEN3;
1999
- const ptr6 = passArray8ToWasm03(application_binding_digest, wasm3.__wbindgen_malloc);
2000
- const len6 = WASM_VECTOR_LEN3;
2001
- const ptr7 = passStringToWasm03(wallet_key_id, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
2002
- const len7 = WASM_VECTOR_LEN3;
2003
- const ptr8 = passStringToWasm03(enrollment_id, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
2004
- const len8 = WASM_VECTOR_LEN3;
2005
- const ptr9 = passArray8ToWasm03(registered_public_key, wasm3.__wbindgen_malloc);
2006
- const len9 = WASM_VECTOR_LEN3;
2007
- const ret = wasm3.ed25519_yao_lane_source_from_wallet_seed_v1(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, ptr8, len8, revocation_epoch, ptr9, len9);
2008
- if (ret[2]) {
2009
- throw takeFromExternrefTable03(ret[1]);
2010
- }
2011
- return WasmEd25519YaoLaneSourceV1.__wrap(ret[0]);
2012
- }
2013
- function __wbg_get_imports3() {
2014
- const import0 = {
2015
- __proto__: null,
2016
- __wbg_Error_92b29b0548f8b746: function(arg0, arg1) {
2017
- const ret = Error(getStringFromWasm03(arg0, arg1));
2018
- return ret;
2019
- },
2020
- __wbg_Number_9a4e0ecb0fa16705: function(arg0) {
2021
- const ret = Number(arg0);
2022
- return ret;
2023
- },
2024
- __wbg_String_8564e559799eccda: function(arg0, arg1) {
2025
- const ret = String(arg1);
2026
- const ptr1 = passStringToWasm03(ret, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
2027
- const len1 = WASM_VECTOR_LEN3;
2028
- getDataViewMemory03().setInt32(arg0 + 4 * 1, len1, true);
2029
- getDataViewMemory03().setInt32(arg0 + 4 * 0, ptr1, true);
2030
- },
2031
- __wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f: function(arg0, arg1) {
2032
- const v = arg1;
2033
- const ret = typeof v === "bigint" ? v : undefined;
2034
- getDataViewMemory03().setBigInt64(arg0 + 8 * 1, isLikeNone3(ret) ? BigInt(0) : ret, true);
2035
- getDataViewMemory03().setInt32(arg0 + 4 * 0, !isLikeNone3(ret), true);
2036
- },
2037
- __wbg___wbindgen_boolean_get_fa956cfa2d1bd751: function(arg0) {
2038
- const v = arg0;
2039
- const ret = typeof v === "boolean" ? v : undefined;
2040
- return isLikeNone3(ret) ? 16777215 : ret ? 1 : 0;
2041
- },
2042
- __wbg___wbindgen_debug_string_c25d447a39f5578f: function(arg0, arg1) {
2043
- const ret = debugString2(arg1);
2044
- const ptr1 = passStringToWasm03(ret, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
2045
- const len1 = WASM_VECTOR_LEN3;
2046
- getDataViewMemory03().setInt32(arg0 + 4 * 1, len1, true);
2047
- getDataViewMemory03().setInt32(arg0 + 4 * 0, ptr1, true);
2048
- },
2049
- __wbg___wbindgen_in_aca499c5de7ff5e5: function(arg0, arg1) {
2050
- const ret = arg0 in arg1;
2051
- return ret;
2052
- },
2053
- __wbg___wbindgen_is_bigint_2f76dc55065b4273: function(arg0) {
2054
- const ret = typeof arg0 === "bigint";
2055
- return ret;
2056
- },
2057
- __wbg___wbindgen_is_function_1ff95bcc5517c252: function(arg0) {
2058
- const ret = typeof arg0 === "function";
2059
- return ret;
2060
- },
2061
- __wbg___wbindgen_is_object_a27215656b807791: function(arg0) {
2062
- const val = arg0;
2063
- const ret = typeof val === "object" && val !== null;
2064
- return ret;
2065
- },
2066
- __wbg___wbindgen_is_string_ea5e6cc2e4141dfe: function(arg0) {
2067
- const ret = typeof arg0 === "string";
2068
- return ret;
2069
- },
2070
- __wbg___wbindgen_is_undefined_c05833b95a3cf397: function(arg0) {
2071
- const ret = arg0 === undefined;
2072
- return ret;
2073
- },
2074
- __wbg___wbindgen_jsval_eq_e659fcf7b0e32763: function(arg0, arg1) {
2075
- const ret = arg0 === arg1;
2076
- return ret;
2077
- },
2078
- __wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170: function(arg0, arg1) {
2079
- const ret = arg0 == arg1;
2080
- return ret;
2081
- },
2082
- __wbg___wbindgen_number_get_394265ed1e1b84ee: function(arg0, arg1) {
2083
- const obj = arg1;
2084
- const ret = typeof obj === "number" ? obj : undefined;
2085
- getDataViewMemory03().setFloat64(arg0 + 8 * 1, isLikeNone3(ret) ? 0 : ret, true);
2086
- getDataViewMemory03().setInt32(arg0 + 4 * 0, !isLikeNone3(ret), true);
2087
- },
2088
- __wbg___wbindgen_string_get_b0ca35b86a603356: function(arg0, arg1) {
2089
- const obj = arg1;
2090
- const ret = typeof obj === "string" ? obj : undefined;
2091
- var ptr1 = isLikeNone3(ret) ? 0 : passStringToWasm03(ret, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
2092
- var len1 = WASM_VECTOR_LEN3;
2093
- getDataViewMemory03().setInt32(arg0 + 4 * 1, len1, true);
2094
- getDataViewMemory03().setInt32(arg0 + 4 * 0, ptr1, true);
2095
- },
2096
- __wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
2097
- throw new Error(getStringFromWasm03(arg0, arg1));
2098
- },
2099
- __wbg_call_8a2dd23819f8a60a: function() {
2100
- return handleError3(function(arg0, arg1) {
2101
- const ret = arg0.call(arg1);
2102
- return ret;
2103
- }, arguments);
2104
- },
2105
- __wbg_call_a6e5c5dce5018821: function() {
2106
- return handleError3(function(arg0, arg1, arg2) {
2107
- const ret = arg0.call(arg1, arg2);
2108
- return ret;
2109
- }, arguments);
2110
- },
2111
- __wbg_crypto_38df2bab126b63dc: function(arg0) {
2112
- const ret = arg0.crypto;
2113
- return ret;
2114
- },
2115
- __wbg_done_89b2b13e91a60321: function(arg0) {
2116
- const ret = arg0.done;
2117
- return ret;
2118
- },
2119
- __wbg_entries_015dc610cd81ede0: function(arg0) {
2120
- const ret = Object.entries(arg0);
2121
- return ret;
2122
- },
2123
- __wbg_getRandomValues_c44a50d8cfdaebeb: function() {
2124
- return handleError3(function(arg0, arg1) {
2125
- arg0.getRandomValues(arg1);
2126
- }, arguments);
2127
- },
2128
- __wbg_get_507a50627bffa49b: function(arg0, arg1) {
2129
- const ret = arg0[arg1 >>> 0];
2130
- return ret;
2131
- },
2132
- __wbg_get_78f252d074a84d0b: function() {
2133
- return handleError3(function(arg0, arg1) {
2134
- const ret = Reflect.get(arg0, arg1);
2135
- return ret;
2136
- }, arguments);
2137
- },
2138
- __wbg_get_c7eb1f358a7654df: function() {
2139
- return handleError3(function(arg0, arg1) {
2140
- const ret = Reflect.get(arg0, arg1);
2141
- return ret;
2142
- }, arguments);
2143
- },
2144
- __wbg_get_unchecked_6e0ad6d2a41b06f6: function(arg0, arg1) {
2145
- const ret = arg0[arg1 >>> 0];
2146
- return ret;
2147
- },
2148
- __wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
2149
- const ret = arg0[arg1];
2150
- return ret;
2151
- },
2152
- __wbg_instanceof_ArrayBuffer_4480b9e0068a8adb: function(arg0) {
2153
- let result;
2154
- try {
2155
- result = arg0 instanceof ArrayBuffer;
2156
- } catch (_) {
2157
- result = false;
2158
- }
2159
- const ret = result;
2160
- return ret;
2161
- },
2162
- __wbg_instanceof_Map_e5b5e3db98422fcc: function(arg0) {
2163
- let result;
2164
- try {
2165
- result = arg0 instanceof Map;
2166
- } catch (_) {
2167
- result = false;
2168
- }
2169
- const ret = result;
2170
- return ret;
2171
- },
2172
- __wbg_instanceof_Uint8Array_309b927aaf7a3fc7: function(arg0) {
2173
- let result;
2174
- try {
2175
- result = arg0 instanceof Uint8Array;
2176
- } catch (_) {
2177
- result = false;
2178
- }
2179
- const ret = result;
2180
- return ret;
2181
- },
2182
- __wbg_isArray_0677c962b281d01a: function(arg0) {
2183
- const ret = Array.isArray(arg0);
2184
- return ret;
2185
- },
2186
- __wbg_isSafeInteger_04f36e4056f1b851: function(arg0) {
2187
- const ret = Number.isSafeInteger(arg0);
2188
- return ret;
2189
- },
2190
- __wbg_iterator_6f722e4a93058b71: function() {
2191
- const ret = Symbol.iterator;
2192
- return ret;
2193
- },
2194
- __wbg_length_1f0964f4a5e2c6d8: function(arg0) {
2195
- const ret = arg0.length;
2196
- return ret;
2197
- },
2198
- __wbg_length_370319915dc99107: function(arg0) {
2199
- const ret = arg0.length;
2200
- return ret;
2201
- },
2202
- __wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
2203
- const ret = arg0.msCrypto;
2204
- return ret;
2205
- },
2206
- __wbg_new_cd45aabdf6073e84: function(arg0) {
2207
- const ret = new Uint8Array(arg0);
2208
- return ret;
2209
- },
2210
- __wbg_new_da52cf8fe3429cb2: function() {
2211
- const ret = new Object;
2212
- return ret;
2213
- },
2214
- __wbg_new_with_length_e6785c33c8e4cce8: function(arg0) {
2215
- const ret = new Uint8Array(arg0 >>> 0);
2216
- return ret;
2217
- },
2218
- __wbg_next_6dbf2c0ac8cde20f: function(arg0) {
2219
- const ret = arg0.next;
2220
- return ret;
2221
- },
2222
- __wbg_next_71f2aa1cb3d1e37e: function() {
2223
- return handleError3(function(arg0) {
2224
- const ret = arg0.next();
2225
- return ret;
2226
- }, arguments);
2227
- },
2228
- __wbg_node_84ea875411254db1: function(arg0) {
2229
- const ret = arg0.node;
2230
- return ret;
2231
- },
2232
- __wbg_process_44c7a14e11e9f69e: function(arg0) {
2233
- const ret = arg0.process;
2234
- return ret;
2235
- },
2236
- __wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {
2237
- Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
2238
- },
2239
- __wbg_randomFillSync_6c25eac9869eb53c: function() {
2240
- return handleError3(function(arg0, arg1) {
2241
- arg0.randomFillSync(arg1);
2242
- }, arguments);
2243
- },
2244
- __wbg_require_b4edbdcf3e2a1ef0: function() {
2245
- return handleError3(function() {
2246
- const ret = module_router_ab_ed25519_yao_client.require;
2247
- return ret;
2248
- }, arguments);
2249
- },
2250
- __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
2251
- arg0[arg1] = arg2;
2252
- },
2253
- __wbg_set_8535240470bf2500: function() {
2254
- return handleError3(function(arg0, arg1, arg2) {
2255
- const ret = Reflect.set(arg0, arg1, arg2);
2256
- return ret;
2257
- }, arguments);
2258
- },
2259
- __wbg_static_accessor_GLOBAL_4ef717fb391d88b7: function() {
2260
- const ret = typeof global === "undefined" ? null : global;
2261
- return isLikeNone3(ret) ? 0 : addToExternrefTable03(ret);
2262
- },
2263
- __wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4: function() {
2264
- const ret = typeof globalThis === "undefined" ? null : globalThis;
2265
- return isLikeNone3(ret) ? 0 : addToExternrefTable03(ret);
2266
- },
2267
- __wbg_static_accessor_SELF_146583524fe1469b: function() {
2268
- const ret = typeof self === "undefined" ? null : self;
2269
- return isLikeNone3(ret) ? 0 : addToExternrefTable03(ret);
2270
- },
2271
- __wbg_static_accessor_WINDOW_f2829a2234d7819e: function() {
2272
- const ret = typeof window === "undefined" ? null : window;
2273
- return isLikeNone3(ret) ? 0 : addToExternrefTable03(ret);
2274
- },
2275
- __wbg_subarray_3ed232c8a6baee09: function(arg0, arg1, arg2) {
2276
- const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
2277
- return ret;
2278
- },
2279
- __wbg_value_a5d5488a9589444a: function(arg0) {
2280
- const ret = arg0.value;
2281
- return ret;
2282
- },
2283
- __wbg_versions_276b2795b1c6a219: function(arg0) {
2284
- const ret = arg0.versions;
2285
- return ret;
2286
- },
2287
- __wbindgen_cast_0000000000000001: function(arg0) {
2288
- const ret = arg0;
2289
- return ret;
2290
- },
2291
- __wbindgen_cast_0000000000000002: function(arg0) {
2292
- const ret = arg0;
2293
- return ret;
2294
- },
2295
- __wbindgen_cast_0000000000000003: function(arg0, arg1) {
2296
- const ret = getArrayU8FromWasm0(arg0, arg1);
1861
+ const ret = result;
1862
+ return ret;
1863
+ };
1864
+ imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
1865
+ const ret = Array.isArray(arg0);
1866
+ return ret;
1867
+ };
1868
+ imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
1869
+ const ret = Number.isSafeInteger(arg0);
1870
+ return ret;
1871
+ };
1872
+ imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
1873
+ const ret = Symbol.iterator;
1874
+ return ret;
1875
+ };
1876
+ imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
1877
+ const ret = arg0.length;
1878
+ return ret;
1879
+ };
1880
+ imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
1881
+ const ret = arg0.length;
1882
+ return ret;
1883
+ };
1884
+ imports.wbg.__wbg_msCrypto_d562bbe83e0d4b91 = function(arg0) {
1885
+ const ret = arg0.msCrypto;
1886
+ return ret;
1887
+ };
1888
+ imports.wbg.__wbg_new_405e22f390576ce2 = function() {
1889
+ const ret = new Object;
1890
+ return ret;
1891
+ };
1892
+ imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
1893
+ const ret = new Uint8Array(arg0);
1894
+ return ret;
1895
+ };
1896
+ imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
1897
+ const ret = new Function(getStringFromWasm03(arg0, arg1));
1898
+ return ret;
1899
+ };
1900
+ imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
1901
+ const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
1902
+ return ret;
1903
+ };
1904
+ imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
1905
+ const ret = new Uint8Array(arg0 >>> 0);
1906
+ return ret;
1907
+ };
1908
+ imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
1909
+ const ret = arg0.next;
1910
+ return ret;
1911
+ };
1912
+ imports.wbg.__wbg_next_6574e1a8a62d1055 = function() {
1913
+ return handleError3(function(arg0) {
1914
+ const ret = arg0.next();
2297
1915
  return ret;
2298
- },
2299
- __wbindgen_cast_0000000000000004: function(arg0, arg1) {
2300
- const ret = getStringFromWasm03(arg0, arg1);
1916
+ }, arguments);
1917
+ };
1918
+ imports.wbg.__wbg_node_e1f24f89a7336c2e = function(arg0) {
1919
+ const ret = arg0.node;
1920
+ return ret;
1921
+ };
1922
+ imports.wbg.__wbg_process_3975fd6c72f520aa = function(arg0) {
1923
+ const ret = arg0.process;
1924
+ return ret;
1925
+ };
1926
+ imports.wbg.__wbg_randomFillSync_f8c153b79f285817 = function() {
1927
+ return handleError3(function(arg0, arg1) {
1928
+ arg0.randomFillSync(arg1);
1929
+ }, arguments);
1930
+ };
1931
+ imports.wbg.__wbg_require_b74f47fc2d022fd6 = function() {
1932
+ return handleError3(function() {
1933
+ const ret = module_router_ab_ed25519_yao_client.require;
2301
1934
  return ret;
2302
- },
2303
- __wbindgen_cast_0000000000000005: function(arg0) {
2304
- const ret = BigInt.asUintN(64, arg0);
1935
+ }, arguments);
1936
+ };
1937
+ imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
1938
+ arg0[arg1] = arg2;
1939
+ };
1940
+ imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
1941
+ arg0.set(arg1, arg2 >>> 0);
1942
+ };
1943
+ imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() {
1944
+ return handleError3(function(arg0, arg1, arg2) {
1945
+ const ret = Reflect.set(arg0, arg1, arg2);
2305
1946
  return ret;
2306
- },
2307
- __wbindgen_init_externref_table: function() {
2308
- const table = wasm3.__wbindgen_externrefs;
2309
- const offset = table.grow(4);
2310
- table.set(0, undefined);
2311
- table.set(offset + 0, undefined);
2312
- table.set(offset + 1, null);
2313
- table.set(offset + 2, true);
2314
- table.set(offset + 3, false);
2315
- }
1947
+ }, arguments);
2316
1948
  };
2317
- return {
2318
- __proto__: null,
2319
- "./router_ab_ed25519_yao_client_bg.js": import0
2320
- };
2321
- }
2322
- var WasmActivatedClientV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm3.__wbg_wasmactivatedclientv1_free(ptr, 1));
2323
- var WasmClientSigningShareV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm3.__wbg_wasmclientsigningsharev1_free(ptr, 1));
2324
- var WasmEd25519YaoClientRootExportSessionV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm3.__wbg_wasmed25519yaoclientrootexportsessionv1_free(ptr, 1));
2325
- var WasmEd25519YaoLaneClientV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm3.__wbg_wasmed25519yaolaneclientv1_free(ptr, 1));
2326
- var WasmEd25519YaoLaneSourceV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm3.__wbg_wasmed25519yaolanesourcev1_free(ptr, 1));
2327
- var WasmEd25519YaoSourcePreservingRegistrationSessionV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm3.__wbg_wasmed25519yaosourcepreservingregistrationsessionv1_free(ptr, 1));
2328
- var WasmExportedEd25519SeedV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm3.__wbg_wasmexporteded25519seedv1_free(ptr, 1));
2329
- var WasmOrdinaryEd25519ActivationClientMaterialV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm3.__wbg_wasmordinaryed25519activationclientmaterialv1_free(ptr, 1));
2330
- var WasmWalletCustodySeedExportSessionV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm3.__wbg_wasmwalletcustodyseedexportsessionv1_free(ptr, 1));
2331
- function addToExternrefTable03(obj) {
2332
- const idx = wasm3.__externref_table_alloc();
2333
- wasm3.__wbindgen_externrefs.set(idx, obj);
2334
- return idx;
2335
- }
2336
- function _assertClass2(instance, klass) {
2337
- if (!(instance instanceof klass)) {
2338
- throw new Error(`expected instance of ${klass.name}`);
2339
- }
2340
- }
2341
- function debugString2(val) {
2342
- const type = typeof val;
2343
- if (type == "number" || type == "boolean" || val == null) {
2344
- return `${val}`;
2345
- }
2346
- if (type == "string") {
2347
- return `"${val}"`;
2348
- }
2349
- if (type == "symbol") {
2350
- const description = val.description;
2351
- if (description == null) {
2352
- return "Symbol";
2353
- } else {
2354
- return `Symbol(${description})`;
2355
- }
2356
- }
2357
- if (type == "function") {
2358
- const name = val.name;
2359
- if (typeof name == "string" && name.length > 0) {
2360
- return `Function(${name})`;
2361
- } else {
2362
- return "Function";
2363
- }
2364
- }
2365
- if (Array.isArray(val)) {
2366
- const length = val.length;
2367
- let debug = "[";
2368
- if (length > 0) {
2369
- debug += debugString2(val[0]);
2370
- }
2371
- for (let i = 1;i < length; i++) {
2372
- debug += ", " + debugString2(val[i]);
2373
- }
2374
- debug += "]";
2375
- return debug;
2376
- }
2377
- const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
2378
- let className;
2379
- if (builtInMatches && builtInMatches.length > 1) {
2380
- className = builtInMatches[1];
2381
- } else {
2382
- return toString.call(val);
2383
- }
2384
- if (className == "Object") {
2385
- try {
2386
- return "Object(" + JSON.stringify(val) + ")";
2387
- } catch (_) {
2388
- return "Object";
2389
- }
2390
- }
2391
- if (val instanceof Error) {
2392
- return `${val.name}: ${val.message}
2393
- ${val.stack}`;
2394
- }
2395
- return className;
2396
- }
2397
- function getArrayU8FromWasm0(ptr, len) {
2398
- ptr = ptr >>> 0;
2399
- return getUint8ArrayMemory03().subarray(ptr / 1, ptr / 1 + len);
2400
- }
2401
- var cachedDataViewMemory03 = null;
2402
- function getDataViewMemory03() {
2403
- if (cachedDataViewMemory03 === null || cachedDataViewMemory03.buffer.detached === true || cachedDataViewMemory03.buffer.detached === undefined && cachedDataViewMemory03.buffer !== wasm3.memory.buffer) {
2404
- cachedDataViewMemory03 = new DataView(wasm3.memory.buffer);
2405
- }
2406
- return cachedDataViewMemory03;
2407
- }
2408
- function getStringFromWasm03(ptr, len) {
2409
- return decodeText(ptr >>> 0, len);
2410
- }
2411
- var cachedUint8ArrayMemory03 = null;
2412
- function getUint8ArrayMemory03() {
2413
- if (cachedUint8ArrayMemory03 === null || cachedUint8ArrayMemory03.byteLength === 0) {
2414
- cachedUint8ArrayMemory03 = new Uint8Array(wasm3.memory.buffer);
2415
- }
2416
- return cachedUint8ArrayMemory03;
2417
- }
2418
- function handleError3(f, args) {
2419
- try {
2420
- return f.apply(this, args);
2421
- } catch (e) {
2422
- const idx = addToExternrefTable03(e);
2423
- wasm3.__wbindgen_exn_store(idx);
2424
- }
2425
- }
2426
- function isLikeNone3(x) {
2427
- return x === undefined || x === null;
2428
- }
2429
- function passArray8ToWasm03(arg, malloc) {
2430
- const ptr = malloc(arg.length * 1, 1) >>> 0;
2431
- getUint8ArrayMemory03().set(arg, ptr / 1);
2432
- WASM_VECTOR_LEN3 = arg.length;
2433
- return ptr;
2434
- }
2435
- function passStringToWasm03(arg, malloc, realloc) {
2436
- if (realloc === undefined) {
2437
- const buf = cachedTextEncoder3.encode(arg);
2438
- const ptr = malloc(buf.length, 1) >>> 0;
2439
- getUint8ArrayMemory03().subarray(ptr, ptr + buf.length).set(buf);
2440
- WASM_VECTOR_LEN3 = buf.length;
2441
- return ptr;
2442
- }
2443
- let len = arg.length;
2444
- let ptr = malloc(len, 1) >>> 0;
2445
- const mem = getUint8ArrayMemory03();
2446
- let offset = 0;
2447
- for (;offset < len; offset++) {
2448
- const code = arg.charCodeAt(offset);
2449
- if (code > 127)
2450
- break;
2451
- mem[ptr + offset] = code;
2452
- }
2453
- if (offset !== len) {
2454
- if (offset !== 0) {
2455
- arg = arg.slice(offset);
2456
- }
2457
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
2458
- const view = getUint8ArrayMemory03().subarray(ptr + offset, ptr + len);
2459
- const ret = cachedTextEncoder3.encodeInto(arg, view);
2460
- offset += ret.written;
2461
- ptr = realloc(ptr, len, offset, 1) >>> 0;
2462
- }
2463
- WASM_VECTOR_LEN3 = offset;
2464
- return ptr;
2465
- }
2466
- function takeFromExternrefTable03(idx) {
2467
- const value = wasm3.__wbindgen_externrefs.get(idx);
2468
- wasm3.__externref_table_dealloc(idx);
2469
- return value;
2470
- }
2471
- var cachedTextDecoder3 = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
2472
- cachedTextDecoder3.decode();
2473
- var MAX_SAFARI_DECODE_BYTES = 2146435072;
2474
- var numBytesDecoded = 0;
2475
- function decodeText(ptr, len) {
2476
- numBytesDecoded += len;
2477
- if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
2478
- cachedTextDecoder3 = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
2479
- cachedTextDecoder3.decode();
2480
- numBytesDecoded = len;
2481
- }
2482
- return cachedTextDecoder3.decode(getUint8ArrayMemory03().subarray(ptr, ptr + len));
2483
- }
2484
- var cachedTextEncoder3 = new TextEncoder;
2485
- if (!("encodeInto" in cachedTextEncoder3)) {
2486
- cachedTextEncoder3.encodeInto = function(arg, view) {
2487
- const buf = cachedTextEncoder3.encode(arg);
2488
- view.set(buf);
2489
- return {
2490
- read: arg.length,
2491
- written: buf.length
2492
- };
1949
+ imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
1950
+ const ret = typeof global === "undefined" ? null : global;
1951
+ return isLikeNone3(ret) ? 0 : addToExternrefTable03(ret);
1952
+ };
1953
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
1954
+ const ret = typeof globalThis === "undefined" ? null : globalThis;
1955
+ return isLikeNone3(ret) ? 0 : addToExternrefTable03(ret);
1956
+ };
1957
+ imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
1958
+ const ret = typeof self === "undefined" ? null : self;
1959
+ return isLikeNone3(ret) ? 0 : addToExternrefTable03(ret);
1960
+ };
1961
+ imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
1962
+ const ret = typeof window === "undefined" ? null : window;
1963
+ return isLikeNone3(ret) ? 0 : addToExternrefTable03(ret);
1964
+ };
1965
+ imports.wbg.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
1966
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
1967
+ return ret;
1968
+ };
1969
+ imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
1970
+ const ret = arg0.value;
1971
+ return ret;
2493
1972
  };
1973
+ imports.wbg.__wbg_versions_4e31226f5e8dc909 = function(arg0) {
1974
+ const ret = arg0.versions;
1975
+ return ret;
1976
+ };
1977
+ imports.wbg.__wbindgen_as_number = function(arg0) {
1978
+ const ret = +arg0;
1979
+ return ret;
1980
+ };
1981
+ imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
1982
+ const ret = arg0;
1983
+ return ret;
1984
+ };
1985
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
1986
+ const ret = BigInt.asUintN(64, arg0);
1987
+ return ret;
1988
+ };
1989
+ imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
1990
+ const v = arg1;
1991
+ const ret = typeof v === "bigint" ? v : undefined;
1992
+ getDataViewMemory03().setBigInt64(arg0 + 8 * 1, isLikeNone3(ret) ? BigInt(0) : ret, true);
1993
+ getDataViewMemory03().setInt32(arg0 + 4 * 0, !isLikeNone3(ret), true);
1994
+ };
1995
+ imports.wbg.__wbindgen_boolean_get = function(arg0) {
1996
+ const v = arg0;
1997
+ const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
1998
+ return ret;
1999
+ };
2000
+ imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
2001
+ const ret = debugString2(arg1);
2002
+ const ptr1 = passStringToWasm03(ret, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
2003
+ const len1 = WASM_VECTOR_LEN3;
2004
+ getDataViewMemory03().setInt32(arg0 + 4 * 1, len1, true);
2005
+ getDataViewMemory03().setInt32(arg0 + 4 * 0, ptr1, true);
2006
+ };
2007
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2008
+ const ret = new Error(getStringFromWasm03(arg0, arg1));
2009
+ return ret;
2010
+ };
2011
+ imports.wbg.__wbindgen_in = function(arg0, arg1) {
2012
+ const ret = arg0 in arg1;
2013
+ return ret;
2014
+ };
2015
+ imports.wbg.__wbindgen_init_externref_table = function() {
2016
+ const table = wasm3.__wbindgen_export_4;
2017
+ const offset = table.grow(4);
2018
+ table.set(0, undefined);
2019
+ table.set(offset + 0, undefined);
2020
+ table.set(offset + 1, null);
2021
+ table.set(offset + 2, true);
2022
+ table.set(offset + 3, false);
2023
+ };
2024
+ imports.wbg.__wbindgen_is_bigint = function(arg0) {
2025
+ const ret = typeof arg0 === "bigint";
2026
+ return ret;
2027
+ };
2028
+ imports.wbg.__wbindgen_is_function = function(arg0) {
2029
+ const ret = typeof arg0 === "function";
2030
+ return ret;
2031
+ };
2032
+ imports.wbg.__wbindgen_is_object = function(arg0) {
2033
+ const val = arg0;
2034
+ const ret = typeof val === "object" && val !== null;
2035
+ return ret;
2036
+ };
2037
+ imports.wbg.__wbindgen_is_string = function(arg0) {
2038
+ const ret = typeof arg0 === "string";
2039
+ return ret;
2040
+ };
2041
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
2042
+ const ret = arg0 === undefined;
2043
+ return ret;
2044
+ };
2045
+ imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
2046
+ const ret = arg0 === arg1;
2047
+ return ret;
2048
+ };
2049
+ imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
2050
+ const ret = arg0 == arg1;
2051
+ return ret;
2052
+ };
2053
+ imports.wbg.__wbindgen_memory = function() {
2054
+ const ret = wasm3.memory;
2055
+ return ret;
2056
+ };
2057
+ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
2058
+ const obj = arg1;
2059
+ const ret = typeof obj === "number" ? obj : undefined;
2060
+ getDataViewMemory03().setFloat64(arg0 + 8 * 1, isLikeNone3(ret) ? 0 : ret, true);
2061
+ getDataViewMemory03().setInt32(arg0 + 4 * 0, !isLikeNone3(ret), true);
2062
+ };
2063
+ imports.wbg.__wbindgen_number_new = function(arg0) {
2064
+ const ret = arg0;
2065
+ return ret;
2066
+ };
2067
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2068
+ const obj = arg1;
2069
+ const ret = typeof obj === "string" ? obj : undefined;
2070
+ var ptr1 = isLikeNone3(ret) ? 0 : passStringToWasm03(ret, wasm3.__wbindgen_malloc, wasm3.__wbindgen_realloc);
2071
+ var len1 = WASM_VECTOR_LEN3;
2072
+ getDataViewMemory03().setInt32(arg0 + 4 * 1, len1, true);
2073
+ getDataViewMemory03().setInt32(arg0 + 4 * 0, ptr1, true);
2074
+ };
2075
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2076
+ const ret = getStringFromWasm03(arg0, arg1);
2077
+ return ret;
2078
+ };
2079
+ imports.wbg.__wbindgen_throw = function(arg0, arg1) {
2080
+ throw new Error(getStringFromWasm03(arg0, arg1));
2081
+ };
2082
+ return imports;
2494
2083
  }
2495
- var WASM_VECTOR_LEN3 = 0;
2496
- var wasmModule;
2497
- var wasmInstance;
2498
- var wasm3;
2084
+ function __wbg_init_memory3(imports, memory) {}
2499
2085
  function __wbg_finalize_init3(instance, module) {
2500
- wasmInstance = instance;
2501
2086
  wasm3 = instance.exports;
2502
- wasmModule = module;
2087
+ __wbg_init3.__wbindgen_wasm_module = module;
2503
2088
  cachedDataViewMemory03 = null;
2504
2089
  cachedUint8ArrayMemory03 = null;
2505
2090
  wasm3.__wbindgen_start();
2506
2091
  return wasm3;
2507
2092
  }
2508
- async function __wbg_load3(module, imports) {
2509
- if (typeof Response === "function" && module instanceof Response) {
2510
- if (typeof WebAssembly.instantiateStreaming === "function") {
2511
- try {
2512
- return await WebAssembly.instantiateStreaming(module, imports);
2513
- } catch (e) {
2514
- const validResponse = module.ok && expectedResponseType(module.type);
2515
- if (validResponse && module.headers.get("Content-Type") !== "application/wasm") {
2516
- 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);
2517
- } else {
2518
- throw e;
2519
- }
2520
- }
2521
- }
2522
- const bytes = await module.arrayBuffer();
2523
- return await WebAssembly.instantiate(bytes, imports);
2524
- } else {
2525
- const instance = await WebAssembly.instantiate(module, imports);
2526
- if (instance instanceof WebAssembly.Instance) {
2527
- return { instance, module };
2528
- } else {
2529
- return instance;
2530
- }
2531
- }
2532
- function expectedResponseType(type) {
2533
- switch (type) {
2534
- case "basic":
2535
- case "cors":
2536
- case "default":
2537
- return true;
2538
- }
2539
- return false;
2540
- }
2541
- }
2542
2093
  async function __wbg_init3(module_or_path) {
2543
2094
  if (wasm3 !== undefined)
2544
2095
  return wasm3;
2545
- if (module_or_path !== undefined) {
2096
+ if (typeof module_or_path !== "undefined") {
2546
2097
  if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
2547
2098
  ({ module_or_path } = module_or_path);
2548
2099
  } else {
2549
2100
  console.warn("using deprecated parameters for the initialization function; pass a single object instead");
2550
2101
  }
2551
2102
  }
2552
- if (module_or_path === undefined) {
2103
+ if (typeof module_or_path === "undefined") {
2553
2104
  module_or_path = new URL("router_ab_ed25519_yao_client_bg.wasm", import.meta.url);
2554
2105
  }
2555
2106
  const imports = __wbg_get_imports3();
2556
2107
  if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) {
2557
2108
  module_or_path = fetch(module_or_path);
2558
2109
  }
2110
+ __wbg_init_memory3(imports);
2559
2111
  const { instance, module } = await __wbg_load3(await module_or_path, imports);
2560
2112
  return __wbg_finalize_init3(instance, module);
2561
2113
  }
2114
+ var router_ab_ed25519_yao_client_default = __wbg_init3;
2562
2115
 
2563
2116
  // src/core/walletRuntimePaths/base.ts
2564
2117
  var SEAMS_WALLET_SDK_BASE_KEY = "__SEAMS_WALLET_SDK_BASE__";
@@ -3746,7 +3299,7 @@ async function initializeNearSignerWasm() {
3746
3299
  function ignoreNearSignerPrewarmFailure() {}
3747
3300
  async function initializeEd25519YaoClientWasm() {
3748
3301
  if (!ed25519YaoClientInitPromise) {
3749
- ed25519YaoClientInitPromise = __wbg_init3({
3302
+ ed25519YaoClientInitPromise = router_ab_ed25519_yao_client_default({
3750
3303
  module_or_path: ed25519YaoClientWasmUrl
3751
3304
  }).then(() => {
3752
3305
  return;