@seams/wallet 0.5.1 → 0.5.2

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 (113) hide show
  1. package/LICENSE.md +201 -0
  2. package/THIRD_PARTY_NOTICES.md +15095 -0
  3. package/dist/.build-inputs.sha256 +1 -1
  4. package/dist/esm/SeamsWeb/signingSurface/BrowserSigningSurface.js +7 -14
  5. package/dist/esm/core/signingEngine/session/identity/exactWalletSessionReader.js +2 -27
  6. package/dist/esm/react/SeamsWeb/signingSurface/BrowserSigningSurface.js +7 -14
  7. package/dist/esm/react/core/signingEngine/session/identity/exactWalletSessionReader.js +2 -27
  8. package/dist/esm/sdk/export-private-key-viewer.js +8804 -55
  9. package/dist/esm/sdk/halo-border.js +8887 -8
  10. package/dist/esm/sdk/{host-BqwEYhX0.js → host-DNmO0eve.js} +2 -2
  11. package/dist/esm/sdk/passkey-halo-loading.js +8850 -27
  12. package/dist/{public/sdk/registrationPreparationPreload-u3ruCmpF.js → esm/sdk/registrationPreparationPreload-CwUkRwVz.js} +1 -1
  13. package/dist/esm/sdk/router_ab_ed25519_yao_client_bg.wasm +0 -0
  14. package/dist/{public/sdk/runtime-auth-Da9yQyaD.js → esm/sdk/runtime-auth-dpoaCtkK.js} +2 -2
  15. package/dist/esm/sdk/{runtime-device-link-DNlzlwrr.js → runtime-device-link-C75epnbj.js} +1 -1
  16. package/dist/{public/sdk/runtime-ecdsa-tempo-B7dBVcCI.js → esm/sdk/runtime-ecdsa-tempo-CV-E-iZG.js} +1 -1
  17. package/dist/{public/sdk/runtime-email-otp-CckVQZJC.js → esm/sdk/runtime-email-otp-V0mdMD_t.js} +1 -1
  18. package/dist/{public/sdk/runtime-export-WAiBwZL_.js → esm/sdk/runtime-export-C4HO5ysH.js} +1 -1
  19. package/dist/esm/sdk/{runtime-near-DBJ4KfFv.js → runtime-near-DlviFQWy.js} +1 -1
  20. package/dist/{public/sdk/runtime-preferences-DmH7eMHH.js → esm/sdk/runtime-preferences-DyJidFuf.js} +1 -1
  21. package/dist/esm/sdk/{runtime-recovery-kPgl9nTT.js → runtime-recovery-CHDE5gl0.js} +1 -1
  22. package/dist/esm/sdk/{runtimeContext-BorCgXo5.js → runtimeContext-D_TkUM6Z.js} +6 -38
  23. package/dist/esm/sdk/{runtimeLoader-BKQjNgXO.js → runtimeLoader-DxiLgXPm.js} +9 -9
  24. package/dist/esm/sdk/tx-confirm-ui.js +9568 -206
  25. package/dist/esm/sdk/w3a-tx-confirmer.js +8335 -206
  26. package/dist/esm/sdk/wallet-iframe-host-ecdsa.js +1 -1
  27. package/dist/esm/sdk/wallet-iframe-host-full.js +1 -1
  28. package/dist/esm/sdk/wallet-iframe-host-near.js +1 -1
  29. package/dist/esm/sdk/wallet-iframe-host-runtime.js +1 -1
  30. package/dist/esm/wasm/near_signer/pkg/wasm_signer_worker.js +4 -4
  31. package/dist/esm/wasm/near_signer/pkg/wasm_signer_worker_bg.wasm +0 -0
  32. package/dist/esm/wasm/router_ab_ecdsa_client/pkg/router_ab_ecdsa_client_bg.wasm +0 -0
  33. package/dist/esm/wasm/router_ab_ed25519_yao_client/pkg/router_ab_ed25519_yao_client_bg.wasm +0 -0
  34. package/dist/public/headers.manifest.json +1 -1
  35. package/dist/public/sdk/export-private-key-viewer.js +8804 -55
  36. package/dist/public/sdk/halo-border.js +8887 -8
  37. package/dist/public/sdk/{host-BqwEYhX0.js → host-DNmO0eve.js} +2 -2
  38. package/dist/public/sdk/passkey-halo-loading.js +8850 -27
  39. package/dist/{esm/sdk/registrationPreparationPreload-u3ruCmpF.js → public/sdk/registrationPreparationPreload-CwUkRwVz.js} +1 -1
  40. package/dist/public/sdk/router_ab_ed25519_yao_client_bg.wasm +0 -0
  41. package/dist/{esm/sdk/runtime-auth-Da9yQyaD.js → public/sdk/runtime-auth-dpoaCtkK.js} +2 -2
  42. package/dist/public/sdk/{runtime-device-link-DNlzlwrr.js → runtime-device-link-C75epnbj.js} +1 -1
  43. package/dist/{esm/sdk/runtime-ecdsa-tempo-B7dBVcCI.js → public/sdk/runtime-ecdsa-tempo-CV-E-iZG.js} +1 -1
  44. package/dist/{esm/sdk/runtime-email-otp-CckVQZJC.js → public/sdk/runtime-email-otp-V0mdMD_t.js} +1 -1
  45. package/dist/{esm/sdk/runtime-export-WAiBwZL_.js → public/sdk/runtime-export-C4HO5ysH.js} +1 -1
  46. package/dist/public/sdk/{runtime-near-DBJ4KfFv.js → runtime-near-DlviFQWy.js} +1 -1
  47. package/dist/{esm/sdk/runtime-preferences-DmH7eMHH.js → public/sdk/runtime-preferences-DyJidFuf.js} +1 -1
  48. package/dist/public/sdk/{runtime-recovery-kPgl9nTT.js → runtime-recovery-CHDE5gl0.js} +1 -1
  49. package/dist/public/sdk/{runtimeContext-BorCgXo5.js → runtimeContext-D_TkUM6Z.js} +6 -38
  50. package/dist/public/sdk/{runtimeLoader-BKQjNgXO.js → runtimeLoader-DxiLgXPm.js} +9 -9
  51. package/dist/public/sdk/tx-confirm-ui.js +9568 -206
  52. package/dist/public/sdk/w3a-tx-confirmer.js +8335 -206
  53. package/dist/public/sdk/wallet-iframe-host-ecdsa.js +1 -1
  54. package/dist/public/sdk/wallet-iframe-host-full.js +1 -1
  55. package/dist/public/sdk/wallet-iframe-host-near.js +1 -1
  56. package/dist/public/sdk/wallet-iframe-host-runtime.js +1 -1
  57. package/dist/public/sdk/workers/device-linking-key.worker.js +8603 -3
  58. package/dist/public/sdk/workers/ecdsa-derivation-client.worker.js +12320 -1
  59. package/dist/public/sdk/workers/ecdsa-online-client.worker.js +623 -1
  60. package/dist/public/sdk/workers/ecdsa-presign-client.worker.js +1276 -1
  61. package/dist/public/sdk/workers/email-otp.worker.js +15653 -7
  62. package/dist/public/sdk/workers/email_otp_runtime.js +39 -3
  63. package/dist/public/sdk/workers/email_otp_runtime_bg.wasm +0 -0
  64. package/dist/public/sdk/workers/evm-crypto.worker.js +1157 -5
  65. package/dist/public/sdk/workers/evm_crypto.wasm +0 -0
  66. package/dist/public/sdk/workers/evm_crypto_bg.wasm +0 -0
  67. package/dist/public/sdk/workers/near-signer.worker.js +1631 -2
  68. package/dist/public/sdk/workers/near_signer.wasm +0 -0
  69. package/dist/public/sdk/workers/passkey-confirm.worker.js +606 -1
  70. package/dist/public/sdk/workers/passkey-mpc-export.worker.js +5406 -2
  71. package/dist/public/sdk/workers/passkey-mpc-session.worker.js +1717 -1
  72. package/dist/public/sdk/workers/router_ab_ecdsa_client_bg.wasm +0 -0
  73. package/dist/public/sdk/workers/router_ab_ed25519_yao_client_bg.wasm +0 -0
  74. package/dist/public/sdk/workers/shamir3pass.worker.js +874 -4
  75. package/dist/public/sdk/workers/shamir3pass_runtime.js +84 -31
  76. package/dist/public/sdk/workers/shamir3pass_runtime_bg.wasm +0 -0
  77. package/dist/public/sdk/workers/tempo-signer.worker.js +987 -5
  78. package/dist/public/sdk/workers/tempo_signer.wasm +0 -0
  79. package/dist/public/sdk/workers/tempo_signer_bg.wasm +0 -0
  80. package/dist/public/sdk/workers/wallet-custody-ceremony.worker.js +55 -1244
  81. package/dist/public/sdk/workers/wallet_custody_ceremony_bg.wasm +0 -0
  82. package/dist/public/sdk/workers/wasm_signer_worker_bg.wasm +0 -0
  83. package/dist/public/wallet-assets.manifest.json +32 -32
  84. package/dist/types/wallet/src/SeamsWeb/signingSurface/BrowserSigningSurface.d.ts +4 -4
  85. package/dist/types/wallet/src/core/signingEngine/session/identity/exactWalletSessionReader.d.ts +1 -9
  86. package/dist/workers/device-linking-key.worker.js +8603 -3
  87. package/dist/workers/ecdsa-derivation-client.worker.js +12320 -1
  88. package/dist/workers/ecdsa-online-client.worker.js +623 -1
  89. package/dist/workers/ecdsa-presign-client.worker.js +1276 -1
  90. package/dist/workers/email-otp.worker.js +15653 -7
  91. package/dist/workers/email_otp_runtime.js +39 -3
  92. package/dist/workers/email_otp_runtime_bg.wasm +0 -0
  93. package/dist/workers/evm-crypto.worker.js +1157 -5
  94. package/dist/workers/evm_crypto.wasm +0 -0
  95. package/dist/workers/evm_crypto_bg.wasm +0 -0
  96. package/dist/workers/near-signer.worker.js +1631 -2
  97. package/dist/workers/near_signer.wasm +0 -0
  98. package/dist/workers/passkey-confirm.worker.js +606 -1
  99. package/dist/workers/passkey-mpc-export.worker.js +5406 -2
  100. package/dist/workers/passkey-mpc-session.worker.js +1717 -1
  101. package/dist/workers/router_ab_ecdsa_client_bg.wasm +0 -0
  102. package/dist/workers/router_ab_ed25519_yao_client_bg.wasm +0 -0
  103. package/dist/workers/shamir3pass.worker.js +874 -4
  104. package/dist/workers/shamir3pass_runtime.js +84 -31
  105. package/dist/workers/shamir3pass_runtime_bg.wasm +0 -0
  106. package/dist/workers/tempo-signer.worker.js +987 -5
  107. package/dist/workers/tempo_signer.wasm +0 -0
  108. package/dist/workers/tempo_signer_bg.wasm +0 -0
  109. package/dist/workers/wallet-custody-ceremony.worker.js +55 -1244
  110. package/dist/workers/wallet_custody_ceremony_bg.wasm +0 -0
  111. package/dist/workers/wasm_signer_worker_bg.wasm +0 -0
  112. package/package.json +5 -2
  113. package/LICENSE +0 -21
@@ -7,7 +7,7 @@ import { i as loadWebAuthnP256EngineCtor, n as loadSignEvmFamilyWithUiConfirmFor
7
7
  async function preloadWalletHostRegistrationPreparation() {
8
8
  await Promise.all([
9
9
  prewarmTxConfirmerUi(),
10
- import("./runtime-ecdsa-tempo-B7dBVcCI.js").catch(() => void 0),
10
+ import("./runtime-ecdsa-tempo-CV-E-iZG.js").catch(() => void 0),
11
11
  loadSignEvmFamilyWithUiConfirmForTempo().catch(() => void 0),
12
12
  loadSignEvmWithUiConfirm().catch(() => void 0),
13
13
  loadSecp256k1EngineCtor().catch(() => void 0),
@@ -8,7 +8,7 @@ import { M as parseWebAuthnRpId, O as parseWalletId } from "./domainIds-eOo5dgD-
8
8
  import { t as walletIframeRequestIdFromBoundary } from "./walletIframeIdentity--bEdQHo_.js";
9
9
  import { _ as parseHostedAuthMenuExternalAuthResolution, h as parseHostedAuthMenuErrorEvent, o as hostedAuthMenuExternalAuthRequestIdFromBoundary, p as parseHostedAuthMenuCancelPayload, v as parseHostedAuthMenuOpenRequest } from "./messages-BSWDBuFY.js";
10
10
  import "./errors-JAbF_T3T.js";
11
- import { r as preloadWalletHostRegistrationSurface } from "./runtimeLoader-BKQjNgXO.js";
11
+ import { r as preloadWalletHostRegistrationSurface } from "./runtimeLoader-DxiLgXPm.js";
12
12
  import { c as classifyLinkDeviceFlowEvent, s as UnlockEventPhase } from "./sdkSentEvents-CPGpMmxi.js";
13
13
  import "./evmFamilySigningKeySlotId-DdgIJVvP.js";
14
14
  import { a as WALLET_AUTH_METHODS } from "./signerDomain-DNM7Ink8.js";
@@ -28,7 +28,7 @@ import "./keccak-3GZDz0C_.js";
28
28
  import "./signNear-B04A4qzs.js";
29
29
  import { t as createWalletIframeSurfaceMeasurementReporter } from "./surface-measurement-reporter-ki-AJVE5.js";
30
30
  import "./operationFingerprint-IujbIwg_.js";
31
- import { _ as startHostedPasskeyRegistrationCredential, a as syncAccountWithPreparedCredential, b as isLinkedDeviceTargetEmailAddressV1, c as listLocalLoginAuthMethods, d as unlockLinkedDevicePasskey, f as unlockResolvedWalletSubjectSet, g as registerPreparedHostedPasskeyRegistration, h as prepareHostedPasskeyRegistration, handleWalletHostRuntimeRequestWithHandlers, i as prepareSyncAccountChallenge, l as resolveLinkedDevicePasskeyAuthoritySelection, m as cancelHostedPasskeyRegistration, n as clearHostedWalletSessions, o as buildNearWalletRegistrationSignerSetSelection, p as resolveWalletUnlockSubjectSet, s as resolvePasskeyRegistrationAccountProvisioning, t as activeHostedWalletSessionOperationCredential, u as resolveLinkedDeviceUnlockSubjectSet, v as createRelayerExactWalletSessionStatusPort, x as normalizeLinkedDeviceTargetEmailAddressV1, y as DeviceLinkingErrorCode } from "./runtimeContext-BorCgXo5.js";
31
+ import { _ as startHostedPasskeyRegistrationCredential, a as syncAccountWithPreparedCredential, b as isLinkedDeviceTargetEmailAddressV1, c as listLocalLoginAuthMethods, d as unlockLinkedDevicePasskey, f as unlockResolvedWalletSubjectSet, g as registerPreparedHostedPasskeyRegistration, h as prepareHostedPasskeyRegistration, handleWalletHostRuntimeRequestWithHandlers, i as prepareSyncAccountChallenge, l as resolveLinkedDevicePasskeyAuthoritySelection, m as cancelHostedPasskeyRegistration, n as clearHostedWalletSessions, o as buildNearWalletRegistrationSignerSetSelection, p as resolveWalletUnlockSubjectSet, s as resolvePasskeyRegistrationAccountProvisioning, t as activeHostedWalletSessionOperationCredential, u as resolveLinkedDeviceUnlockSubjectSet, v as createRelayerExactWalletSessionStatusPort, x as normalizeLinkedDeviceTargetEmailAddressV1, y as DeviceLinkingErrorCode } from "./runtimeContext-D_TkUM6Z.js";
32
32
  import { n as respondOkResult, r as withProgress, t as respondOk } from "./shared-HlqX0oXX.js";
33
33
  //#region src/SeamsWeb/walletIframe/shared/exactSessionReconciliation.ts
34
34
  /**
@@ -19,7 +19,7 @@ import "./walletRecoveryCommit-D6lzaAHA.js";
19
19
  import "./keccak-3GZDz0C_.js";
20
20
  import "./signNear-B04A4qzs.js";
21
21
  import "./operationFingerprint-IujbIwg_.js";
22
- import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-BorCgXo5.js";
22
+ import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-D_TkUM6Z.js";
23
23
  import { n as respondOkResult, r as withProgress, t as respondOk } from "./shared-HlqX0oXX.js";
24
24
  //#region src/SeamsWeb/walletIframe/host/handlers/deviceLink.ts
25
25
  /** The QR payload's own lifetime; a selection older than this blocks nothing. */
@@ -18,7 +18,7 @@ import "./walletRecoveryCommit-D6lzaAHA.js";
18
18
  import "./keccak-3GZDz0C_.js";
19
19
  import "./signNear-B04A4qzs.js";
20
20
  import "./operationFingerprint-IujbIwg_.js";
21
- import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-BorCgXo5.js";
21
+ import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-D_TkUM6Z.js";
22
22
  import { n as respondOkResult, t as respondOk } from "./shared-HlqX0oXX.js";
23
23
  //#region src/SeamsWeb/walletIframe/host/handlers/ecdsaTempo.ts
24
24
  function createEcdsaTempoWalletIframeHandlers(deps) {
@@ -18,7 +18,7 @@ import "./walletRecoveryCommit-D6lzaAHA.js";
18
18
  import "./keccak-3GZDz0C_.js";
19
19
  import "./signNear-B04A4qzs.js";
20
20
  import "./operationFingerprint-IujbIwg_.js";
21
- import { handleWalletHostRuntimeRequestWithHandlers, r as redeemHostedWalletSeamsSession } from "./runtimeContext-BorCgXo5.js";
21
+ import { handleWalletHostRuntimeRequestWithHandlers, r as redeemHostedWalletSeamsSession } from "./runtimeContext-D_TkUM6Z.js";
22
22
  import { n as respondOkResult, r as withProgress } from "./shared-HlqX0oXX.js";
23
23
  //#region src/SeamsWeb/walletIframe/host/handlers/emailOtp.ts
24
24
  function recordFromPayload(value) {
@@ -19,7 +19,7 @@ import "./walletRecoveryCommit-D6lzaAHA.js";
19
19
  import "./keccak-3GZDz0C_.js";
20
20
  import "./signNear-B04A4qzs.js";
21
21
  import "./operationFingerprint-IujbIwg_.js";
22
- import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-BorCgXo5.js";
22
+ import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-D_TkUM6Z.js";
23
23
  import { n as respondOkResult, t as respondOk } from "./shared-HlqX0oXX.js";
24
24
  //#region src/SeamsWeb/walletIframe/host/handlers/export.ts
25
25
  function keyExportInputFromPayload(payload) {
@@ -19,7 +19,7 @@ import "./walletRecoveryCommit-D6lzaAHA.js";
19
19
  import "./keccak-3GZDz0C_.js";
20
20
  import "./signNear-B04A4qzs.js";
21
21
  import "./operationFingerprint-IujbIwg_.js";
22
- import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-BorCgXo5.js";
22
+ import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-D_TkUM6Z.js";
23
23
  import { i as withRegistrationProgress, n as respondOkResult, r as withProgress, t as respondOk } from "./shared-HlqX0oXX.js";
24
24
  //#region src/SeamsWeb/walletIframe/host/handlers/near.ts
25
25
  function walletSessionFromWalletId(walletIdRaw) {
@@ -18,7 +18,7 @@ import "./walletRecoveryCommit-D6lzaAHA.js";
18
18
  import "./keccak-3GZDz0C_.js";
19
19
  import "./signNear-B04A4qzs.js";
20
20
  import "./operationFingerprint-IujbIwg_.js";
21
- import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-BorCgXo5.js";
21
+ import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-D_TkUM6Z.js";
22
22
  import { n as respondOkResult, t as respondOk } from "./shared-HlqX0oXX.js";
23
23
  //#region src/SeamsWeb/walletIframe/host/handlers/preferences.ts
24
24
  function createPreferencesWalletIframeHandlers(deps) {
@@ -17,7 +17,7 @@ import "./walletRecoveryCommit-D6lzaAHA.js";
17
17
  import "./keccak-3GZDz0C_.js";
18
18
  import "./signNear-B04A4qzs.js";
19
19
  import "./operationFingerprint-IujbIwg_.js";
20
- import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-BorCgXo5.js";
20
+ import { handleWalletHostRuntimeRequestWithHandlers } from "./runtimeContext-D_TkUM6Z.js";
21
21
  import { n as respondOkResult, r as withProgress } from "./shared-HlqX0oXX.js";
22
22
  //#region src/SeamsWeb/walletIframe/host/handlers/recovery.ts
23
23
  function createRecoveryWalletIframeHandlers(deps) {
@@ -13285,31 +13285,6 @@ function exactWalletSessionWithOperationCredentialOrThrow(result, message) {
13285
13285
  case "upgrade_required": throw new WalletSessionAuthorizationUpgradeRequiredError(message);
13286
13286
  }
13287
13287
  }
13288
- async function readExactOwnerLaneWalletSession(args) {
13289
- const read = await walletSessionAuthorizations.readExactActiveForWallet({
13290
- walletId: args.walletId,
13291
- authorityId: args.authorityId,
13292
- authMethodId: args.authMethodId
13293
- });
13294
- switch (read.kind) {
13295
- case "found":
13296
- if (!exactWalletSessionMatchesAuthorityScope({
13297
- record: read.record,
13298
- operationCredential: read.operationCredential,
13299
- scope: args
13300
- })) throw new Error("[SigningEngine] selected Wallet Authority session identity mismatch");
13301
- if (read.record.expiresAtMs <= Date.now()) throw new Error("[SigningEngine] selected Wallet Authority session is unavailable: expired");
13302
- return;
13303
- case "missing": throw new Error("[SigningEngine] selected Wallet Authority session is unavailable: missing");
13304
- case "upgrade_required": throw new WalletSessionAuthorizationUpgradeRequiredError("[SigningEngine] selected Wallet Authority Wallet Session requires a newer client");
13305
- case "corrupt": throw new Error("[SigningEngine] selected Wallet Authority session is unavailable: corrupt");
13306
- case "persistence_unavailable": throw new Error("[SigningEngine] selected Wallet Authority session is unavailable: persistence_unavailable");
13307
- default: return assertNeverWalletSessionAuthorizationRead(read);
13308
- }
13309
- }
13310
- function assertNeverWalletSessionAuthorizationRead(value) {
13311
- throw new Error(`Unknown exact Wallet Session authorization read: ${String(value)}`);
13312
- }
13313
13288
  //#endregion
13314
13289
  //#region src/core/signingEngine/session/emailOtp/zeroize.ts
13315
13290
  function zeroizeBytes(bytes) {
@@ -29688,7 +29663,7 @@ var BrowserSigningSurface = class {
29688
29663
  emailOtpSessions: this.emailOtpSessions,
29689
29664
  sealedSigningSessionStore: deps.sealedSigningSessionStore
29690
29665
  }, input),
29691
- resolveOwnerLaneScope: (walletId) => this.resolveActiveOwnerLaneScope(walletId)
29666
+ resolveOwnerLaneScope: (walletId) => this.resolveSelectedOwnerLaneScope(walletId)
29692
29667
  });
29693
29668
  this.enginePorts = createBrowserSigningSurfaceEnginePorts({
29694
29669
  runtimePorts: this.runtimePorts,
@@ -29714,7 +29689,7 @@ var BrowserSigningSurface = class {
29714
29689
  workerWarmupPolicy: deps.workerWarmupPolicy,
29715
29690
  getTheme: () => this.appearance.theme.mode,
29716
29691
  ensureSealedRefreshStartupParity: () => this.ensureSealedRefreshStartupParity(),
29717
- resolveOwnerLaneScope: (walletId) => this.resolveActiveOwnerLaneScope(walletId),
29692
+ resolveOwnerLaneScope: (walletId) => this.resolveSelectedOwnerLaneScope(walletId),
29718
29693
  getEnginePorts: () => this.enginePorts,
29719
29694
  getRegistrationPublicDeps: () => this.registrationPublicDeps,
29720
29695
  prepareNearEd25519YaoMaterialBoundary: this.prepareExactNearEd25519YaoMaterialBoundary.bind(this)
@@ -30035,11 +30010,11 @@ var BrowserSigningSurface = class {
30035
30010
  return await readOwnerScopedSigningLanes(this.sessionPublicDeps, args);
30036
30011
  }
30037
30012
  /**
30038
- * R103C derivation chain for post-login operations: the unique active Wallet
30039
- * Session authority resolves through the active wallet auth method to one
30040
- * exact owner scope. Callers never supply credential or slot hints.
30013
+ * Resolves the selected active Wallet Authority and auth method to one exact
30014
+ * owner scope. Session availability is resolved by the lane inventory so an
30015
+ * expired session can enter operation step-up.
30041
30016
  */
30042
- async resolveActiveOwnerLaneScope(walletId) {
30017
+ async resolveSelectedOwnerLaneScope(walletId) {
30043
30018
  const parsedWalletId = parseWalletId(walletId);
30044
30019
  if (!parsedWalletId.ok) throw new Error(parsedWalletId.error.message);
30045
30020
  const stores = {
@@ -30053,13 +30028,6 @@ var BrowserSigningSurface = class {
30053
30028
  const { selection, authMethod, authority } = selected;
30054
30029
  if (selection.walletId !== parsedWalletId.value || selection.walletAuthMethodId !== authMethod.walletAuthMethodId || authMethod.walletId !== parsedWalletId.value || authMethod.walletAuthorityId !== authority.authorityId || authority.walletId !== parsedWalletId.value) throw new Error("[SigningEngine] selected Wallet Authority identity mismatch");
30055
30030
  if (selection.lockState !== "unlocked" || authMethod.status !== "active" || authority.state !== "active") throw new Error("[SigningEngine] selected Wallet Authority is inactive or locked");
30056
- await readExactOwnerLaneWalletSession({
30057
- walletId: parsedWalletId.value,
30058
- authorityId: authority.authorityId,
30059
- authMethodId: authMethod.walletAuthMethodId,
30060
- authorityDigestB64u: authority.authorityDigestB64u,
30061
- authorityRevocationEpoch: authority.revocationEpoch
30062
- });
30063
30031
  if (authority.provenance.kind === "device_link" && authMethod.kind === "passkey" && authority.signerActivations.ed25519) return buildExactPasskeyOwnerLaneScope({
30064
30032
  authMethod,
30065
30033
  signerSlot: await resolveLinkedPasskeyOwnerSignerSlot({
@@ -21,19 +21,19 @@ async function preloadWalletHostRecoveryCodeSurface() {
21
21
  await recoveryCodeSurfacePromise;
22
22
  }
23
23
  async function preloadRegistrationPreparation() {
24
- registrationPreparationPromise ??= import("./registrationPreparationPreload-u3ruCmpF.js");
24
+ registrationPreparationPromise ??= import("./registrationPreparationPreload-CwUkRwVz.js");
25
25
  await (await registrationPreparationPromise).preloadWalletHostRegistrationPreparation();
26
26
  }
27
27
  function loadRuntimeForKind(kind) {
28
28
  switch (kind) {
29
- case "auth": return import("./runtime-auth-Da9yQyaD.js");
30
- case "near": return import("./runtime-near-DBJ4KfFv.js");
31
- case "ecdsa": return import("./runtime-ecdsa-tempo-B7dBVcCI.js");
32
- case "email_otp": return import("./runtime-email-otp-CckVQZJC.js");
33
- case "recovery": return import("./runtime-recovery-kPgl9nTT.js");
34
- case "export": return import("./runtime-export-WAiBwZL_.js");
35
- case "device_link": return import("./runtime-device-link-DNlzlwrr.js");
36
- case "preferences": return import("./runtime-preferences-DmH7eMHH.js");
29
+ case "auth": return import("./runtime-auth-dpoaCtkK.js");
30
+ case "near": return import("./runtime-near-DlviFQWy.js");
31
+ case "ecdsa": return import("./runtime-ecdsa-tempo-CV-E-iZG.js");
32
+ case "email_otp": return import("./runtime-email-otp-V0mdMD_t.js");
33
+ case "recovery": return import("./runtime-recovery-CHDE5gl0.js");
34
+ case "export": return import("./runtime-export-C4HO5ysH.js");
35
+ case "device_link": return import("./runtime-device-link-C75epnbj.js");
36
+ case "preferences": return import("./runtime-preferences-DyJidFuf.js");
37
37
  }
38
38
  return assertNever(kind);
39
39
  }